I was itching to do upgrade on my development machine since Mavericks came out, but I had a big project in the pipeline and I couldn’t afford downtime – shiny new OS .0, not the latest hardware, allot of work and stringent deadlines are risky combination for early adoption.

Now 9.1 Version is out, and my work schedule is less demanding, so I’ve decided to do the deed. So this blog post describes my experience and issues I’ve encountered in the process.

Before pushing upgrade button, I made a full system bootable backup to make sure I could go back if upgrade didn’t go as smooth as apple promised.

There are many ways to do bootable backup. Carbon Copy Cloner (CCC) is the one often recommended, but I didn’t want to pay for that, and it doesn’t do anything special, there are command line tools that do the same. I’m not sure, but I think CCC uses same free dd cli tool that comes with every macOSX, and it is free.

I gave it a good thought and decided to use disk utility to do bootable backup. Yes software that comes on every mac is more than capable of the task and is free.

First, I got external HDD with separate power source, with disk space more than my macs SSD. I opened disk utility and formated it to Mac OS extended (journaled).

Next step is to restart mac into startup manager – on restart you immediately press and hold the Option key. After a few seconds, the Startup Manager should appear. I chose recovery partition and booted from there, than I selected DiskUtility and after that it is all straightforward.

Problem #1.

Visiting localhost/project I noticed php was not being parsed. To enable php, I had to edit:

/etc/apache2/httpd.conf

And uncomment following line:

I also use .htaccess in my projects so I had to change following in httpd.conf:

to:

And

Problem #2.

PHP could not communicate with mysql.

Lets create php.ini file first:

Edit php.ini

Restart:

and you should be good to go.

Problem #3.

All my mysql projects worked fine, except wordpress installation was still displaying: Error establishing a database connection

I went back to php.ini and edited:

I restarted apachectl and wordpress error disappeared.

Leave a Reply

Your email address will not be published. Required fields are marked *