Mysql
Install mysql
# yum install mysql mysql-devel mysql-server
Edit /etc/init.d/mysqld
Edit the lines for restart() from stop start to
restart() {
stop
sleep 3
start
}
Enable mysql to start at boot time
# chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start
To set root password
# mysqladmin -u root password yourrootsqlpassword
# mysqladmin -h server1.example.com -u root password yourrootsqlpassword
Apache/PHP
Install apache
# yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel
Set apache to start upon boot
# chkconfig --levels 235 httpd on