Ever needed to make a quick adjustment to the php.ini file but you weren’t sure where it was? Here’s a quick command you can use:
php -i | grep php.ini
What this does is tell the php command-line application to run a phpinfo() and output it in text format to the shell. Then filtering it through grep to find the actual line, which will display like so:
Configuration File (php.ini) Path => /etc/php.ini
You can, of course, always put a new php file in your web server root directory and add in the following:
<?php
phpinfo();
And then browse to it in your browser.
- › How to Change Your Age on TikTok
- › How to Screen Record on iPhone
- › This Huge Curved Ultrawide Monitor From LG Is $337 Today
- › PSA: You Can Email Books and Documents to Your Kindle
- › The New HP Pro x360 Fortis Is a 2-In-1 Laptop Under $500
- › Get PC Power With Tablet Portability in the Surface Pro 9 for $200 Off