Installing LAMP server in Centos


Installing LAMP in CentOS

Installing MySQL 5.0

Type the commands below to the terminal.

-yum install mysql mysql-server
-chkconfig –levels 235 mysqld on <--- this command starts mysql automatically whenever the system boots. -/etc/init.d/mysqld start -mysql_secure_installation Installing Apache2 Type the commands below to the terminal. -yum install httpd -chkconfig --levels 235 httpd on <--- this command starts httpd automatically whenever the system boots. -/etc/init.d/httpd start To test type this address to your selected browser. http://localhost/ <-- if it will display something then your apache is working. Installing PHP5 Type the commands below to the terminal. -yum install php -/etc/init.d/httpd restart

,

Leave a Reply