PHP compiler installation and fastcgi use

Source: Internet
Author: User
Tags gettext intl soap ldap php compiler

Lamp's PHP

This chapter we talk about PHP, and fastcgi

The following links are lamp Am,apache and mariadb

http://rexchow.blog.51cto.com/11619161/1886441

http://rexchow.blog.51cto.com/11619161/1886441


Start the PHP Tour


wget http://cn2.php.net/distributions/php-5.6.29.tar.gz

# #下载php包


Yum install-y libxml2-dev el openssl-devel libcurl-devel libjpeg-devel libpng-devel libicu-devel openldap-devel


# #增加兼容性


Tar XF php-5.6.29.tar.gz

CD php-5.6.29

 #添加组groupadd  www# Add PHP-FPM user useradd -c php-fpm-user  -g www -m php-fpm./configure --prefix=/usr/local/php--with-libdir=lib64# #如果64位操作系统, specified as/usr /LIB64 is the default library path--enable-fpm--with-fpm-user=php-fpm--with-fpm-group=www--enable-mysqlnd--with-mysql= mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--enable-opcache# #PHP编译字节码缓存, if you need to expand  Xdebug   OPcache , you must load  OPcache  extend--enable-pcntl# #进程控制 before  Xdebug  expand, and the default is off, Compiling to open--enable-mbstring# #宽字符支持--enable-soap# #简单对象访问协议, using XML to transfer data, is currently not commonly used--enable-zip# #zip文件处理--enable-calendar## Calendar processing--enable-bcmath# #任意精度数学扩展--enable-exif## (exchangeable image File format) designed for digital camera and photo settings, recording the properties of digital photos and capturing data--enable-ftp--enable-intl # #国际化支持--with-openssl# #支持ssl加密--with-zlib--with-curl--with-gd--with-zlib-dir=/usr/lib--with-png-dir=/usr/ lib--with-jpeg-dir=/usr/lib--with-gettext# #语言翻译--with-mhash# #hash库支持--with-ldap# #ldap支持make  &&  make install 
./configure--prefix=/usr/local/php--with-libdir=lib64--enable-fpm--with-fpm-user=php-fpm--with-fpm-group=www-- Enable-mysqlnd--with-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--enable-opcache--enable-pcntl- -enable-mbstring--enable-soap--enable-zip--enable-calendar--enable-bcmath--enable-exif--enable-ftp-- Enable-intl--with-openssl--with-zlib--with-curl--with-gd--with-zlib-dir=/usr/lib--with-png-dir=/usr/lib-- With-jpeg-dir=/usr/lib--with-gettext--with-mhash--with-ldap # #复制版本



PHP compiler installation and fastcgi use

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.