Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Created May 23, 2021 05:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Justintime50/4528e0589c8aa45536725e0596213410 to your computer and use it in GitHub Desktop.
Save Justintime50/4528e0589c8aa45536725e0596213410 to your computer and use it in GitHub Desktop.
Find your php.ini File

Find your php.ini File

I always forget where my php.ini file is and which one is configured. Use the following command to find it:

php -i | grep php.ini

# Output
Configuration File (php.ini) Path => /usr/local/etc/php/7.4
Loaded Configuration File => /usr/local/etc/php/7.4/php.ini
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment