Linux下编译PHP时选项参数相当多,今天下决心./configure --help > help.txt
导出一份编译选项清单并翻译了,方便以后查阅.
SAPI modules(PHP SAPI接口模块的选项):
大部分与apache、nginx等web服务有关
--with-aolserver=DIR AOLserver的安装路径 --with-apxs=FILE 编译出apache1.x版本的共享模块所存放的路径 --with-apache=DIR 编译出apache1.x版本的模块,这里设定为apache软件根目录 --enable-mod-charset 启用apache的mod_charset(俄文apache用的) --with-apxs2filter=FILE 编译apache2.0的共享过滤模块,这里设定为apache 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为连续服务模块。参数为安装Continuity 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服务器编译PHP为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 php.ini文件位置[PREFIX/lib] --with-config-file-scan-dir=PATH 扫描配置文件的路径 --enable-sigchild 使用PHP自带的SIGCHLD处理器 --enable-libgcc 启用libgcc的精确链接 --disable-short-tags 默认禁用短形式的<?作为php代码的开始标记 --enable-dmalloc 启用dmalloc(dmalloc是Linux C编程侦测记忆体溢出工具) --disable-ipv6 关闭ipv6支持 --enable-dtrace 开启DTrace(动态跟踪)支持 --enable-fd-setsize 设置描述集的大小
Extensions(扩展):
--with-pdo-odbc=unixODBC will check for unixODBC under /usr/local. You may attempt to use an otherwise unsupported driver using the \"generic\" flavour. The syntax for generic ODBC support is: --with-pdo-odbc=generic,dir,libname,ldflags,cflags When built as 'shared' the extension filename is always pdo_odbc.so --with-pdo-pgsql=DIR PDO: PostgreSQL support. DIR is the PostgreSQL base install directory or the path to pg_config --without-pdo-sqlite=DIR PDO: sqlite 3 support. DIR is the sqlite base install directory BUNDLED --with-pgsql=DIR Include PostgreSQL support. DIR is the PostgreSQL base install directory or the path to pg_config --disable-phar Disable phar support --disable-posix Disable POSIX-like functions --with-pspell=DIR Include PSPELL support. GNU Aspell version 0.50.0 or higher required --with-libedit=DIR Include libedit readline replacement (CLI/CGI only) --with-readline=DIR Include readline support (CLI/CGI only) --with-recode=DIR Include recode support --disable-session Disable session support --with-mm=DIR SESSION: Include mm support for session storage --enable-shmop Enable shmop support --disable-simplexml Disable SimpleXML support --with-libxml-dir=DIR SimpleXML: libxml2 install prefix --with-snmp=DIR Include SNMP support --with-openssl-dir=DIR SNMP: openssl install prefix --enable-soap Enable SOAP support --with-libxml-dir=DIR SOAP: libxml2 install prefix --enable-sockets Enable sockets support --with-sybase-ct=DIR Include Sybase-CT support. DIR is the Sybase home directory /home/sybase --enable-sysvmsg Enable sysvmsg support --enable-sysvsem Enable System V semaphore support --enable-sysvshm Enable the System V shared memory support --with-tidy=DIR Include TIDY support --disable-tokenizer Disable tokenizer support --enable-wddx Enable WDDX support --with-libxml-dir=DIR WDDX: libxml2 install prefix --with-libexpat-dir=DIR WDDX: libexpat dir for XMLRPC-EPI (deprecated) --disable-xml Disable XML support --with-libxml-dir=DIR XML: libxml2 install prefix --with-libexpat-dir=DIR XML: libexpat install prefix (deprecated) --disable-xmlreader Disable XMLReader support --with-libxml-dir=DIR XMLReader: libxml2 install prefix --with-xmlrpc=DIR Include XMLRPC-EPI support --with-libxml-dir=DIR XMLRPC-EPI: libxml2 install prefix --with-libexpat-dir=DIR XMLRPC-EPI: libexpat dir for XMLRPC-EPI (deprecated) --with-iconv-dir=DIR XMLRPC-EPI: iconv dir for XMLRPC-EPI --disable-xmlwriter Disable XMLWriter support --with-libxml-dir=DIR XMLWriter: libxml2 install prefix --with-xsl=DIR Include XSL support. DIR is the libxslt base install directory (libxslt >= 1.1.0 required) --enable-zip Include Zip read/write support --with-zlib-dir=DIR ZIP: Set the path to libz install prefix --with-pcre-dir ZIP: pcre install prefix --with-libzip=DIR ZIP: use libzip --enable-mysqlnd Enable mysqlnd explicitly, will be done implicitly when required by other extensions --disable-mysqlnd-compression-support Disable support for the MySQL compressed protocol in mysqlnd --with-zlib-dir=DIR mysqlnd: Set the path to libz install prefix
点击查看更多内容
为 TA 点赞
评论
共同学习,写下你的评论
评论加载中...
作者其他优质文章
正在加载中
感谢您的支持,我会继续努力的~
扫码打赏,你说多少就多少
赞赏金额会直接到老师账户
支付方式
打开微信扫一扫,即可进行扫码打赏哦