您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

Linux下PHP5.6编译参数详解

2024/6/3 13:03:19发布53次查看
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 默认禁用短形式的= 8.60 required) --with-empress-bcs=dir include empress local access support \$empresspath (empress version >= 8.60 required) --with-birdstep=dir include birdstep support /usr/local/birdstep --with-custom-odbc=dir include user defined odbc support. dir is odbc install base directory /usr/local. make sure to define custom_odbc_libs and have some odbc.h in your include dirs. f.e. you should define following for sybase sql anywhere 5.5.00 on qnx, prior to running this configure script: cppflags=\-dodbc_qnx -dsqlany_bug\ ldflags=-lunix custom_odbc_libs=\-ldblib -lodbc\ --with-iodbc=dir include iodbc support /usr/local --with-esoob=dir include easysoft oob support /usr/local/easysoft/oob/client --with-unixodbc=dir include unixodbc support /usr/local --with-dbmaker=dir include dbmaker support --enable-opcache enable zend opcache support --enable-pcntl enable pcntl support (cli/cgi only) --disable-pdo disable php data objects support --with-pdo-dblib=dir pdo: dblib-db support. dir is the freetds home directory --with-pdo-firebird=dir pdo: firebird support. dir is the firebird base install directory /opt/firebird --with-pdo-mysql=dir pdo: mysql support. dir is the mysql base directory if no value or mysqlnd is passed as dir, the mysql native driver will be used --with-zlib-dir=dir pdo_mysql: set the path to libz install prefix --with-pdo-oci=dir pdo: oracle oci support. dir defaults to \$oracle_home. use --with-pdo-oci=instantclient,prefix,version for an oracle instant client sdk. for example on linux with 11.2 rpms use: --with-pdo-oci=instantclient,/usr,11.2 with 10.2 rpms use: --with-pdo-oci=instantclient,/usr,10.2.0.4 --with-pdo-odbc=flavour,dir pdo: support for 'flavour' odbc driver. include and lib dirs are looked for under 'dir'. 'flavour' can be one of: ibm-db2, iodbc, unixodbc, generic if ',dir' part is omitted, default for the flavour you have selected will be used. e.g.: --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
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product