PHP Version:
php-5.6.8.tar.bz2
Common Parameters
--prefix=/usr/local/php #位置
--with-mysql=/usr/local/mysql #php依赖于mysql
--with-openssl #openssl支持
--with-mysqli=/usr/local/mysql/bin/mysql_config #mysqli另一种php和mysql交互的方式
--with-freetype-dir #自动引用网页上的字体
--with-jpeg-dir #图片压缩格式
--with-png-dir #图片存储格式
--with-zlib #网络上常用的通用格式压缩库
--with-libxml-dir=/usr #libxml扩展标记语言库
--enable-mbstring #支持中文或非一个字节可以表示的语言
--enable-xml
--enable-sockets #支持socket通信
--with-mcrypt #mcrypt加密扩展
--with-config-file-path=/etc #配置文件路径/etc/php.ini
--with-config-file-scan-dir=/etc/php.d #配置文件路径/etc/php.d/*.ini
--with-bz2 #压缩格式
--with-apxs2=/usr/local/apache/bin/apxs #以模块方式若以Fastcgi方式改为:--enable-fpm
--enable-maintainer-zts #表示apache以线程的方式工作, i.e. (event/worker mode)
As an Apache module, the way
1: Configuration file
2: Configuration file-related configuration
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/4F/wKiom1WYAifTPkwEAAEHTVK5vzA409.jpg "style=" float: none; "title=" Image.png "alt=" Wkiom1wyaiftpkweaaehtvk5vza409.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/4C/wKioL1WYA_HA8g7cAABJfjlwfgo129.jpg "style=" float: none; "title=" Image1.png "alt=" Wkiol1wya_ha8g7caabjfjlwfgo129.jpg "/>
In fastcgi mode
1:php Master configuration file
The following are relative/usr/local/php directories
2: Start Script sapi/f ' P ' m/init.d.php-fpm direct copy
3:FPM configuration file/etc/php-fpm.conf.default, copy renamed php-fpm.conf to the same path
Configure the FPM profile as needed and enable the PID file
Enable PHP-FPM
4:HTTPD configuration file
Dedicated modules for fastcgi after httpd 2.4
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/4C/wKioL1WYBAyBeTQmAAFMXiKZRNk877.jpg "style=" float: none; "title=" Image2.png "alt=" Wkiol1wybaybetqmaafmxikzrnk877.jpg "/>
Proxypass: only proxy conversion URL
Proxypassmatch: can use regular expressions
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/4C/wKioL1WYBAzxMPbdAAE7Hgw5HCg162.jpg "style=" float: none; "title=" Image3.png "alt=" Wkiol1wybazxmpbdaae7hgw5hcg162.jpg "/>
This article is from the "Call Me boxin" blog, so be sure to keep this source http://boxinknown.blog.51cto.com/10435935/1670991
PHP Compiler Installation Essentials