Where is php.ini under OSX 10.5 (Leopard)…


I came across a issue and the solution required a bit of tweaking in php.ini. After looking around my Leopard Server I finally found php.ini.default under /etc directory. After making the changes and restarting apache, I got nothing, zip, zilch. Well after digging around the output of phpinfo
<?php
phpinfo ();
?>

I found that /etc is the expected location of php.ini. So after copying php.ini.default to php.ini and restarting apache everything started working nicely. Lesson learned….By default the php module uses baked-in values, if you need to change something (eg: maximum upload file size) you need to copy php.ini.default to php.ini (in /etc directory). Make the changes to php.ini and restart apache.

, ,

Leave a Reply