Aug 292009

After waiting almost patiently most of yesterday (Friday 28 August) I received my copy of “Snow Leopard” about 4:45 PM.

Being the cautious type I knew that I would first upgrade the MacBook, and see what out of PHP, MySQL and Apache didn’t work afterward before embarking on upgrading my Mac Pro which does full time duty as a webserver for a number of domains that use PHP and MySQL.

The install of Mac OS X 10.6 Snow Leopard went about as easily as advertised, and an hour after starting the MacBook was back running again. There was a notice that I had some now unsupported applications, but I didn’t see a list of them. I tried to open Parallels and was told that it wouldn’t work with Mac OS X 10.6 – I had Parallels 3. But no worries – I have VMWare Fusion 2 and that works, so upgrade the Parallels Virtual Machine to work with VMWare Fusion and delete Parallels.

Then I set out to see if my previous installs of PHP 5.2.9 from and MySQL 5.1.32 from were still working. Here the news was not so good.

Apple had seemingly reset everything – given me a new httpd.conf file that didn’t have PHP enabled and updated the built in PHP to 5.3.0. Luckily the built in PHP now supports the GD Library, so perhaps I can stay with Apple supplied PHP from now on as that is the only “extra” I’ve needed in the past.

So some hours of “circular” troubleshooting and confusion later I managed to get things working again. Here are some of the things I did.

Open /etc/apache2/httpd.conf and uncomment line 115

[code lang=”ini”]
LoadModule php5_module libexec/apache2/
and save the change. Restart the WebServer from the Sharing System Preference.

After installing MySQL 5.1.37 and trying to get that configured I was presented with errors about the socket not being in the right place – yikes!!!! And since I needed to be able to make some changes in the php.ini file I had to create that too. Apple has some bizarre way of having a default configuration used even when there’s apparently no file in place. So in Terminal
[code lang=”ini”]
cd /etc
sudo mv php.ini.default php.ini
to make a copy of the php.ini.default file and name it to php.ini
then open that file for editing – I use TextWrangler – and look for the 4 instances of mysql.sock to find that php.ini is expecting to find them in /var/mysql/ but actually the mysql.sock file is in /tmp so change the 4 instances of
[code lang=”ini”]
= /var/mysql/mysql.sock
[code lang=”ini”]
= /tmp/mysql.sock
and save the changes.

Now PHP and MySQL are running.

The next thing to do was to set up the MySQL passwords as described here

Then after that try out my test TNG setup to see if that worked – drat – confronted by errors telling me that the server MUST have a timezone setting made (a new requirement with PHP 5.3.0). So some Googling later I’m at line 997 in the php.ini file
[code lang=”ini”]
; date.timezone =
change this to
[code lang=”ini”]
date.timezone = “America/Detroit”
or some other valid timezone as listed on this page, save the changes and restart the WebServer.

Now we’re pretty much set I think. My TNG site seems to work, apart from issues restoring the tables which Darrin has already now sent me an update for.

Note that the above is a very abbreviated version of what I did for far too many hours last night, and in all likelihood wasn’t the best way to achieve this – for example providing a symbolic link to the mysql.sock file in the place it was expected should also have worked, but I needed to modify a php.ini file to take care of the timezone requirement and to change the upload_max_filesize setting also.

So all that taken care of, it was time to try out a couple of my other fears….

Drat – my HP LaserJet 4MP, which uses AppleTalk can’t be found – Mac OS X 10.6 Snow Leopard has removed AppleTalk. Up until now it’s worked just great with an AsanteTalk box connected to the LAN and the printer. The LaserJet 4MP might be 16 years old, but it still works like a champ and doesn’t need replacing yet – particularly since I have at least 2 brand new $100 toner cartridges for it yet. So, instead I now have the eMac in the basement with Mac OS X 10.4.11 installed – running 24/7 as a FileMaker Server machine now “sharing” the HP LaserJet 4MP via Printer Sharing and the MacBook running Mac OS X 10.6 can see that and print to it just fine. But I guess eventually I’ll either need some type of HP DirectJet print server, or a new printer.

Followup 27 April 2010 – I’ve written an article about using an HP JetDirect 300x to allow my HP LaserJet 4MP to be used by computers running Mac OS X 10.6 Snow Leopard.

