How To Find PHP.ini File

Depending on the version and operating system, PHP can be installed in multiple locations. Fortunately, you can quickly locate the PHP.ini file by running this command:

php --ini

How to Edit PHP.ini file

Look for Loaded Configuration File from the output, then edit the file using nano.

sudo nano /opt/homebrew/etc/php/8.0/php.ini

Thanks for reading. Make sure you follow me on Twitter to stay up to date on the progress of my side projects T.LYWeather Extension, and Link Shortener Extension. If you are interested in the tech I use daily, check out my uses page.  

Leave a Reply

Your email address will not be published. Required fields are marked *