Currently Browsing: osx

Upgrading to Snow Leopard a.k.a 10.6

So I’m upgrading my MBP to 10.6.
Since this is my production machine I’m taking no chances.
I bought an external 7200rpm 2,5” HD and installed 10.6 onto this drive.
Once this installation is as stable as I would like it to be, I’ll be swapping the internal HD for this one (leaving me with a backup OS in case of emergencies).

So far all my apps seem to be running just fine.

I’ll be keeping a list here for all minor/major tweaks that were necessary to get everything running.

Enabling PHP and MYSQL

First of all edit /etc/apache2/httpd.conf and uncomment the following line
loadModule php5_module      libexec/apache2/libphp5.so

Next install Mysql, get the latest version (now still says osx 10.5, but it will run!)
http://dev.mysql.com/downloads/mysql/5.1.html#macosx-dmg

copy php.ini.default to php.ini  (don’t forget to make it writable first)

edit default_socket properties: I’m using pdo so I had to change the following line
pdo_mysql.default_socket=/var/mysql/mysql.sock
to
pdo_mysql.default_socket=/tmp/mysql.sock

edit the default timezone, i.e:
date.timezone = Europe/Amsterdam

edit some properties like upload size memory limit

start mysql , add at least one user since by default there’s only root without a password
(use sequel pro, It’s a nice opensource and free DB-tool)

now restart apache
sudo apachectl graceful

… you can now develop local php-sites

…..
more to come…..