Jump to content

Locating php.ini


LPDev

Recommended Posts

Posted

Evening all!

I'm running 4.1.14, and find myself needing to tweak php.ini.  Problem is, I've scoured every last directory and can't for the life of me find the file.  I could have sworn it was in the root directory whenever I've needed it up to now, but it appears to have run away from home.  If someone could tell me what the file path to php.ini should be, it will be much appreciated.

Thanks!

-Dev

Posted

Depends on the host.

On generally any host that uses WHM/cPanel, you can place a php.ini inside your home folder (e.g. /home/devlp/) with the modifications you have. This might be a setting on the host's side, though. But it usually works.

Otherwise, if you control the hosting environment (or even if you don't and just want to find out what files get loaded), you can throw a test.php with a call to phpinfo() and find the currently loaded configuration (php.ini) file(s).

Archived

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

  • Recently Browsing   0 members

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