Welcome to Geeklog, Anonymous Monday, December 05 2022 @ 10:12 am EST

Question: Where is my php.ini?

Answer: 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.

Hits: 192

FAQ » General » Where is my php.ini?