After installing Snow Leopard on my iMac I found I had to tweak some settings before I could continue my daily web development workflow. First, you should note Snow Leopard now comes with PHP 5.3 and it will overwrite your custom Apache configuration.
Here’s what I did to get up and running:
- Moved
/etc/php.ini.default
to/etc/php.ini
. - Edited
php.ini
(using search/replace) so thatdisplay_errors = On
andmysql.default_port = /tmp/mysql.sock
. - I also set a default timezone (search
php.ini
for ‘timezone’) to suppress warnings about server timezone being unreliable. - Restored my
vhosts.conf
file from a back-up to bring back my various *.dev virtual hosts. - I replaced all my PHP short tags with their longer equivalents (
<?=
to<?php echo
) as these are deprecated in PHP 5.3.
After these rather simple steps I was back up and running, although they took a a little time and googling. Overall, I was surprised how little installing Snow Leopard messed up my system.