Where can I find the php.ini file?

The sure way finding the php.ini file is using phpinfo:

Create an empty file and add the following to it:

phpinfo

Save it as anything.php (anything is really anything, replace it with anything you want)

Upload this file to your website and load it from a browser.

Look for “Configuration File (php.ini) Path”.

There you go. Feel free to comment here is you have any questions.


Didn't find what you were looking for? Try these links:
  • I have a question ~ after you’ve found the php.ini file path, what do you do with it? I have something like /usr/lib/local. Where do I put that?

  • You can set, override many different PHP settings. If, however you don’t know what do do with a php.ini file, I would just leave it alone.

You can follow any responses to this entry through the RSS 2.0 feed.