[Editor's Note: This is the most detailed how-to I've received in six months' running this site! I have not used the tutorial, mainly because I already have this group of programs running, but this looks like a very good step-by-step on how to get them installed. -rob.]
[Second editor's note: I received a referral to another site with a step-by-step guide for compiling all three of these programs from source; I haven't used it, but it's a similar step-by-step tutorial, but it doesn't use any package files.]
Compiled and partly written by Vip Malixi with contributions from Scott Anguish, René Voorburg, Matthew Vaughn. The following tutorial is a comprehensive set of instructions for installing a new version of Apache (1.13.19), along with PHP 4.04 and mySQL 3.23.28. In order to follow these instructions, you will need to have (a) root access [detailed elsewhere on the site] and (b) the developer tools installed.
If you'd like to see how this is done, please read the rest of this article for a thorough, step-by-step guide to the process.
Here's how to install all three packages on Mac OS X v10.0, broken down into different tasks.
Step One: Preparation
> cd ~Do you see the files? If you don't, type the following:
> cd Documents
> ls
> pwdto check if you're in the right directory: /Users/yourusername/Documents
> gnutar xpfz MySQL-3.23.28-1.0.pkg.tar.gz
> suEnter your Root password then
> cd /usr/local/bin
> ./mysql_install_db
> safe_mysqld &Your Terminal will just stop (won't go back to prompt) but that's okay. You can close Terminal. I'm assuming you know how to run and use mysql. If you don't know how to create a new user aside from Root with database creating privileges, this is how. At Terminal, type the following as Root:
> mysqlInside mysql, type the following ("m>" represents mysql prompt, don't type it):
m> GRANT ALL PRIVILEGES ON *.* TO yourusername@localhost[Editor's note: The above line for GRANT ALL was broken into two lines to narrow the display width - enter it as one line! Also, please read up on database security at the mySQL web site! It's quite important for the safety of your system and data!]
IDENTIFIED BY 'whateverpasswordyouwant';
m> quit
> mysql -pwhateverpasswordyouwant testStep Three: Installation of Apache
m> create database myfirstdatabase
m> quit
> mysql -pwhateverpasswordyouwant myfirstdatabase
> cd ~You'll be asked for Root password. Give it then run.
> cd Documents
> gnutar xzf apache_1.3.19.tar.gz
> cd apache_1.3.19
> ./configure --enable-module=most --enable-shared=max
> make
> sudo make install
> suEnter your Root password
> ./configure --with-mysql --with-apxs --disable-pearIn my case, I also added dBASE support, so if you want, you can type the following or add other configurations. Consult PHP.NET regarding the others:
> ./configure --with-mysql --with-dbase --with-apxs --disable-pear
> make
> make install
> pico /etc/httpd/httpd.conf
LoadModule php4_moduleYou may also want to modify the following so that Apache will let you go to your PHP page without having to type the file name if it's a default
libexec/httpd/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php .php3
AddType application/x-httpd-php-source .phps
 DirectoryIndex index.html index.php index.php3
Mac OS X Hints
http://hints.macworld.com/article.php?story=20010402202522315