Getting Apache, PHP and MySQL to work on Leopard

Enabling PHP

If you have upgraded from Tiger, you may need to complete this step to get Leopard's version of Apache to work with UserDir (otherwise ignore this bit):

PHP is normally disabled by the default Apache configuration, so you will need to load up a text editor and then:

Once you've saved this, you'll need to restart apache. The easiest way to do this is to go to System Preferences > Sharing and to turn Web sharing off then on again.

Installing MySQL

To install MySQL, just follow these steps:

Other tips if you having problems with .htaccess

Ensure the following directives are enabled (e.g. look in /etc/apache2/users/username.conf) :

Options FollowSymLinks AllowOverride All

← Back to Blog