Setting Up Apache-PHP-Python-MySQL on Mac OS X
- Download and install MySQL Package file [MySQL 5.1 for 10.5 (x86_64)]
- Install MySQL Startup Item [Howto]
- Turn on Web Sharing in System Preferences -> Sharing

- Copy /etc/php.ini.default to /etc/php.ini
sudo cp /etc/php.ini.default /etc/php.ini
- Add timezone information to php.ini (PHP will error without this)
date.timezone = 'America/New_York'
- Install php-mcrypt
- Download libmcrypt 2.5.8
- Build and install .
./configure --disable-posix-threads --enable-dynamic-loading
make
sudo make install
- Download PHP 5.3.1
- Navigate to php-5.3.1/ext/mcrypt/
- Build and install .
phpize
./configure
make
sudo make install
- Add extension to php.ini
- Install APC
- Download PCRE 8.0
- Build and install .
./configure
make
sudo make install
- Download APC 3.1.3p1
- Navigate to APC-3.1.3p1/APC-3.1.3p1/
- Build and install .
phpize
./configure
make
sudo make install
- Add extension to php.ini
- Download and install MySQL-python 1.2.3c1
sudo python setup.py install
- Download and install libjpeg.v7
./configure --enable-shared
make
sudo make install
- Download and install Python Imaging Library 1.1.6
sudo python setup.py install
Comments
Danny
Thanks a lot for posting this! Installation went smoothly with all up-to-date software versions. Cheers.
Thomas Bosboom
Thanks, very helpfull!
andy mac
Thanks for your article that's work on me
. !
, .