设为首页 收藏本站
查看: 729|回复: 0

[经验分享] 源码编译 PHP 完整配置选项

[复制链接]

尚未签到

发表于 2018-12-24 07:52:00 | 显示全部楼层 |阅读模式
  Usage: configure [options] [host]
  Options: [defaults in brackets after descriptions]
  Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created configure
  Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
  [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
  [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
  run sed PROGRAM on installed program names
  Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
  Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
  --enable and --with options recognized:
  --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
  --disable-rpath         Disable passing additional runtime library
  search paths
  --enable-re2c-cgoto     Enable -g flag to re2c to use computed goto gcc extension
  SAPI modules:
  --with-aolserver=DIR    Specify path to the installed AOLserver
  --with-apxs[=FILE]      Build shared Apache 1.x module. FILE is the optional
  pathname to the Apache apxs tool [apxs]
  --with-apache[=DIR]     Build Apache 1.x module. DIR is the top-level Apache
  build directory [/usr/local/apache]
  --enable-mod-charset      APACHE: Enable transfer tables for mod_charset (Rus Apache)
  --with-apxs2filter[=FILE]
  EXPERIMENTAL: Build shared Apache 2.0 Filter module. FILE is the optional
  pathname to the Apache apxs tool [apxs]
  --with-apxs2[=FILE]     Build shared Apache 2.0 Handler module. FILE is the optional
  pathname to the Apache apxs tool [apxs]
  --with-apache-hooks[=FILE]
  EXPERIMENTAL: Build shared Apache 1.x module. FILE is the optional
  pathname to the Apache apxs tool [apxs]
  --with-apache-hooks-static[=DIR]
  EXPERIMENTAL: Build Apache 1.x module. DIR is the top-level Apache
  build directory [/usr/local/apache]
  --enable-mod-charset      APACHE (hooks): Enable transfer tables for mod_charset (Rus Apache)
  --with-caudium[=DIR]    Build PHP as a Pike module for use with Caudium.
  DIR is the Caudium server dir [/usr/local/caudium/server]
  --disable-cli           Disable building CLI version of PHP
  (this forces --without-pear)
  --with-continuity=DIR   Build PHP as Continuity Server module.
  DIR is path to the installed Continuity Server root
  --enable-embed[=TYPE]   EXPERIMENTAL: Enable building of embedded SAPI library
  TYPE is either 'shared' or 'static'. [TYPE=shared]
  --enable-fpm              EXPERIMENTAL: Enable building of the fpm SAPI executable
  --with-fpm-user[=USER]  Set the user for php-fpm to run as. (default: nobody)
  --with-fpm-group[=GRP]  Set the group for php-fpm to run as. For a system user, this
  should usually be set to match the fpm username (default: nobody)
  --with-isapi[=DIR]      Build PHP as an ISAPI module for use with Zeus
  --with-litespeed        Build PHP as litespeed module
  --with-milter[=DIR]     Build PHP as Milter application
  --with-nsapi=DIR        Build PHP as NSAPI module for Netscape/iPlanet/Sun Webserver
  --with-phttpd=DIR       Build PHP as phttpd module
  --with-pi3web[=DIR]     Build PHP as Pi3Web module
  --with-roxen=DIR        Build PHP as a Pike module. DIR is the base Roxen
  directory, normally /usr/local/roxen/server
  --enable-roxen-zts        ROXEN: Build the Roxen module using Zend Thread Safety
  --with-thttpd=SRCDIR    Build PHP as thttpd module
  --with-tux=MODULEDIR    Build PHP as a TUX module (Linux only)
  --with-webjames=SRCDIR  Build PHP as a WebJames module (RISC OS only)
  --disable-cgi           Disable building CGI version of PHP
  General settings:
  --enable-gcov           Enable GCOV code coverage (requires LTP) - FOR DEVELOPERS ONLY!!
  --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
  Set the path in which to look for php.ini [PREFIX/lib]
  --with-config-file-scan-dir=PATH
  Set the path where to scan for configuration files
  --enable-safe-mode      Enable safe mode by default
  --with-exec-dir[=DIR]   Only allow executables in DIR under safe-mode
  [/usr/local/php/bin]
  --enable-sigchild       Enable PHP's own SIGCHLD handler
  --enable-magic-quotes   Enable magic quotes by default.
  --enable-libgcc         Enable explicitly linking against libgcc
  --disable-short-tags    Disable the short-form

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-655033-1-1.html 上篇帖子: php patch记录request url (项目故障点定位) 下篇帖子: 关于php5.3 以上url自动加链接的处理
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表