Centos 6 LAMP setup

This is to document the whole setup process.

Apache

# update yum
$ yum update

# install httpd
$ yum install httpd

# start httpd at system start
$ /sbin/chkconfig --levels 235 httpd on

# start Apache
$ service httpd start

MySQL

# install mysql
$ yum install mysql-server

# start mysql on system startup
$ /sbin/chkconfig --levels 235 mysqld on

# start mysql service
$ service mysqld start

# run secure installation to setup root password, remove test database and user
$ mysql_secure_installation

PHP

# install php and pear package
$ yum install php php-pear

# install php extensions
$ yum install php-mysql
comments powered by Disqus