Not getting PHP errors following Mountain Lion Upgrade? What to do...

After upgrading to Mountain Lion I found that my php.ini (usually in /etc/php.ini) had been nuked meaning that no errors were being displayed in my development LAMP environment :(

Actually, it seems that Apple simply rename your existing php.ini file to php.ini-5.2-previous (or similar) so that you jump back to the default PHP settings. Rectifying this is fairly straightforward however - simply:

1. Open Terminal
2. Log in as root by typing sudo bash
3. Type:
cd /etc
cp php.ini-5.2-previous php.ini
4. Restart apache with:  apachectl graceful

And you're good to go...

Comments

Popular posts from this blog

Installing LAMP Apache/MySQL/PHP on Chromebook/Chromebox

Installing Ubuntu Linux on your ChromeBox/ChromeBook

Changing your Mac OSX Terminal's default text editor