centos6.5 System-Build lamp (PHP7) environment-(Yum online installation)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.