PHP Compiler Installation Essentials

Source: Internet
Author: User
Tags php compiler

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

    • CP Php.ini-production/etc/php.ini

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

    • CP Php.ini-production/etc/php.ini #会查看fpm的配置文件

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

    • Turn on reverse generation to enable the following two modules

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 "/>

    • Turn on reverse proxy: Move the request to a different host for a return result

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 "/>

    • Other settings and modules in the same way


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

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.