Jump to content

Where is the PHP.INI file located?


Recommended Posts

Posted

Depends on your server configuration and your apache settings, assuming you're using apache.

Could be in /etc, or a local domain override copy could be stored in the domain root directory.

Posted

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

Posted

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.

Posted

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.

You mean ACP > Support > Diagnostics > Overview and php is in there ? I can't see any quicker way to get there ?

Posted

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.
Posted

You mean ACP > Support > Diagnostics > Overview and php is in there ? I can't see any quicker way to get there ?

As follows

in your admincp, click the "support tab" then click "PHP INFO" in the middle of the screen.

Archived

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

  • Recently Browsing   0 members

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