您好,欢迎访问一九零五行业门户网

PHP5的PHP.INI配置介绍, 解析文档

configure –help说明 配置帮助表: –help 显示帮助信息 display this help and exit –version 显示版本 display version information and exit –quiet, –silent 不显示checking……信息 do not print`checking…’ messages –cache-file=file 在指定文
configure –help说明
配置帮助表:–help
显示帮助信息
display this help and exit
–version
显示版本
display version information and exit
–quiet, –silent
不显示checking……信息
do not print`checking…’ messages
–cache-file=file
在指定文件中存储测试结果
cache test results in file [disabled]
–no-create
configure脚本运行结束后不输出结果文件,常用于正式编译前的测试。
do not create output files
安装目录:–srcdir=dir
源文件库所在目录
find the sources in dir [configure dir or `..']
–prefix=prefix
体系无关文件的顶级安装目录prefix ,也就php的安装目录
install architecture-independent files in prefix
[/usr/local/apache2]
–exec-prefix=eprefix
体系相关文件的顶级安装目录eprefix ,把体系相关的文件安装到不同的位置可以方便地在不同主机之间共享体系相关的文件
install architecture-dependent files in eprefix
[prefix]
–bindir=dir
用户可执行目录dir。用于存放php的支持程序
user executables [eprefix/bin]
–sbindir=dir
系统管理员可执行目录dir ,用于存放运行php服务器所必须的服务程序
system admin executables [eprefix/sbin]
–libexecdir=dir
程序可执行目录dir ,也就是动态加载模块目录
program executables [eprefix/libexec]
–sysconfdir=dir
只读的单一机器数据目录dir ,用于存放php.ini之类的服务器配置文件
read-only single-machine data [prefix/etc]
–sharedstatedir=dir
可改写的体系无关数据目录dir
modifiable architecture-independent data [prefix/com]
–localstatedir=dir
可改写的单一机器数据目录dir
modifiable single-machine data [prefix/var]
–libdir=dir
对象代码库目录dir
object code libraries [eprefix/lib]
–includedir=dir
php的c头文件目录dir
c header files [prefix/include]
–oldincludedir=dir
非gcc的c头文件目录dir
c header files for non-gcc [/usr/include]
–datadir=dir
php服务器只读的体系无关数据目录dir
read-only architecture-independent data [datarootdir]
–infodir=dir
信息文档目录dir
info documentation [datarootdir/info]
–localedir=dir
地区相关数据dir
locale-dependent data [datarootdir/locale]
–mandir=dir
手册文档目录dir
man documentation [datarootdir/man]
–program-prefix
=prefix
在安装的程序名前面加上前缀
prepend prefix to installed program names
–program-suffix
=suffix
在安装的程序名前面加上后缀
append suffix to installed program names
-program-transform-name
=program
在运行的时候要运行sed程序脚本
run sed program on installed program names
交叉编译选项:–build=build
指定编译工具所在系统的系统类型build
configure for building on build [guessed]
–host=host
指定apache http服务器将要进行交叉编译时运行的目标系统类型host
cross-compile to build programs to run on host [build]
–target=target
指定交叉编译所产生的目标代码类型
configure for building compilers for target [host]
特征选项:–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头文件
–x-libraries=dir
x library files are in dir
在目录中包含x库文件
–with-libdir=name
look for libraries in …/name rather than …/lib
库文件查找路径设置…/xxx/lib/
–disable-rpath
disable passing additional runtime library search paths
禁用传递其他运行库搜索路径
sapi modules(sapi模块设置):–with-aolserver=dir
specify path to the installed aolserver
指定aolserver网站服务器的安装路径
–with-apxs[=file]
build shared apache 1.x module. file is the optional pathname to the apache apxs tool [apxs]
编译出共享的apache 1.x版本的共享模块所存放的路径
–with-apache[=dir]
build apache 1.x module. dir is the top-level apache build directory [/usr/local/apache]
编译apache1.x版本的模块,目录是apache的软件根目录。
–enable-mod-charset
apache: enable transfer tables for mod_charset (rus apache)
为apache的mod_charset模块启用传输表模式。(俄文的apache使用)
–with-apxs2filter[=file]
experimental: build shared apache 2.0 filter module. file is the optional pathname to the apache apxs tool [apxs]
实验性:编译apache2.0的共享过滤模块。参数是apache apxs工具的路径文件
–with-apxs2[=file]
build shared apache 2.0 handler module. file is the optional pathname to the apache apxs tool [apxs]
编译共享的apache2.0处理程序的模块。参数是apache apxs工具的路径文件
–with-apache-hooks[=file]
experimental: build shared apache 1.x module. file is the optional pathname to the apache apxs tool [apxs]
实验性:编译共享的apache1.0的hooks模块。参数是apache apxs工具的路径文件
–with-apache-hooks-static[=dir]
experimental: build apache 1.x module. dir is the top-level apache build directory [/usr/local/apache]
实验性:编译apache1.0的hooks模块。参数是apache apxs工具的路径文件
–enable-mod-charset
apache (hooks): enable transfer tables for mod_charset (rus apache)apache(hooks)
为apache的mod_charset模块启用传输表模式。
–with-caudium[=dir]
build php as a pike module for use with caudium. dir is the caudium server dir [/usr/local/caudium/server]
为caudium服务器编译pick模块。参数为caudium软件的目录。
–disable-cli
disable building cli version of php
编译禁用cli的php版本。这个参数需要–without-pear (this forces –without-pear)
–with-continuity=dir
build php as continuity server module. dir is path to the installed continuity server root
编译php为连续服务模块。参数为安装continuity server的根目录。
–enable-embed[=type]
experimental: enable building of embedded sapi library type is either ’shared’ or ’static’. [type=shared]
实验性:建立内嵌的sapi库。参数为shared、static。
–with-isapi[=dir]
build php as an isapi module for use with zeus
为zeus web服务器建立isapi模块。
–with-milter[=dir]
build php as milter application
编译php为milter应用程序
–with-nsapi=dir
build php as nsapi module for netscape/iplanet/sun webserver
为netscape/iplanet/sun web服务器编译php为nsapi模块。
–with-phttpd=dir
build php as phttpd module
编译php为phttpd模块
–with-pi3web[=dir]
build php as pi3web module
编译php为pi3web模块
–with-roxen=dir
build php as a pike module. dir is the base roxen directory, normally /usr/local/roxen/server
编译php为pike模块。参数为roxen软件的路径。
–enable-roxen-zts
roxen: build the roxen module using zend thread safety
编译roxen的模块,使用zend线程安全模式。
–with-thttpd=srcdir
build php as thttpd module
编译php为thttpd模块
–with-tux=moduledir
build php as a tux module (linux only)
编译php为tux模块(仅适用于linux下)
–with-webjames=srcdir
build php as a webjames module (risc os only)
编译php为webjames模块(仅适用于risc系统)
–disable-cgi
disable building cgi version of php
编译禁用cgi的php版本
–enable-fastcgi
cgi: enable fastcgi support in the cgi binary
在cgi二进制中启用fastcgi。
–enable-force-cgi-redirect
cgi: enable security check for internal server redirects. use this if you run the php cgi with apache
启用内附服务重定向的安全检查。如果使用在apache下运行php的cgi则使用此项。
–enable-discard-path
cgi: when this is enabled the php cgi binary can safely be placed outside of the web tree and people will not be able to circumvent .htaccess security
当此项启用时php cgi二进制能够安全的代替外网树并且能够防止人们绕过.htaccess的安全。
–disable-path-info-check
cgi: if this is disabled, paths such as /info.php/test?a=b will fail to work
禁用url参数。如果此项启用,则如/info.php/test?a=b将不工作。
general settings(普通参数设置):–enable-gcov
enable gcov code coverage (requires ltp) – for developers only!!
请用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]
显示安装文件的布局。参数为php或gnu
–with-config-file-path=path
set the path in which to look for php.ini [prefix/lib]
php.ini文件位置
–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
使用php自带的sigchld处理器
–enable-magic-quotes
enable magic quotes by default.
默认激活magic quotes。可让程序在执行时自动加入反斜线的引入字符。
–enable-libgcc
enable explicitly linking against libgcc
启用libgcc的精确链接
–disable-short-tags
disable the short-form start tag by default
默认禁用短形式的= 0.9.6)
启用openssl支持
–with-kerberos[=dir]
openssl: include kerberos support
包含kerberos支持
–without-pcre-regex
do not include perl compatible regular expressions support.dir is the pcre install prefix [bundled]
禁用pcre(perl兼容正则表达式)支持。
–with-zlib[=dir]
include zlib support (requires zlib >= 1.0.9)
启用zlib支持
–with-zlib-dir=
define the location of zlib install directory
定义zlib安装所在的目录
–enable-bcmath
enable bc style precision math functions
启用bcmatch(公元前风格精度数学)
–with-bz2[=dir]
include bzip2 support
包含bzip2支持
–enable-calendar
enable support for calendar conversion
启用日历转换支持
–disable-ctype
disable ctype functions
禁用ctype功能
–with-curl[=dir]
include curl support
启用curl支持
–with-curlwrappers
use curl for url streams
使用curl作为网址流
–enable-dba
build dba with bundled modules. to build shared dba extension use –enable-dba=shared
构架捆绑模块的dba。要建立扩展的共享模块使用–enable-dba=shared参数。
–with-qdbm[=dir]
dba: qdbm support
启用qdbm支持
–with-gdbm[=dir]
dba: gdbm support
启用gdbm支持
–with-ndbm[=dir]
dba: ndbm support
启用ndbm支持
–with-db4[=dir]
dba: berkeley db4 support
启用berkeley db4支持
–with-db3[=dir]
dba: berkeley db3 support
启用berkeley db3支持
–with-db2[=dir]
dba: berkeley db2 support
启用berkeley db2支持
–with-db1[=dir]
dba: berkeley db1 support/emulation
启用berkeley db1支持/仿真
–with-dbm[=dir]
dba: dbm support
启用dbm支持
–without-cdb[=dir]
dba: cdb support (bundled)
启用cdb支持(捆绑方式)
–disable-inifile
dba: ini support (bundled)
启用ini支持(捆绑方式)
–disable-flatfile
dba: flatfile support (bundled)
启用qdbm支持(捆绑方式)
–enable-dbase
enable the bundled dbase library
启用捆绑的dbase库
–disable-dom
disable dom support
禁用dom支持
–with-libxml-dir[=dir]
dom: libxml2 install prefix
启用libxml2并指定其安装目录
–enable-exif
enable exif (metadata from images) support
启用exif支持(从图片中获取元数据)
–with-fbsql[=dir]
include frontbase support. dir is the frontbase base directory
包含frontbase支持
–with-fdftk[=dir]
include fdf support
包含fdf支持
–disable-filter
disable input filter support
禁用输入过滤支持
–with-pcre-dir
filter: pcre install prefix pcre
支持及其安装目录
–enable-ftp
enable ftp support
启用ftp支持
–with-openssl-dir[=dir]
ftp: openssl install prefix
指定openssl的安装目录
–with-gd[=dir]
include gd support. dir is the gd library base install directory [bundled]
启用gd支持并指定gd库的安装目录
–with-jpeg-dir[=dir]
gd: set the path to libjpeg install prefix
指定libjpeg的安装目录
–with-png-dir[=dir]
gd: set the path to libpng install prefix
指定libpng的安装目录
–with-zlib-dir[=dir]
gd: set the path to libz install prefix
指定libz的安装目录
–with-xpm-dir[=dir]
gd: set the path to libxpm install prefix
指定libxpm的安装目录
–with-ttf[=dir]
gd: include freetype 1.x support
指定freetype 1.x的安装目录
–with-freetype-dir[=dir]
gd: set the path to freetype 2 install prefix
指定freetype2的安装目录
–with-t1lib[=dir]
gd: include t1lib support. t1lib version >= 5.0.0 required
指定t1lib支持
–enable-gd-native-ttf
gd: enable truetype string function
启用turetype字符功能
–enable-gd-jis-conv
gd: enable jis-mapped japanese font support
启用jis-mapped日语字体支持
–with-gettext[=dir]
include gnu gettext support
包含gnu gettext支持
–with-gmp[=dir]
include gnu mp support
启用gnu mp支持
–disable-hash
disable hash support
禁用hash支持
–without-iconv[=dir]
exclude iconv support
禁用iconv支持
–with-imap[=dir]
include imap support. dir is the c-client install prefix
包含imap支持。指定c-client安装目录
–with-kerberos[=dir]
imap: include kerberos support. dir is the kerberos install prefix
启用kerberos支持并指定其目录
–with-imap-ssl[=dir]
imap: include ssl support. dir is the openssl install prefix
启用ssl支持并指定openssl目录
–with-interbase[=dir]
include interbase support. dir is the interbase base install directory [/usr/interbase]
启用interbase支持并指定其目录
–disable-json
disable javascript object serialization support
禁用javascript对象顺序话支持
–with-ldap[=dir]
include ldap support
包含ldap支持
–with-ldap-sasl[=dir]
ldap: include cyrus sasl support
包含cyrus sasl支持
–enable-mbstring
enable multibyte string support
启用多字节字符串的支持
–disable-mbregex
mbstring: disable multibyte regex support
禁用多字节正则表达式的支持
–disable-mbregex-backtrack
mbstring: disable multibyte regex backtrack check
禁用多字节正则表达式回溯检查
–with-libmbfl[=dir]
mbstring: use external libmbfl. dir is the libmbfl base install directory [bundled]
使用外部的libmbfl并制定其目录
–with-mcrypt[=dir]
include mcrypt support
包含mcrypt支持
–with-mhash[=dir]
include mhash support
包含mhash支持
–with-mime-magic[=file]
include mime_magic support (deprecated!!)
启用mime_magic支持(不推荐使用!)
–with-ming[=dir]
include ming support
包含ming支持
–with-msql[=dir]
include msql support. dir is the msql base install directory [/usr/local/hughes]
包含msql支持
–with-mssql[=dir]
include mssql-db support. dir is the freetds home directory [/usr/local/freetds]
包含mssql-db支持,并指定freetds软件目录
–with-mysql[=dir]
include mysql support. dir is the mysql base directory
包含mysql支持
–with-mysql-sock[=dir]
mysql: location of the mysql unix socket pointer. if unspecified, the default locations are searched
定位mysql的unix 套接字指针。如果未指定,则按默认位置搜索。
–with-zlib-dir[=dir]
mysql: set the path to libz install prefix
设置zlib的安装目录。
–with-mysqli[=file]
include mysqli support. file is the optional pathname to mysql_config [mysql_config]
包含mysqli支持。参数为mysql_config的位置。
–enable-embedded-mysqli
mysqli: enable embedded support
启用embedded支持。
–with-ncurses[=dir]
include ncurses support (cli/cgi only)
包含ncurses支持。
–with-oci8[=dir]
include oracle (oci8) support. dir defaults to $oracle_home. use –with-oci8=instantclient,/path/to/oic/lib for an oracle instant client installation
包含oracle支持。如果使用oracle客户端安装则使用–with-oci8=instantclient,/path/to/oic /lib
–with-adabas[=dir]
include adabas d support [/usr/local]
包含adabas d支持
–with-sapdb[=dir]
include sap db support [/usr/local]
包含sap db支持
–with-solid[=dir]
include solid support [/usr/local/solid]
包含solid支持
–with-ibm-db2[=dir]
include ibm db2 support [/home/db2inst1/sqllib]
包含ibm db2支持
–with-odbcrouter[=dir]
include odbcrouter.com support [/usr]
包含odbcrouter支持。
–with-empress[=dir]
include empress support [$empresspath] (empress version >= 8.60 required)
包含empress支持
–with-empress-bcs[=dir]
include empress local access support [$empresspath] (empress version >= 8.60 required)
包含empress本地访问支持。
–with-birdstep[=dir]
include birdstep support [/usr/local/birdstep]
包含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”
包括用户自定义的odbc的支持。目录是odbc安装的主目录。确定定义了custom_odbc_libs并且在include目录下有 odbc.h的头文件你要在qnx上为sybase sql anywhere定义如下:运行此之前,配置脚本
cppflags=”-dodbc_qnx -dsqlany_bug”
ldflags=-lunix
custom_odbc_libs=”-ldblib -lodbc”
–with-iodbc[=dir]
include iodbc support [/usr/local]
包含iodbc支持
–with-esoob[=dir]
include easysoft oob support [/usr/local/easysoft/oob/client]
包含easysoft oob支持
–with-unixodbc[=dir]
include unixodbc support [/usr/local]
包含unixodbc支持
–with-dbmaker[=dir]
include dbmaker support
包含dbmaker支持
–enable-pcntl
enable pcntl support (cli/cgi only)
启用pcntl支持。
–disable-pdo
disable php data objects support
禁用php数据对象支持。
–with-pdo-dblib[=dir]
pdo: dblib-db support. dir is the freetds home directory
启用dblib-db支持。目录为freetds主目录。
–with-pdo-firebird[=dir]
pdo: firebird support. dir is the firebird base install directory [/opt/firebird]
启用firebird支持。
–with-pdo-mysql[=dir]
pdo: mysql support. dir is the mysql base directory
启用pdo:mysql支持。
–with-zlib-dir[=dir]
pdo_mysql: set the path to libz install prefix
设置pdo:mysql的zlib支持
–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 linux with 10.2.0.3 rpms (for example) use: –with-pdo-oci=instantclient,/usr,10.2.0.3
设置pdo:oracle oci支持。为oracle安装客户端sdk使用–with-pdo-oci=instantclient,prefix,version参数
–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, unixodbc, generic if ‘,dir’ part is omitted, default for the flavour you have selected will 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 build as shared the extension filename is always pdo_odbc.so
启用“flavour”odbc支持。在dir目录的include和lib目录下查找。“flavour”参数值可以是ibm-db2, unixodbc, generic。如果dir省略,则使用默认值。如果你试图通过generic使用一个如若不支持的驱动程序。为generic odbc提供的语法格式如下:–with-pdo-odbc=generic,dir,libname,ldflags,cflags。作为共享的编译 后的扩展文件的名一般为pdo_odbc.so
–with-pdo-pgsql[=dir]
pdo: postgresql support. dir is the postgresql baseinstall directory or the path to pg_config
启用pdo:postgresql支持。
–without-pdo-sqlite[=dir]
pdo: sqlite 3 support. dir is the sqlite baseinstall directory [bundled]
启用sqlite 3支持。
–with-pgsql[=dir]
include postgresql support. dir is the postgresqlbase install directory or the path to pg_config
启用postgresql支持并指定其软件根目录或者pg_config的路径
–disable-posix
disable posix-like functions
禁用posix-like支持
–with-pspell[=dir]
include pspell support. aspell version 0.50.0 or higher required
包含pspell支持gnu
–with-libedit[=dir]
include libedit readline replacement (cli/cgi only)
包含libedit readline更换(仅用于cli和cgi)
–with-readline[=dir]
include readline support
(cli/cgi only)包含readline支持(仅用于cli和cgi)
–with-recode[=dir]
include recode support
包含recode支持
–disable-reflection
disable reflection support
禁用reflection支持。
–disable-session
disable session support
禁用session支持
–with-mm[=dir]
session: include mm support for session storage
为session存储启用mm支持。
–enable-shmop
enable shmop support
启用shmop支持
–disable-simplexml
disable simplexml support
禁用simplexml支持
–with-libxml-dir=dir
simplexml: libxml2 install prefix
启用simplexml:libxml2支持。
–with-snmp[=dir]
include snmp support
包含snmp支持。
–with-openssl-dir[=dir]
snmp: openssl install prefix
包含snmp:openssl支持
–enable-ucd-snmp-hack
snmp: enable ucd snmp hack snmp hack
包含ucd
–enable-soap
enable soap support
启用soap支持
–with-libxml-dir=dir
soap: libxml2 install prefix
启用soap:libxml2支持。
–enable-sockets
enable sockets support
启用sockets支持
–disable-spl
disable standard php library
禁用标准php库
–without-sqlite=dir
do not include sqlite support. dir is the sqlite base install directory [bundled]
不包含sqlite支持。
–enable-sqlite-utf8
sqlite: enable utf-8 support for sqlite
启用sqlite的utf-8支持。
–with-regex=type
regex library type: system, apache, php. [type=php] warning: do not use unless you know what you are doing!
正则表达式库类型。
–with-sybase[=dir]
include sybase-db support. dir is the sybase home directory [/home/sybase]
包含sybase-db支持。
–with-sybase-ct[=dir]
include sybase-ct support. dir is the sybase home directory [/home/sybase]
包含sybase-ct支持。
–enable-sysvmsg
enable sysvmsg support
启用sysvmsg支持。
–enable-sysvsem
enable system v semaphore support
启用系统v信号支持
–enable-sysvshm
enable the system v shared memory support
启用系统v共享内存支持。
–with-tidy[=dir]
include tidy support
包含tidy支持。
–disable-tokenizer
disable tokenizer support
禁用tokenizer支持
–enable-wddx
enable wddx support
启用wddx支持
–with-libxml-dir=dir
wddx: libxml2 install prefix
包含wddx:libxml2支持。
–with-libexpat-dir=dir
wddx: libexpat dir for xmlrpc-epi (deprecated)
为xmlrpc-epi启用libexpat(不推荐)
–disable-xml
disable xml support
禁用xml支持。
–with-libxml-dir=dir
xml: libxml2 install prefix
启用libxml2支持
–with-libexpat-dir=dir
xml: libexpat install prefix (deprecated)
启用libexpat支持(不推荐)
–disable-xmlreader
disable xmlreader support
禁用xmlreader支持。
–with-libxml-dir=dir
xmlreader: libxml2 install prefix
启用xmlreader的libxml2支持。
–with-xmlrpc[=dir]
include xmlrpc-epi support
包含xmlrpc-epi支持
–with-libxml-dir=dir
xmlrpc-epi: libxml2 install prefix
启用xmlrpc-epi:libxml2支持
–with-libexpat-dir=dir
xmlrpc-epi: libexpat dir for xmlrpc-epi (deprecated)
启用xmlrpc-epi:libexpat支持(不推荐)
–with-iconv-dir=dir
xmlrpc-epi: iconv dir for xmlrpc-epi
启用xmlrpc-epi:iconv支持
–disable-xmlwriter
disable xmlwriter support
禁用xmlwriter支持
–with-libxml-dir=dir
xmlwriter: libxml2 install prefix
启用xmlreader:libxml2支持。
–with-xsl[=dir]
include xsl support. dir is the libxslt base install directory (libxslt >= 1.1.0 required)
启用xsl支持
–enable-zip
include zip read/write support
包含zip读写支持
–with-zlib-dir[=dir]
zip: set the path to libz install prefix
启用zip:zlib支持
pear(pear相关选项):–with-pear=dir
install pear in dir [prefix/lib/php]
在目录中安装pear
–without-pear
do not install pear
禁用pear
zend(zend相关选项):–with-zend-vm=type
set virtual machine dispatch method. type is one of call, switch or goto [type=call]
设置虚拟机调度方法,参数为call, switch或goto
–enable-maintainer-zts
enable thread safety – for code maintainers only!!
启用线程安全模式(仅用于代码维护人员使用)
–disable-inline-optimization
if building zend_execute.lo fails, try this switch
如果编译zend_execute.lo失败,则使用此参数
–enable-zend-multibyte
compile with zend multibyte support
编译zend多字节支持。
tsrm(thread safe resource manager线程安全资源管理器相关配置):–with-tsrm-pth[=pth-config]
use gnu pth
使用gnu方式管理线程
–with-tsrm-st
use sgi’s state threads
使用sgi静态线程方式管理线程
–with-tsrm-pthreads
use posix threads (default)
使用posix线程方式管理线程
libtool(libtool相关配置):–enable-shared[=pkgs]
build shared libraries [default=yes]
编译共享模块
–enable-static[=pkgs]
build static libraries [default=yes]
编译静态模块
–enable-fast-install[=pkgs]
optimize for fast installation [default=yes]
启用快速安装优化方式
–with-gnu-ld
assume the c compiler uses gnu ld [default=no]
假设c编译器使用gnu ld
–disable-libtool-lock
avoid locking (might break parallel builds)
避免锁死(可能破坏并联的编译)
–with-pic
try to use only pic/non-pic objects [default=use both]
尝试仅使用pic或non-pic对象
–with-tags[=tags]
include additional configurations [automatic]
包括额外的配置
编译参数./configure –prefix=/usr/local/php/ –with-config-file-path=/usr/local/php/etc/php.ini –with-apxs2=/usr/local/apache/bin/apxs –with-mm=/usr/local/mm/ –with-pear –with-openssl –with-zlib –with-pcre-dir –with-mcrypt –with-mhash –with-mysql –with-pdo-mysql –with-libxml-dir –enable-fastcgi  –enable-discard-path –enable-magic-quotes –enable-static –enable-mbstring  –enable-shmop –enable-wddx –enable-sockets
make
make install
cp php.ini-production /usr/local/php/etc/php.ini
服务配置
1、php.ini文件说明
[php]
;;;;;;;;;;;;;;;;;;;
; about php.ini   ;
;;;;;;;;;;;;;;;;;;;
;php 基本说明
;php初始化文件,用于配置php运行参数
;php尝试查找和加载此配置文件的顺序:1、sapi指定位置2、phprc环境 变量3、windows注册表的指定位置4、当前工作目录(cli除外)5、web服务器目录(sapi模块)或者php目录位置6、编译时 –with-config-file-path的指定目录。
;php注释:空白,分号开头的,以及段落的[xxx]都可以被忽略,虽然将来可能 用的。
;php作用域:指令[path=/www/mysite]仅仅适用于目录/www/mysite中的php文件; [host=www.example.com]仅仅对www.example.com中 的php文件起作用。目前,[path=]和[host=]仅仅工作在cgi和fastcgi中。特别的字段不能对用户单独的设置覆盖,即设置以用户单独 设置的为准。
;php指令说明:语法:指令=值;指令区分大小写;指令定义的变量用于配置php或php扩展;无名称验证,如果php找不到指定 的指令或指令配置错误,则启用默认值;指令的值可以是:字符串,数字,php常量,ini常量 (on,off,true,false,yes,no,none),带引号的字符串,先前设置的变量或者指令引用;表达式限于操作符或者括号| (or)^(xor)&(and)~(not)!(not);布尔值:真可以是1,on,ture,yes假值可以为 0,off,false,no;空值:可以是none或者空白(即什么都不写);如果你在值中使用常量,并且这些常量属于动态加载的模块(php扩展或 zend扩展),你只能在扩展中加载了后再使用这个变量(即变量要先定义后使用)
;
; php’s initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of php’s behavior.
; php attempts to find and load this configuration from a number of locations.
; the following is a summary of its search order:
; 1. sapi module specific location.
; 2. the phprc environment variable. (as of php 5.2.0)
; 3. a number of predefined registry keys on windows (as of php 5.2.0)
; 4. current working directory (except cli)
; 5. the web server’s directory (for sapi modules), or directory of php
; (otherwise in windows)
; 6. the directory from the –with-config-file-path compile time option, or the
; windows directory (c:\windows or c:\winnt)
; see the php docs for more specific information.
; http://php.net/configuration.file
; the syntax of the file is extremely simple.  whitespace and lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; div headers (e.g. [foo]) are also silently ignored, even though
; they might mean something in the future.
; directives following the div heading [path=/www/mysite] only
; apply to php files in the /www/mysite directory.  directives
; following the div heading [host=www.example.com] only apply to
; php files served from www.example.com.  directives set in these
; special divs cannot be overridden by user-defined ini files or
; at runtime. currently, [path=] and [host=] divs only work under
; cgi/fastcgi.
; http://php.net/ini.divs
; directives are specified using the following syntax:
; directive = value
; directive names are *case sensitive* – foo=bar is different from foo=bar.
; directives are variables used to configure php or php extensions.
; there is no name validation.  if php can’t find an expected
; directive because it is not set or is mistyped, a default value will be used.
; the value can be a string, a number, a php constant (e.g. e_all or m_pi), one
; of the ini constants (on, off, true, false, yes, no and none) or an expression
; (e.g. e_all & ~e_notice), a quoted string (“bar”), or a reference to a
; previously set variable or directive (e.g. ${foo})
; expressions in the ini file are limited to bitwise operators and parentheses:
; |  bitwise or
; ^  bitwise xor
; &  bitwise and
; ~  bitwise not
; !  boolean not
; boolean flags can be turned on using the values 1, on, true or yes.
; they can be turned off using the values 0, off, false or no.
; an empty string can be denoted by simply not writing anything after the equal
; sign, or by using the none keyword:
;  foo =         ; sets foo to an empty string
;  foo = none    ; sets foo to an empty string
;  foo = “none”  ; sets foo to the string ‘none’
; if you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a php extension or a zend extension),
; you may only use these constants *after* the line tha
其它类似信息

推荐信息