SSH Commands


For the basics in linux shell

SSH Commands Guide List | Suggest A Guide
HostGeekz Hosting Guides | cPanel | Cheap Domains | Web Hosting Talk

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:

php -i | grep php.ini

It will return something like this:

Configuration File (php.ini) Path => /usr/local/lib/php.ini

That's your file!

© Copyright, Simplec Services - Australia, 2019

Visit For More!
Cheap .Com Domains from $8.50