Jump to content

Where is the PHP.INI file located?


Recommended Posts

In ssh, type in...

php -i | grep php.ini

It will show you which php.ini file is loaded.

If you have cpanel, you'll get something like this...

# php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/lib
Loaded Configuration File => /usr/local/lib/php.ini

Most RHEL/Centos stock will show something like...

# php -i | grep php.ini
Configuration File (php.ini) Path => /etc
Loaded Configuration File => /etc/php.ini

Link to comment
Share on other sites

If you want to make it easy on yourself go to your admincp > support > php info > then look to see the location of the configuration file.

I've found that if you're using a php.ini in your public_html folder (because of server limitations or whatever) then you need to add another one to your admin directory. Just for the record.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...