Linux Environment PHP7.0 Installation

Source: Internet
Author: User

Using the Software
Xshell 5


RM a.txt Delete normal files a.txt
Rm-r A/delete directory a


RM-RF A/force delete directory A
-F indicates mandatory




Uninstalling Apache
Yum Remove httpd


Uninstalling SVN
RPM-E Subversion--nodeps


Download
wget Http://cn2.PHP.net/get/php-7.0.2.tar.gz/from/this/mirror


Unzip the installation
Tar zxvf php-7.0.2.tar.gz
CD php-7.0.2


Install dependent libraries together
Yum-y Install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel MySQL pcre-devel cu Rl-devel Libxslt-devel


Installing plugins
./configure--prefix=/usr/local/php \
--with-curl \
--with-freetype-dir \
--WITH-GD \
--with-gettext \
--with-iconv-dir \
--with-kerberos \
--WITH-LIBDIR=LIB64 \
--with-libxml-dir \
--WITH-MYSQLI \
--WITH-OPENSSL \
--with-pcre-regex \
--with-pdo-mysql \
--with-pdo-sqlite \
--with-pear \
--with-png-dir \
--WITH-XMLRPC \
--with-xsl \
--with-zlib \
--ENABLE-FPM \
--enable-bcmath \
--enable-libxml \
--enable-inline-optimization \
--ENABLE-GD-NATIVE-TTF \
--enable-mbregex \
--enable-mbstring \
--enable-opcache \
--ENABLE-PCNTL \
--ENABLE-SHMOP \
--ENABLE-SOAP \
--enable-sockets \
--enable-sysvsem \
--enable-xml \
--enable-zip


Compiling the installation
Make && make install


Note that PHP7 www.conf This configuration file configuration phpfpm port number, and so on, if you modify the default 9000 port number should be changed here, and then change the Nginx configuration
CP Php.ini-development/usr/local/php/lib/php.ini
Cp/usr/local/php/etc/php-fpm.conf.default/usr/local/php/etc/php-fpm.conf
Cp/usr/local/php/etc/php-fpm.d/www.conf.default/usr/local/php/etc/php-fpm.d/www.conf
Cp-r./sapi/fpm/php-fpm/etc/init.d/php-fpm


Start
/etc/init.d/php-fpm


Query process
Ps-aux | grep "PHP"


Kill process
Kill 8080


Installing Apache connections
Http://www.cnblogs.com/zhuque/archive/2012/11/03/2763352.html


Service httpd Start
Service httpd Restart Restart
Service httpd Stop Services

Linux Environment PHP7.0 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.