Next – the Epson R220 Inkjet Printer. Connected that to the MacBook and right away Software Update offered to download the required printer drivers and install it. A test page comes out of the printer no problems so that one seems to be easily solved.

But I seem to have lost the Epson Printer Utility that allowed for ink status, nozzle check and head cleaning. Turns out that has been replaced by “Epson Printer Utlitity Lite” which can be found in
[code lang=”ini”]
Macintosh HD – – -> Library – – -> Printers – – -> EPSON – – -> Utility – – -> UTL
and it is “Lite” – it shows a menu for printers, the Ink level status and buttons for “Nozzle Check” and “Head Cleaning”, but nothing else.

Next – the Epson Perfection 2450 Photo scanner. According to it is supported. But trying to start up Epson Scan results in an error that the scanner can’t be found. The Scanner is recognised by Image Capture, but I can’t get it recognised by an earlier version of Graphic Convertor that I have. Epson’s website notes that there might be incompatibilities with the Epson Scan software and to “check back”. UPDATE – have just found that Adobe Photoshop CS3 sees the scanner just fine as long as Photoshop is “running in Rosetta” so that’s a relief!!

Now I need to stop worrying too much about this, and try and do something productive for the rest of today. Hopefully the next few days will bring some clarity from others on the issues surrounding PHP and MySQL so that I can upgrade my Mac Pro and keep the PHP and MySQL all working with less hassle, Epson will get their act together on my scanner software and the eMac in the basement running as the printing server for the LaserJet as well as of course hosting 28 FileMaker Pro databases will keep on ticking.

