The following solution to install Apache, MySQL and PHP was checked under Fedora 15 distribution.
First, you need to install the relevant packages:
su #for root login, enter password when prompted yum install mysql-server service mysqld start mysqladmin -u root password <set your wished password here> yum install phpmyadmin
Now, you need to start the relevant services:
su #for root login, service mysqld restart service httpd restart
This should be done each time you need to use unless you want those services to start with your OS. In such case, you should type:
su #for root login chkconfig --add httpd chkconfig httpd on chkconfig --add mysqld chkconfig mysqld on
In order to test your PHP files, write a simple script:
<?php phpinfo() ?>
and place it in /var/www/html. Look at http://localhost/phpinfo.php to check if the script works.
You can also access the phpMyAdmin by navigating to http://localhost/phpmyadmin