yum install php –enablerepo=centosplus or yum update php –enablerepo=centosplus yum install mysql-server yum install mysql yum install mysql-devel Inorder to use with php yum install php-mysql By default mysql has the no passward. To change the password in command shell write the following commands mysql mysql> USE mysql; mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root'; mysql> FLUSH PRIVILEGES;
this link > http://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-on-centos-5.3-lamp
Do you have any control panel installed or it is a fresh OS installed server. If you are not using any control panel, you can install PHP and MySQL via yum. Kailash