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