APACHE
To install Apache
#yum install httpd
To automatically start Apache on startup
#chkconfig –levels 235 httpd on
To start and stop Apache
#/etc/init.d/httpd start
#/etc/init.d/httpd stop
PHP
To install PHP
#yum install php
MYSQL
To install MySQL
#yum install mysql mysql-server
To automatically start MySQL on startup
#chkconfig –levels 235 mysqld on
To set root password for mysql
#mysql_secure_installation
or
#mysqladmin -u root password rootpassword
To start or stop MySQL
#/etc/init.d/mysqld start
#/etc/init.d/mysqld start
To install phpMyAdmin
if php version is 5.1.x, use phpMyAdmin 2.x.x version.
Download the package from the following phpMyAdmin website using wget command.
http://www.phpmyadmin.net/home_page/downloads.php
#wget http://sourceforge.net/projects/phpmyadmin/files/phpMyAdmin/2.11.11.3/phpMyAdmin-2.11.11.3-english.tar.gz
Then, extract contents.
#tar xvfz phpMyAdmin-2.11.11.3-english.tar.gz
#mv phpMyAdmin-2.11.11.3-english/* /usr/share/phpmyadmin
Download the file and extract it to /usr/share folder.
#cp config.sample.inc.php config.inc.php
Edit the config.inc.php file, modify the line below .
$cfg['blowfish_secret'] = ‘TypeAnything_for_Secure’;
Append a line into the /etc/httpd/conf.d/php.conf file (type the following from command line!)
# echo “Alias /phpMyAdmin /usr/share/phpmyadmin” >> /etc/httpd/conf.d/php.conf
# yum install php-mysql
restart apache server