Welcome to Geeklog Thursday, June 22 2017 @ 12:27 pm EDT

Where is my php.ini?

The path where PHP looks for its php.ini file is built into PHP on compile time. To find out that path, use a PHP script that does a phpinfo() call. This will display a huge table of all of PHP's configuration variables. The path to php.ini can be found in the first part of that table, near the start of the page.

Geeklog ships with a phpinfo script in /path/to/geeklog/admin/install/info.php. Or you can simply create a new file (name it "phpinfo.php", for example) that contains the single line

<?php phpinfo(); ?>

Upload that file anywhere on your website and call it up in your browser.

FAQ Manager » General » Where is my php.ini?