I tried mamp once and it sucks. It attempts to sell you things that you get easily elsewhere for free and on a limited basis allready have.
Since I have some free time and You asked how to install apache / mysql / php I'm going give you step by step instructions on how to do this (how I did it).
Fist make sure that have xcode/apple developer tools/ gcc and they are the latest versions. (If not you'll be getting many cryptic error messages later on in the process)
If you don't have them you can get in nice package from apple here
http://developer.apple.com/tools/xcode/
You will and apple developer login to do this though
Then download apache2 unix source code here
http://httpd.apache.org/download.cgi
extract it and using the terminal go into the directory where you extracted it. Then type the following into the terminal (if you wish to use a different layout or mods you can I have given you basic set and standard layout)
type this into terminal said:
./configure --enable-layout=apache \
--enable-mods-shared=all \
--with-ssl=/usr \
--with-mpm=prefork \
--enable-ssl \
--enable-dav \
--enable-cache \
--enable-proxy \
--enable-dumpio \
--enable-shared \
--enable-speling \
--disable-static \
--disable-unique-id \
--disable-ipv6 \
--enable-logio \
--enable-deflate \
--with-ldap \
--with-ldap-include=/usr/include \
--with-ldap-lib=/usr/lib \
--with-included-apr \
--enable-ldap \
--enable-auth-ldap \
--enable-cgi \
--enable-cgid \
--enable-suexec
Then after you finish typing that in type in this
code to type into into terminal said:
Then if that does not fail or give any errors, type
type this into terminal said:
If that works and gives no errors you have just installed apache.
To start apache type this into the terminal (note: you will have to change the directory if you installed apache somewhere else)
[quote type=this gtes typed into the terminal]
sudo /usr/local/apache2/bin/apachectl start
[/quote]
and to stop apache type this
type this in the your terminal said:
sudo /usr/local/apache2/bin/apachectl stop
Once you have started apache type this in your browser
type this Into your browser said:
If apache is installed correctly and running you should see page displaying "It worked!"
THis tells you that apache is running and installed correctly
Now turn apache off to finish the rest of the installion
Now we are ready to install mysql
to do this
download the lastest source code from
http://dev.mysql.com/downloads/mysql/5.0.html#downloads. You can use their binary for mac if want but you will have to compile the source code anyway to get the shared libraries so I just compile it from the source code.
to do that extract the source code and using the terminal go into the directory where the source code is.
then type this in to the terminal (again you can use different build options or install mysql to a different directory)
type this into the terminal said:
CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
./configure --prefix=/usr/local/mysql \
--localstatedir=/usr/local/mysql/data \
--libexecdir=/usr/local/mysql/bin \
--libdir=/usr/local/mysql/lib \
--with-server-suffix=-standard \
--enable-thread-safe-client \
--enable-local-infile \
--enable-shared \
--with-zlib-dir=bundled \
--with-big-tables \
--with-readline \
--with-archive-storage-engine \
--with-innodb \
--without-bench
If all goes well and gives no errors
then type this in to the terminal
code to type into into terminal said:
Then if that does not fail or give any errors, type
type this into terminal said:
If you Ain't got no errors the mysql was sucessfully installed
To start mysql type this in to the terminal
type this into terminal said:
cd /usr/local/mysql
sudo ./bin/mysqld_safe
To access mysql type this in to the terminal
type this into terminal said:
sudo usr/local/mysql/bin/mysql
Now turnm mysql off
to complete the final step
Finally we are ready to install php to do this get the latest version of php source code from here
http://www.php.net/downloads.php
the following the same process extract it and go in the directory where you extracted it using the terminal
then type this into the terminal
type this into the terminal said:
CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
./configure --prefix=/Library/PHP5 \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--sysconfdir=/etc \
--with-zlib \
--with-xml \
--with-zlib-dir=/usr \
--with-openssl \
--enable-exif \
--enable-ftp \
--enable-mbstring \
--enable-mbregex \
--enable-sockets \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-apxs2=/usr/local/Apache2/bin/apxs
If all goes well and gives no errors
then type this in to the terminal
Then after you finish typing that in type in this
code to type into into terminal said:
Then if that does not fail or give any errors, type
type this into terminal said:
If you Ain't got no errors the php was sucessfully installed
to use php with apache you must opnen your httpd.conf file (located in usr/local/apache2/conf/httpd.conf) in a text editotr and type this at the bottm of the file
type this at the bottom of httpd.conf said:
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Now php will work with apache once it is turned on. To test php turn on apache and make a test page Containg this
testpage said:
html>
<head>
<title> PHP Test Script </title>
</head>
<body>
<?php
phpinfo( );
?>
</body>
</html>
save it as somthing like test.php
then run it using localhost://test.php
If you get about of info about php that means that php is on and running correctly. You are now ready to start using apache/ php /mysql