yum install mysql mysql-server
Confirm the install and by answering yes, and yum will download all packages needed to install MySQL.
We need to make sure MySQL is started on boot
chkconfig --levels 235 mysqld on
You can now start the MySQL server by issuing the following command:
You can also start it using the command below:
service mysqld start
Once MySQL server is running it will display initial startup text and will instruct you to set "root" user password.
mysqladmin -u root password rootpassword
mysqladmin -h server1.example.com -u root password rootpassword
Make sure you change the highlighted items with the correct information.
Installing Apache (http server)
yum install httpd
Make it run on boot.
chkconfig --levels 235 httpd on
Start the service
service httpd start
yum install php