How to install LAMP in yum in CentOS6.5 system

  
                

LAMP is a common environment for yum in CentOS6.5 system. The method of installing LAMP in yum in CentOS6.5 system is also very simple. Let me introduce how to install LAMP in yum in CentOS6.5 system. Let's take a look.

1, the installation source

rpm -Uvh http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch. Rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

2. Update and install the base library

yum - y update

yum -y install gcc gcc-c++ autoconf automake zlib zlib-devel openssl openssl-devel pcre pcre-devel

3, install Apache and mysql

yum - -enablerepo=remi -y install mysql mysql-server mysql-devel httpd httpd-devel

chkconfig httpd on

chkconfig mysqld on

service mysqld start

mysql security settings

mysql_secure_installation

mysql -u root -p Enter password

Create the database you want to use. . . Previous12Next page Total 2 pages

Copyright © Windows knowledge All Rights Reserved