Followup 27 April 2010 – I’ve written an article about using an HP JetDirect 300x to allow my HP LaserJet 4MP to be used by computers running Mac OS X 10.6 Snow Leopard

  33 Responses to “Upgrading to Mac OS X 10.6 “Snow Leopard””


    Thanks Roger. This was a real time saver.


    I know this is ages ago but I’d just like to say thank you for the Epson info, it worked for me even though I am still running 10.5.8, although the utility was in Printers >Epson>Inkjet printer>Utilities.

    To the poster who was trying to find out which cartridge was empty,or more realistically others who may stumble across this, open the black plastic cover and press and hold the ink button that is blinking. The printer should move the head to a arrow on the body which now points at the low cartridge.



    I have a new iMac (10.6.4) and can see my Epson printer utility but my Epson Stylus Photo R800 isn’t showing up. I am out of ink and trying to figure out which one to change. I hope my printer hasn’t fallen off the support wagon!!! Thanks for your help!!


    I remember the 4MP very well. That was a KILLER printer. It stood head and shoulders above everything else. I only got rid of it because I needed to step up to an 11×17.

    Thanks for the php.ini info.



    I had two older Mac’s with pre-Mac OS X v10.6 operating systems set up to print to one printer (HP P3005) using the Linksys print server PSUS4 connected to my Linksys router and have I now replaced one of the Mac’s with my new iMac. Apple Talk is not supported by Mac OS X v10.6 and have to use IP-based protocols instead and need the IP address for my printer. I printed out the status page on my printer and the IP address is showing as Can you help me?


      Sorry no I don’t know what might be needed to get this going. I’m not sure if the HP P3005 should have an IP number, or if the LinkSys Printer Server should get the IP number and then deal directly with the printer itself.

      What happens if you use the Print and Fax System Preference to try adding a printer – can it be seen on the network at all – either the Print Server or the printer?


    I edited my.cnf php.ini pointed everything to /tmp but when I load mysql the log says socket=/var/mysql/mysql.sock……. Pulling my hair out!


    I just installed osx server 10.6.3. I tried using mysql built in, tried installing mysql manually, uninstalled reinstalled. I always get the socket error when trying to connect. I do not have a mysql.sock in my tmp directory. Only in /var/mysql. All my config files including my.cnf point to that location yet the client always gets an error looking in /tmp.

    Any idea’s?



    […] Leopard meant the end of support for AppleTalk (see my previous article on some other aspects of Upgrading to Mac OS X 10.6 “Snow Leopard”), and so the ability to print from computers running Mac OS X 10.6 Snow Leopard directly to […]


    That really helfull post
    It’s work on my computer



    It took 2 hours to struggle with why my mysql_conncect() function does not work.
    And your instruction helped me a lot to fix this issue in Mac OS X 10.6.

    Somebody should have take this kind of problem seriously.


    Lisa and Robin – sorry I haven’t experienced the issue about having to register. The printer I had at the time – an Epson R220 worked as expected. I now have an Epson 1400, and that has 10.6.x support available for it, apart from I currently use it on my Mac OS X 10.5.8 machine.


    Roger, thanks for the info. I am was not able to find my epson printer utility info either. I am having the same problems Robin is having, my computer wants me to register my printer. Do you know how I can get around that? I registered it years ago, but not sure what steps I should take…


    Thanks for Epson print utility info! where would we be without internet forums to help us through computer upgrades! I miss teh old utility though – was much better!


    […] I hit Google and came across a great article that highlighted the high-level things about tweaking settings when upgrading to Mac OS X. This was […]


    Thanks for the printer utility info, Roger – sadly when I open it I get a message saying “this printer is not registered” – it’s an old C61 I have moved to my mother’s place, and I have no idea how to register it anyway, at the moment. I can’t see my ink or clean my heads! Grrr.


    Thank you…. I have a G5-IMac and a very old HP Laserjet 4mp. Turned on print sharing… now I can print from my OS 10.6 computers. Sadly, I have to turn on my G5-IMac but the printer works.


      I plan to keep one computer running Mac OS X 10.5 Leopard for a while, so that will take care of it for me, but eventually I guess it’s going to need to be either a new printer, or some type of print server box. HP make JetDirect boxes that will do this. I have 3 brand new genuine HP cartridges yet, so don’t plan on replacing the printer any time soon.


    Thank you sooo much for the epson advice. You are a champion.

    If only apple released something like this every time they upgrade an OS.

    Every time i upgrade i run into some sort of trouble.


    Having just moved over from the Dark Side (Win PC), I’m just going through this myself… I haven’t tried yet but wouldn’t it just have been easier to install MAMP?


      I’ve been running my sites on Mac OS X with PHP and MySQL since soon after Mac OS X came out, and so have always just continued to try and do so.

      I did look at MAMP some time ago as a possible alternative, but decided against it, although the reasons are now lost in the haze of memory – maybe it was something to do with Virtual Hosts (I have 35 entries in my vhosts file) or for some other reason. But I remember that at least at that time I determined that it wasn’t going to work for me.


    Hi there everyone, I have lost my php.ini.default. Does any one know where I can download an unedited copy.



    Thanks for the writeup, it got my php/mysql combo working again after upgrading.

    Apple really messes this up every time again! (migrated from 10.2 to 10.6)


    Thanks for the help. I was a bit confused about the whole php.ini thing after upgrading. There was no php.ini file in /etc, but it was acting as if there was one. I was also experiencing some issues with warning messages being enabled and messing up PHP output in Joomla. I was heading down the path you offered and felt much better that I wasn’t about to totally screw things up.

    MySQL configuration was fine regarding the mysql.sock file, so I don’t know why mine system was OK in that regard.

    Again, thanks for publishing your experience. It was very helpful.


    […] Notes from another 10.6 upgrade process […]


    Thanks for helping me find the new printer utility but my Epson Stylus Photo R800 isn’t showing up. It only shows my Picturemate. I am out of ink and trying to figure out which one to change. I hope my printer hasn’t fallen off the support wagon!!! Thanks for your help!!


    Thanks for your post, I was able to follow along and revive my WordPress install.


    Hi Roger. I wasn’t really looking for tech support on it (I don’t really think it’s an issue), I was just curious if you also saw this following the gd info section in the output of the phpinfo function.


    Hey. Thanks! Wondering though…I already had enabled gd extension in 10.5 and now I’m getting an odd statement in the gd section of my php info readout. It is:

    Directive Local Value Master Value
    gd.jpeg_ignore_warning 0 0

    This is in a block all its own after the block that gd normall has. Is this a problem somewhere? Thanks!


      Hi Nathan

      I’m not the person to answer questions like this – I muddled through getting my MacBook running properly again after the upgrade to Mac OS X 10.6 Snow Leopard, but don’t know much about the inner workings. I had used the installs of PHP 5.2.9 for Mac OS X Leopard rather than try to figure out or follow directions online about how to add the GD Library to the existing Apple install.

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>



This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this:

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.