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.LY, Weather Extension, and Link Shortener Extension. If you are interested in the tech I use daily, check out my uses page.