10.4.9 Intel / MySQL 5.0.41
Get MySQL from http://dev.mysql.com/downloads/mysql/5.0.html, download this Mac OS X 10.4 (x86) (package format) version
Open the .dmg and install the two package files and one prefPane included:
mysql-5.0.41-osx10.4-i686.pkg
MySQLStartupItem.pkg
MySQL.prefPane
go into yoru System Preferences and start up MySQL (in the MySQL preference pane you just installed)
make sure /usr/local/mysql/bin/ is in your path, if not edit [...]
Install MySQL on Mac OS X if you haven’t already
Install XCode if you haven’t already
Do either this:
Open NetInfo Manager
Modify /groups/wheel/users, add a new value for your login id, this will come into play later
or this:
$ niutil -appendprop / /groups/wheel users yourloginid
Get PHP Complete Source Code from php.net – http://php.net/get/php-5.2.2.tar.gz/from/a/mirror (more current versions are out now)
Open [...]
10.4.9
Edit the httpd.conf file
Uncomment the lines that contain php
Restart apache
Confirm it works via phpinfo.php
fix PEAR – see Enable PEAR on Mac OS X 10.4.x
command summary of the above (assuming you know what to do in vim)
$ sudo vim /etc/httpd/httpd.conf
$ sudo apachectl restart
$ vim /Library/WebServer/Documents/phpinfo.php
phpinfo.php contents
<?php phpinfo(); ?>
10.4.9
There are two ways to do this:
Most Secure – but not tested
Open NetInfo Manager
Modify /groups/wheel/users, add a new value for your login id
Verify it works:
$ pear list
Less Secure – but tested
give full access to /usr/lib/php
$ sudo chmod -R 7777 /usr/lib/php/
NOTE: This makes PEAR work, still need to verify that PHP and PEAR are working together
10.4.10 [...]