Saturday 28 June 2014

Installing LAMP

LAMP = Linux Apache MySql & PHP

Apache (httpd)
  • # yum -y install httpd
  • # service httpd start
  • # chkconfig httpd on
MySql 
  • # yum -y install mysql mysql-server
  • # service mysqld start
  • In this step you will be asked to change root password and some other basic configurations.
    • # /usr/bin/mysql_secure_installation
PHP
  • # yum install -y php php-common
  • # yum install -y php-cli php-mysql php-devel
Check
  • # service httpd restart
  • # chkconfig httpd on
  • # service mysqld restart 
  • # chkconfig mysqld on

1 comment: