While Redmond is starting their photocopiers (the age old story of how Microsoft keeps copying instead of innovating), we Mac users start our updates. OSX 10.10 Yosemite brings Apache 2.4 and PHP 5.5 to our playground, but not everyone is happy with that. Also, not all software survives the upgrade. Here is what I had to do to fix my development environment.
- New command-line tools are needed, so we can either wait for XCode 6.1 to be released, or you can download the XCode Command Line Tools 6.1. It’s a smaller package (about 180 MB instead of a few Gigs.). The CLT package is available from the Developer site. Since XCode 6.1 will include these and everyone can get it, I don’t think apple will mind if I link you a copy of it; Download XCode CLT 6.1. Install it. Done.
- Update Homebrew
Shell commandbrew update
- Reinstall mariadb – if it’s not broken, don’t bother, but it broke for me.
Shell commandBrew reinstall mariadb
- PHP 5.5 comes without GD and FreeType. Shame. I took the opportunity to downgrade to 5.4 while I was at it.
Shell commandbrew install zlib
Shell commandbrew install homebrew/php/php54
to activate this version, you will need to add this line on the bottom of your .bashrc file;
export PATH=$PATH:/usr/local/sbinexport PATH="$(brew --prefix homebrew/php/php54)/bin:$PATH"
and edit /etc/apache2/other/php5-loadmodule.conf to read:
LoadModule php5_module /usr/local/opt/php54/libexec/apache2/libphp5.so
- Disable the SSLMutex line in /etc/apache2/extra/httpd-ssl.conf
- Enable the mod_rewrite, socache_shmcb_module and mod_ssl modules in /etc/apache2/httpd.conf
- Enable loading the httpd-vhost.conf httpd-ssl.conf files in /etc/apache2/httpd.conf
Now it seems to run again :)
If I find more, this post will be edited :P
Happy coding!