10.4: Install Apache2, PHP5, and MySQL5
Dec 20, '05 06:07:00AM
Contributed by: Tetonne
Here's how I installed Apache2 (version 2.0.55) and MySQL5 (Standard 5.0.16 for Mac OS X 10.4) on OS X 10.4...
[robg adds: Note that I haven't tested this one, and I added some detail to the hint as submitted -- so any mistakes are likely mine. Read on for the step-by-step...]
- Install Apache 2 into /Library/Apache2)
- Install MySQL5 [download link]. This will automatically install in /usr/local.
- Install PHP5 [download link from entropy.ch]. This version automatically installs in /usr/local)
- Create a folder named opt at the root of your hard drive. You can make it invisible with something like File Buddy.
- In Terminal, create a symbolic link: ln -s /Library/Apache2/ /opt/apache2
- Open the Apache2 Configuration file, which can be found in /Library -> Apache2 -> conf -> httpd.conf. Add the following lines (before Load module):
# PHP5 configuration for Entropy PHP
LoadModule php5_module /usr/local/php5/libphp5.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
- Reboot, then start the Apache web server.
This was tested on 10.4.3 with Developper tools 2.2.
Comments (18)
Mac OS X Hints
http://hints.macworld.com/article.php?story=20051214031718251