Jump to content

Where is the PHP.INI file located?

Featured Replies

Posted

I need to verify valves in that file but my ISP owner died 2 months ago. I do have some access to the server but not sure how much?

thanks

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.

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

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.

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 ?

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.

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


There link there get php info

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

  • No registered users viewing this page.