//install mysql server+client:
//first check if mysql is already installed:
#>rpm -q MySQL
//if none are installed:
#> rpm -i MySQL-server-VERSION.i386.rpm MySQL-client-VERSION.i386.rpm
//uninstall rpms like
#>rpm -e MySQL //or something. (better way is to use your systems package manager!)
apache+php:
//create dirs
#>mkdir /usr/local/apache
#>mkdir /usr/local/php
//download packages into these dirs (apache to ../apache, php to ../php)
</usr/local/apache#>tar -xvzf apache-VERSION.tar.gz
apache-VERSION#>cd apache-VERSION
apache-VERSION#>./configure --prefix=/usr/local/apache --enable-module=so
apache-VERSION#>make
apache-VERSION#>make install
open file /usr/local/apache/conf/httpd.conf -> edit ServerName and ServerAdmin (i guess you know how)
Start apache:
#>/usr/local/apache/bin/apachectl start
if
http://127.0.0.1 works then install PHP
<usr/local/php#>tar -xvzf php-VERSION.tar.gz
php#>cd php-VERSION
php#>./configure --enable-ftp --with-apxs=/usr/local/apache/bin/apxs
php#>make
php#>make install
now stop apache -> /usr/local/apache/bin/apachectl stop
edit httpd.conf again to set the lines
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
Action application...something
//edit what you'd like and know how.
//start the apache again and there you go!
//to make it start at boot time:
#>cd /etc/rc.d/rc3.d
rc3.d#>ln -s /usr/local/apache/bin/httpd S85httpd
the number after rc
3 depends on in what run level you're running your system (or something like that).
For a complete HOW-TO check the LAMPS site:
http://lamps.efactory.de/
it's in german and english!