1. View the current server version
#方法1cat/etc/redhat-release# Method 2rpm-q Centos-release
2. Installing Apache
#一键安装apacheyum Install httpd# start apche/etc/init.d/httpd start #方法1 service httpd start
3, Installation PHP7
#更新yum源 (no PHP7 in the default yum source) RPM-UVH http://mirror.webtatic.com/yum/el6/latest.rpm #安装php及常用的拓展模块yum-y install php70w Php70w-mysql php70w-mbstring php70w-mcrypt php70w-gd php70w-imap php70w-ldap php70w-odbc php70w-pear php70w-xml Php70w-xmlrpc php70w-pdo# view php installed those extension modules php-m# install other expansion modules you need yum-y install Php70w-xxx
4, Installation mysql5.5
#查询是否安装了mysql, the 5.1 version of Mysql-libs is installed by default. Need to uninstall Rpm-qa|grep mysqlrpm-e mysql-libs--nodeps #不检测依赖性 # Add two new repo source RPM-UVH http://mirror.steadfast.net/epel/6/ I386/EPEL-RELEASE-6-8.NOARCH.RPMRPM-UVH http://rpms.famillecollet.com/enterprise/remi-release-6.rpm# Detects if the source is installed successfully yum--enablerepo=remi,remi-test list mysql mysql-server# install mysql5.5yum-y--enablerepo=remi,remi-test installed MySQL mysql-server# start mysql/etc/init.d/mysqld start# set MySQL to boot automatically start chkconfig--levels 345 mysqld on# Set the root password for MySQL/ Usr/bin/mysql_secure_installation
centos6.5 System-Build lamp (PHP7) environment-(Yum online installation)