admin 管理员组

文章数量: 1086019


2024年4月15日发(作者:mysql 降序)

Linux下PHP5.6编译参数详解

Linux下编译PHP时选项参数相当多,今天下决心./configure --help >

导出一份编译选项清单并翻译了,方便以后查阅.

SAPI modules(PHP SAPI接口模块的选项):

大部分与apache、nginx等web服务有关

--with-aolserver=DIR AOLserver的安装路径

--with-apxs=FILE 编译出apache1.x版本的共享模块所存放的路径

--with-apache=DIR 编译出apache1.x版本的模块,这里设定为apa

che软件根目录

--enable-mod-charset 启用apache的mod_charset(俄文apache用

的)

--with-apxs2filter=FILE 编译apache2.0的共享过滤模块,这里设定为ap

ache apxs工具的路径

--with-apxs2=FILE 编译共享apache2.0处理程序的模块,这里设定为

apache apxs工具的路径

--with-apache-hooks=FILE共享的apache1.0的钩子模块,这里设定为

apache apxs工具的路径

--with-apache-hooks-static=DIR 这里设定为apache apxs工具的路径

--disable-cli 禁用命令行模式(php-cli)

--with-continuity=DIR 编译php为连续服务模块。参数为安装Conti

nuity Server的根目录

--enable-embed=TYPE 建立内嵌的SAPI库。参数为shared、static

--enable-fpm 开启fpm模式(nginx等服务用的)

--with-fpm-user=USER fpm运行的用户,默认为nobody

--with-fpm-group=GRP fpm运行的组,默认为nobody

--with-fpm-systemd 激活系统集成功能,开启后fpm可以上报给系统

一些信息

--with-fpm-acl 使用POSIX 访问控制列表,5.6.5版本起有效

--with-isapi=DIR 为Zeus web服务器建立ISAPI模块

--with-litespeed 编译PHP为litespeed模块

--with-milter=DIR 编译PHP为Milter应用程序

--with-nsapi=DIR 为Netscape/iPlanet/Sun Web服务器编译PH

P为NSAPI模块

--enable-phpdbg 编译开启phpdbg调试器

--enable-phpdbg-debug 编译phpdbg调试器为debug模式

--with-phttpd=DIR 编译PHP为phttpd模块

--with-pi3web=DIR 编译PHP为pi3web模块

--with-roxen=DIR 编译PHP为roxen模块

--enable-roxen-zts 编译PHP为roxen模块,线程安全

--with-thttpd=SRCDIR 编译PHP为thttpd模块

--with-tux=MODULEDIR 编译PHP为tux模块

--with-webjames=SRCDIR 编译PHP为webjames模块

--disable-cgi 禁用cgi

General settings(综合设置):

--enable-gcov 开启gcov支持(测试代码覆盖率功能,)

--enable-debug Compile with debugging symbols

--with-layout=TYPE Set how installed files will be laid out. Type

can

be either PHP or GNU [PHP]

--with-config-file-path=PATH 文件位置[PREFIX/lib]

--with-config-file-scan-dir=PATH 扫描配置文件的路径

--enable-sigchild 使用PHP自带的SIGCHLD处理器

--enable-libgcc 启用libgcc的精确链接

--disable-short-tags 默认禁用短形式的

--enable-dmalloc 启用dmalloc(dmalloc是Linux C编程侦测记

忆体溢出工具)

--disable-ipv6 关闭ipv6支持

--enable-dtrace 开启DTrace(动态跟踪)支持

--enable-fd-setsize 设置描述集的大小


本文标签: 模块 编译 开启 路径 支持