SSH Commands

Easy way to find php.ini path

The easiest way to find the php.ini file (the file where all the general php settings are stored), short of not knowing it off the top of your head; you can use a combination of commands.

Do note execute these commands yet! You can use the command:

php -i

This prints out all the php information as seen via a web browser when the phpinfo(); command is used. Within all this information is the path to the php.ini file. So we're simply going to grep the information. You can use this command to find the path to the php.ini file: