锟斤拷锟斤拷锟斤拷锟斤拷选锟斤拷锟叫憋拷

锟斤拷锟斤拷锟斤拷 PHP 锟斤拷 configure 锟脚憋拷使锟矫的诧拷锟斤拷选锟斤拷锟斤拷斜锟斤拷锟斤拷锟斤拷锟� Unix 锟斤拷锟斤拷锟侥憋拷锟诫。锟襟部凤拷锟斤拷锟斤拷选锟斤拷锟斤拷锟斤拷展模锟斤拷慰锟揭筹拷锟斤拷实锟斤拷锟轿伙拷锟斤拷谐锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷铩R拷榭达拷锟斤拷锌锟斤拷锟斤拷锟斤拷锟窖★拷锟斤拷锟叫憋拷锟斤拷锟斤拷锟斤拷 autoconf 锟斤拷锟斤拷锟斤拷锟� PHP 锟斤拷源锟斤拷锟斤拷目录锟斤拷锟斤拷 ./configure --help锟斤拷锟轿硷拷锟斤拷装锟斤拷锟斤拷锟斤拷一锟铰o拷锟斤拷也锟斤拷锟斤拷锟侥讹拷 » GNU configure 锟侥碉拷锟皆伙拷锟斤拷泄锟� configure 锟斤拷锟斤拷母锟斤拷锟较革拷锟较拷锟斤拷锟斤拷锟� --prefix=PREFIX锟斤拷

Note:

锟斤拷些选锟斤拷只锟斤拷锟节憋拷锟斤拷锟绞憋拷锟斤拷锟斤拷锟斤拷要锟睫革拷 PHP 锟斤拷锟斤拷锟斤拷时锟斤拷锟矫o拷锟斤拷锟侥讹拷锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷

PHP 锟斤拷锟斤拷选锟斤拷

锟斤拷锟斤拷选锟斤拷

--enable-debug

锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷苑锟斤拷拧锟�

--with-layout=TYPE

锟斤拷锟矫憋拷锟斤拷装锟侥硷拷锟侥诧拷锟街★拷TYPE 锟斤拷 PHP锟斤拷默锟较o拷锟斤拷 GNU锟斤拷

--with-pear=DIR

锟斤拷 DIR锟斤拷默锟斤拷为 PREFIX/lib/php锟斤拷锟叫帮拷装 PEAR锟斤拷

--without-pear

锟斤拷锟斤拷装 PEAR锟斤拷

--enable-sigchild

使锟斤拷 PHP 锟皆达拷锟斤拷 SIGCHLD 锟斤拷锟斤拷锟斤拷锟斤拷

--disable-rpath

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷路锟斤拷锟叫达拷锟斤拷锟斤拷锟斤拷锟斤拷锟叫库。

--enable-libgcc

锟斤拷锟斤拷 libgcc 锟侥撅拷确锟斤拷锟接★拷

--enable-php-streams

锟斤拷锟斤拷锟斤拷锟斤拷锟皆碉拷 PHP 锟斤拷锟斤拷锟斤拷要使锟矫达拷选锟筋,锟斤拷锟斤拷锟斤拷要锟斤拷锟皆达拷锟诫!

--with-zlib-dir[=DIR]

锟斤拷锟斤拷 zlib 锟侥帮拷装目录锟斤拷

--with-tsrm-pthreads

使锟斤拷 POSIX 锟竭程o拷默锟较o拷锟斤拷

--enable-shared[=PKGS]

锟斤拷锟诫共锟斤拷锟� [default=yes]锟斤拷

--enable-static[=PKGS]

锟斤拷锟诫静态锟斤拷 [default=yes]锟斤拷

--enable-fast-install[=PKGS]

为锟斤拷锟劫帮拷装锟脚伙拷 [default=yes]锟斤拷

--with-gnu-ld

锟斤拷锟斤拷 C 锟斤拷锟斤拷锟斤拷使锟斤拷 GNU ld [default=no]锟斤拷

--disable-libtool-lock

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟狡伙拷锟斤拷锟斤拷锟侥憋拷锟诫)锟斤拷

--with-pic

锟斤拷锟皆斤拷使锟斤拷 PIC/锟斤拷 PIC 锟斤拷锟斤拷 [default=use both]锟斤拷

--enable-memory-limit

锟斤拷锟斤拷锟节达拷锟斤拷锟斤拷支锟街癸拷锟杰★拷(锟斤拷PHP 5.2.1锟斤拷始锟斤拷锟斤拷锟矫o拷默锟斤拷enable)

--disable-url-fopen-wrapper

锟斤拷锟斤拷 URL 锟斤拷式锟斤拷 fopen 锟斤拷装协锟介。锟斤拷协锟斤拷锟斤拷锟斤拷通锟斤拷 HTTP 锟斤拷锟斤拷 FTP 锟斤拷锟斤拷锟侥硷拷锟斤拷 锟斤拷锟斤拷PHP5.2.5锟斤拷始锟斤拷锟斤拷锟矫o拷

--enable-versioning

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷姆锟斤拷拧锟斤拷榭� INSTALL 锟侥硷拷锟皆伙拷酶锟斤拷锟斤拷锟较拷锟�

PHP 选锟斤拷

--enable-maintainer-mode

锟斤拷偶然锟斤拷装一锟铰碉拷锟斤拷锟斤拷锟斤拷锟矫达拷选锟筋,使锟矫诧拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷系锟斤拷

--with-config-file-path=PATH

锟斤拷锟斤拷 php.ini 锟斤拷锟斤拷锟斤拷路锟斤拷锟斤拷默锟斤拷为 PREFIX/lib锟斤拷

--enable-safe-mode

默锟斤拷锟斤拷锟矫帮拷全模式锟斤拷

Warning

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.3.0 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.4.0 锟斤拷锟狡筹拷锟斤拷

--with-exec-dir[=DIR]

锟节帮拷全模式时锟斤拷锟斤拷锟斤拷锟斤拷 DIR 目录锟斤拷执锟叫★拷默锟斤拷目录为 /usr/local/php/bin锟斤拷

Warning

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.3.0 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.4.0 锟斤拷锟狡筹拷锟斤拷

--enable-magic-quotes

默锟斤拷锟斤拷锟斤拷 magic quotes锟斤拷

Warning

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.3.0 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.4.0 锟斤拷锟狡筹拷锟斤拷

--disable-short-tags

默锟较斤拷锟矫讹拷锟斤拷式锟侥匡拷始锟斤拷签 <? 锟斤拷

--enable-zend-multibyte

锟节词凤拷锟斤拷锟斤法锟斤拷锟斤拷时锟斤拷锟斤拷锟斤拷纸诒锟斤拷氡恢达拷小锟斤拷锟斤拷锟节憋拷锟斤拷PHP时使锟斤拷锟斤拷锟斤拷锟窖★拷睿拷锟斤拷芄锟斤拷锟� declare 锟结构锟斤拷使锟斤拷 encoding指锟筋。

Warning

锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.3.0 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 5.4.0 锟斤拷锟狡筹拷锟斤拷

--with-libdir

指锟斤拷Uxin系统锟斤拷锟侥硷拷目录锟斤拷锟节癸拷锟斤拷 PHP锟斤拷 锟斤拷锟斤拷64位系统, 锟斤拷要指锟斤拷 lib64 目录,锟斤拷锟斤拷--with-libdir=lib64

SAPI 选锟斤拷

锟斤拷锟斤拷锟斤拷斜锟斤拷锟斤拷 PHP 锟斤拷锟矫碉拷SAPI锟斤拷锟斤拷锟斤拷锟斤拷应锟矫憋拷探涌锟�锟斤拷锟斤拷

--with-aolserver=DIR

指锟斤拷 AOLserver 锟侥帮拷装路锟斤拷锟斤拷

--with-apxs[=FILE]

锟斤拷锟诫共锟斤拷锟� Apache 模锟介。FILE 锟角匡拷选锟斤拷 Apache apxs 锟斤拷锟竭碉拷路锟斤拷锟斤拷默锟斤拷指锟斤拷 apxs锟斤拷锟斤拷确锟斤拷指锟斤拷锟斤拷 apxs 锟窖撅拷锟斤拷装锟节凤拷锟斤拷锟斤拷锟叫o拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 Apache 源锟斤拷锟斤拷械锟斤拷歉锟� apxs锟斤拷

--with-apache[=DIR]

锟斤拷锟诫静态 Apache 模锟介。DIR 锟斤拷 Apache 锟斤拷锟斤拷目录锟侥讹拷锟姐,默锟斤拷为 /usr/local/apache锟斤拷

--with-mod_charset

锟斤拷锟斤拷 mod_charset 锟斤拷转锟斤拷锟斤拷锟斤拷锟侥碉拷 Apache 使锟矫o拷锟斤拷

--with-apxs2[=FILE]

锟斤拷锟诫共锟斤拷锟� Apache 2.0 模锟介。FILE 锟角匡拷选锟斤拷 Apache apxs 锟斤拷锟竭碉拷路锟斤拷锟斤拷默锟斤拷指锟斤拷 apxs锟斤拷

--with-caudium=DIR

为使锟斤拷 Caudium 锟斤拷锟斤拷 PHP 为一锟斤拷 Pike 模锟介。DIR 锟斤拷 Caudium 锟斤拷锟斤拷锟斤拷目录锟斤拷默锟斤拷为 /usr/local/caudium/server锟斤拷

--disable-cli

PHP 4.3.0 之锟斤拷陌姹撅拷锟叫э拷锟斤拷锟街癸拷锟斤拷锟� PHP 锟斤拷 CLI 锟芥本锟斤拷使锟斤拷锟斤拷锟斤拷同时强锟斤拷使锟斤拷 --without-pear 选锟筋)锟斤拷锟斤拷锟斤拷锟斤拷息锟斤拷榭� PHP 锟斤拷锟斤拷锟斤拷锟斤拷模式锟斤拷

--enable-embed[=TYPE]

锟斤拷锟矫憋拷锟斤拷嵌锟斤拷锟� SAPI 锟解。TYPE 锟斤拷锟斤拷为 shared 锟斤拷锟斤拷为 static锟斤拷默锟斤拷为 shared锟斤拷PHP 4.3.0 之锟斤拷陌姹撅拷锟叫э拷锟�

--with-fhttpd[=DIR]

锟斤拷锟斤拷 fhttpd 模锟介。DIR 锟斤拷 fhttpd 源锟斤拷锟斤拷目录锟斤拷默锟斤拷为 /usr/local/src/fhttpd锟斤拷PHP 4.3.0 锟斤拷锟皆猴拷陌姹撅拷锟窖★拷畈伙拷锟斤拷锟叫э拷锟�

--with-isapi=DIR

为 Zeus 锟斤拷锟斤拷锟斤拷锟斤拷 ISAPI 模锟介方式锟斤拷锟斤拷 PHP锟斤拷

--with-nsapi=DIR

指锟斤拷 Netscape/iPlanet/SunONE 锟侥帮拷装目录锟斤拷

--with-phttpd=DIR

锟斤拷没锟斤拷锟斤拷息锟斤拷

--with-pi3web=DIR

为 Pi3Web 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 PHP 模锟介。

--with-roxen=DIR

锟斤拷 Pike 模锟介方式锟斤拷锟斤拷 PHP锟斤拷DIR 锟斤拷 Roxen 锟侥革拷目录锟斤拷默锟斤拷为 /usr/local/roxen/server锟斤拷

--enable-roxen-zts

使锟斤拷 Zend 锟竭程帮拷全锟斤拷ZTS锟斤拷锟斤拷锟斤拷 Roxen 模锟介。

--with-servlet[=DIR]

锟斤拷锟斤拷 servlet 支锟街★拷DIR 锟斤拷 JSDK 锟侥帮拷装目录锟斤拷锟斤拷 SAPI 要锟斤拷 java 锟斤拷展锟斤拷锟斤拷锟斤拷为锟斤拷锟斤拷模锟斤拷锟斤拷氲� PHP 锟叫★拷

--with-thttpd=SRCDIR

锟斤拷锟斤拷 PHP 为 thttpd 模锟介。

--with-tux=MODULEDIR

锟斤拷锟斤拷 PHP 为 TUX 模锟介(锟斤拷锟斤拷 Linux 锟斤拷锟斤拷效锟斤拷锟斤拷

--with-webjames=SRCDIR

锟斤拷锟斤拷 PHP 为 WebJames 模锟介(锟斤拷锟斤拷 RISC 锟斤拷锟斤拷系统锟斤拷锟斤拷效锟斤拷锟斤拷

--disable-cgi

锟斤拷止锟斤拷锟斤拷 CGI 锟芥本锟斤拷 PHP锟斤拷PHP 4.3.0 之锟斤拷陌姹撅拷锟叫э拷锟�

PHP5.3.0锟斤拷锟斤拷锟窖★拷锟斤拷锟斤拷锟斤拷FastCGI锟斤拷锟斤拷锟斤拷锟斤拷前锟斤拷锟斤拷锟斤拷使锟斤拷--enable-fastcgi锟斤拷锟斤拷FastCGI锟斤拷

--enable-force-cgi-redirect

锟斤拷锟斤拷锟节诧拷锟斤拷锟斤拷锟斤拷锟截讹拷锟斤拷陌锟饺拷锟解。锟斤拷锟斤拷锟� Apache 锟斤拷使锟斤拷 CGI 锟芥本锟斤拷 PHP锟斤拷锟斤拷锟斤拷锟矫革拷选锟筋。

PHP 5.3.0锟斤拷默锟斤拷锟斤拷效锟斤拷锟斤拷锟劫达拷锟节★拷要锟斤拷锟矫此癸拷锟斤拷,锟斤拷锟斤拷cgi.force_redirect ini指锟斤拷为 0.

--enable-discard-path

锟斤拷锟斤拷锟斤拷酶锟窖★拷睿琍HP CGI 目录锟斤拷锟皆帮拷全锟侥凤拷锟斤拷 web 目录锟斤拷锟斤拷锟斤拷锟芥,锟斤拷锟斤拷锟睫凤拷锟杰匡拷 .htaccess 锟侥帮拷全锟斤拷锟狡★拷

PHP 5.3.0锟斤拷默锟较斤拷锟矫诧拷锟斤拷锟节达拷锟节★拷要锟斤拷锟矫此癸拷锟杰o拷锟斤拷锟斤拷 cgi-redirect ini指锟斤拷为1锟斤拷

--enable-fastcgi

锟斤拷锟斤拷锟斤拷茫锟紺GI 模锟介将锟斤拷锟斤拷锟斤拷为支锟斤拷 FastCGI锟斤拷PHP 4.3.0 之锟斤拷陌姹撅拷锟叫э拷锟�

PHP 5.3.0锟金,此诧拷锟斤拷锟斤拷锟劫达拷锟节o拷锟斤拷使锟斤拷 --enable-cgi锟斤拷锟斤拷锟�

--disable-path-info-check

锟斤拷锟斤拷锟窖★拷畋伙拷锟斤拷茫锟斤拷锟斤拷锟� /info.php/test?a=b 锟斤拷式锟斤拷路锟斤拷锟斤拷锟斤拷锟杰癸拷锟斤拷锟斤拷PHP 4.3.0 之锟斤拷陌姹撅拷锟叫э拷锟斤拷锟斤拷锟斤拷锟较拷锟轿匡拷 » Apache 锟街诧拷锟斤拷