On the centos6.8 system, install the deployment php-5.6.

Source: Internet
Author: User
Tags install openssl

First Step: Install dependencies

[Email protected] ~]# yum-y install openssl-devel swig libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel FreeType fr Eetype-devel libxml2 libxml2-devel zlib zlib-devel libcurl libcurl-devel libmcrypt-devel mhash-devel mcrypt-devel

Step two: Download the PHP program

[Email protected] src]# wget http://soft.51yuki.cn/php-5.6.33.tar.gz

Step three: Install the PHP program

[Email protected] src]# Tar XF php-5.6.33.tar.gz

[Email protected] src]# CD php-5.6.33

[Email protected] php-5.6.33]# Useradd www

[Email protected] php-5.6.33]#/configure--prefix=/usr/local/php-fastcgi--with-pdo-mysql=mysqlnd--with-mysqli= Mysqlnd--with-mysql=mysqlnd--with-jpeg-dir--with-png-dir--with-zlib--enable-xml--with-libxml-dir--with-curl-- Enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--enable-mbregex--with-openssl-- Enable-mbstring--with-gd--enable-gd-native-ttf--with-freetype-dir=/usr/lib64--with-gettext=/usr/lib64-- Enable-sockets--with-xmlrpc--enable-zip--enable-soap--disable-debug--enable-opcache--enable-zip-- With-config-file-path=/usr/local/php-fastcgi/etc--enable-fpm--with-fpm-user=www--with-fpm-group=www && Make && make install

Fourth Step: Configure PHP

[email protected] php-5.6.33]# CP Php.ini-production/usr/local/php-fastcgi/etc/php.ini

[Email protected] php-5.6.33]# cd/usr/local/php-fastcgi/etc/
[email protected] etc]# CP Php-fpm.conf.default php-fpm.conf

[email protected] php-5.6.33]# CP SAPI/FPM/INIT.D.PHP-FPM/ETC/RC.D/INIT.D/PHP-FPM
Cp:overwrite '/etc/rc.d/init.d/php-fpm '? Y
[Email protected] php-5.6.33]# chmod u+x/etc/init.d/php-fpm

Fifth step: Start PHP

[[Email protected] php-5.6.33]# service PHP-FPM start
Starting php-fpm Done
[Email protected] php-5.6.33]# SS-TUNLP|GREP 9000
TCP LISTEN 0 10.100.100.105:9000 *:* Users: (("php-fpm", 3166,7), ("PHP-FPM", 3167,0), ("PHP-FPM", 3168,0))

Http://soft.51yuki.cn/php-5.6.33.tar.gz

On the centos6.8 system, install the deployment php-5.6.

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.