For PHP compilation parameters in Linux/Uinx, see the table.

Source: Internet
Author: User
Tags ibm db2 mcrypt pear

In the Linux environment, PHP compiles Parameter Parsing. If you need to resolve this issue, please transfer it. The parameters are described in great detail. Also, I posted an article on the website 5iphp for the first time. Please pay more attention to me? ^-^ A Kuan

./Configure

-Prefix =/usr/local/PHPPHPInstallation Directory

-With-apxs2 =/usr/local/Apache/bin/apxs

-With-config-file-Path =/usr/local/PHP/etc specify the php. ini location
-With-mysql =/usr/local/MySQL installation directory, which supports MySQL
-With-mysqli =/usr/local/MySQL/bin/mysql_config mysqli file directory, optimized support
-Enable-safe-mode: Enable safe mode.
-Enable-FTP support for enabling FTP
-Enable-zip: supports zip.
-With-bz2 opens support for bz2 files
-With-JPEG-Dir: Support for JPEG images
-With-PNG-Dir open support for PNG Images
-With-FreeType-Dir: Support for FreeType Library
-Without-iconv: Disable the iconv function to convert character sets.
-Support opening libxml2 library with-libxml-Dir
-With-XMLRPC open the C language of XML-RPC
-Support opening zlib library with-zlib-Dir
-With-Gd supports opening the GD library
-Enable-Gd-native-TTF supports the TrueType string function library
-With-curl support for enabling the curl browser Tool
-With-curlwrappers: Use the curl tool to open a URL stream
-With-TTF: Enable freetype1. *. You can skip this step.
-With-XSL: supports opening XSLT files and extends the libxml2 library. libxslt software is required.
-With-gettext: Open the GNU gettext support, which is used by the encoding library.
-With-pear support for opening the pear command, which is used for PHP Extension
-Enable-calendar: Enable the calendar Extension function
-Enable-mbstring multi-byte, string supported
-Enable-bcmath: Enable image size adjustment. This module is used for zabbix monitoring.
-Enable-sockets support enabling sockets
-Enable-EXIF metadata support for images
-Enable-magic-quotes magic reference support
-Disable-rpath: Disable additional runtime files
-Disable-Debug: Disable the debugging mode.
-With-mime-magic =/usr/share/file/magic. Mime magic header file location

CGI installation.Parameters
-This parameter is available only after the Enable-FPM is installed with the PHP-FPM patch. the startup program installed in CGI Mode
-Enable-FastCGI supports FastCGI to start PHP
-Enable-force-CGI-redirect is the same as above, which is not explained in the help.
-With-ncurses: a dynamic library that supports ncurses screen rendering and graphic interaction based on text Terminals
-Enable-pcntl freetds is required. It may be used only when MSSQL is linked.

Extensions of mhash and mcrypt Algorithms
-With-mcrypt Algorithm
-With-mhash Algorithm

-With-GMP
-Enable-inline-Optimization
-With-OpenSSL support, used for encrypted transmission
-Enable-DBASE
-With-PCRE-Dir =/usr/local/bin/PCRE-config
-Disable-dmalloc
-With-gdbm DBA gdbm support
-Enable-sigchild
-Enable-sysvsem
-Enable-sysvshm
-Enable-Zend-multibyte supports multiple Zend bytes.
-Enable-mbregex
-Enable-wddx
-Enable-shmop
-Enable-soap

Complete list of PHP configuration options
Database options
-With-dbplus
Including dbplus support.
-With-adabas [= dir]
Including adabas D support. DIR is the basic installation directory of adabas. The default value is/usr/local.
-With-sapdb [= dir]
Including sap db support. DIR is the basic installation directory of sap db. The default value is/usr/local.
-With-solid [= dir]
Including support for solid. DIR is the basic installation directory of solid. The default value is/usr/local/solid.
-With-ibm-db2 [= dir]
Including support for IBM DB2. DIR is the basic installation directory of DB2. The default value is/home/db2inst1/sqllib.
-With-Empress [= dir]
Including Empress support. DIR is the basic installation directory of Empress. The default value is $ empresspath. Since PhP4, this option only supports Empress 8.60 and later versions.
-With-Empress-BCS [= dir]
Including support for Empress local access. DIR is the basic installation directory of Empress. The default value is $ empresspath. Since PhP4, this option only supports Empress 8.60 and later versions.
-With-birdstep [= dir]
Including support for birdstep. DIR is the basic installation directory of birdstep. The default value is/usr/local/birdstep.
-With-custom-ODBC [= dir]
Supports custom ODBC. DIR is the basic installation directory of ODBC. The default value is/usr/local. Are you sure you have defined
Custom_odbc_libs and there is an ODBC. h In the include directory. For example, for Sybase SQL under QNX
Anywhere 5.5.00: before running the configure script, define the following environment variables: cppflags = "-dodbc_qnx
-Dsqlany_bug "ldflags =-Lunix custom_odbc_libs ="-ldblib-lodbc ".
-With-iodbc [= dir]
Including support for iodbc. DIR is the basic installation directory of iodbc, Which is/usr/local by default.
-With-esoob [= dir]
Including easysoft OOB support. DIR is the basic installation directory of OOB. The default value is/usr/local/easysoft/OOB/client.
-With-unixodbc [= dir]
Including unixodbc support. DIR is the basic installation directory of unixodbc. The default value is/usr/local.
-With-openlink [= dir]
Including openlink ODBC support. DIR is the basic installation directory of openlink. The default value is/usr/local. This is the same as iodbc.
-With-dbmaker [= dir]
Including dbmaker support. DIR is the basic installation directory of dbmaker. By default, it is the directory installed by the latest dbmaker version (for example,/home/dbmaker/3.6 ).
-Disable-unified-ODBC
Cancel the support for uniied ODBC. Only applicable to activating iodbc, adabas, solid, velocis, or user-defined ODBC interface. It can only be used in PHP 3!
Image options
-Without-Gd
Disable GD support. Only for PHP 3!
-With-imagick
The imagick extension is moved to PECL in pear, which can be found here. The installation instructions in PHP 4 can be found at the pear site.
Only-with-imagick is supported in PHP 3, unless you follow the instructions of the pear site.
-With-ming [= dir]
Including Ming support.
Miscellaneous options
-Enable-force-CGI-Redirect
Activate the security check for server internal redirection. This option should be used if PHP is used as CGI in Apache.
-Enable-discard-Path
With this option, the CGI executable program of PHP can be securely placed outside the web directory tree, and other people cannot bypass the. htaccess security settings.
-With-FastCGI
Compile PHP into a FastCGI application.
-Enable-Debug
Add debugging symbols during compilation.
-With-layout = Type
Set the file layout after installation. Type can be PHP (default value) or GNU.
-With-pear = dir
Install pear in the Dir directory (prefix/lib/PHP by default ).
-Without-Pear
Do not install pear.
-Enable-sigchild
Activate the sigchld handle of PHP.
-Disable-rpath
It is forbidden to pass an additional Runtime library search path.
-Enable-libgcc
Activate the explicit libgcc connection.
-Enable-PHP-Streams
Contains the PHP stream of the test. Do not use unless it is the test source code!
-With-zlib-Dir = <dir>;
Define the zlib installation path.
-With-Aspell [= dir]
Including Aspell support.
-With-ccvs [= dir]
Including ccvs support.
-With-cybercash [= dir]
Including cybercash support. DIR is the installation directory of cybercash mck.
-With-ICAP [= dir]
Including ICAP support.
-With-ircg-config
Path of the ircg-config script.
-With-ircg
Including ircg support.
-Enable-mailparse
Including mailparse support.
-With-Muscat [= dir]
Including Muscat support.
-With-satellite [= dir]
Activate the support by Satellite (experimental. DIR is the main directory of orbit.
-Enable-trans-Sid
Activate transparent session ID propagation.
-With-RegEx [= type]
Use the system RegEx Library (not supported ).
-With-Vpopmail [= dir]
Including Vpopmail support.
-With-tsrm-pthreads
Use POSIX Threads (default ).
-Enable-shared [= pkgs]
Compile the Shared Library [default = Yes].
-Enable-static [= pkgs]
Compile the static library [default = Yes].
-Enable-fast-install [= pkgs]
[Default = Yes] is optimized for quick installation.
-With-GNU-LD
Assume that the C compiler uses gnu ld [default = No].
-Disable-libtool-Lock
Avoid locking (may damage parallel compilation ).
-With-pic
Try to use only the PIC/non-pic object [default = use both].
-Enable-memory-Limit
Supports memory restrictions during compilation.
-Disable-URL-fopen-wrapper
Do not use the fopen wrapper of the URL to access files through HTTP or FTP.
-Enable-Versioning
Only the required symbols are output. For more information, see the install file.
-With-imsp [= dir]
Including imsp support (DIR is the include directory of imsp and libimsp. A directory ). Only for PHP 3!
-With-mck [= dir]
Including support for cybercash mck. DIR is the cybercash mck compilation directory, the default is/usr/src/mck-3.2.0.3-linux. For help, see extra/cyberlib. Only for PHP 3!
-With-mod-Dav = dir
Contains Dav support through mod_dav of Apache. DIR is the installation directory of mod_dav (for Apache module version only !) Only for PHP 3!
-Enable-Debugger
Compile the remote debugging function. Only for PHP 3!
-Enable-Versioning
Take advantage of version control and scope of application provided by Solaris 2.x and Linux. Only for PHP 3!
PHP options
-Enable-maintainer-Mode
Activate and put the compilation rules and unused (and some obfuscated) Dependency files into the temporary installation.
-With-config-file-Path = path
Set PHP. ini Path. The default value is Prefix/lib.
-Enable-safe-Mode
The security mode is activated by default.
-With-Exec-dir [= dir]
Only programs in this directory can be executed in security mode. Default Value: /Usr/local/PHP/bin.
-Enable-magic-quotes
Magic quotes is activated by default.
-Disable-short-tags
The abbreviated PHP start flag is disabled by default. <?.
Server options
-With-aolserver = dir
Specifies the path of the installed aolserver.
-With-apxs [= file]
Compile and share the Apache module. File is the path of the optional Apache apxs tool. The default value is apxs. Make sure that the specified apxs version is the installed file instead of in the Apache source program.
-With-Apache [= dir]
Compile Apache Module.Dir Yes Apache The highest level directory of the source program. Default Value: /Usr/local/Apache.
With-mod_charset
Activate the transfer table in mod_charset (in Apache ).
-With-apxs2 [= file]
Compile shared In Apache 2.0 Module.File Optional Apache Of Apxs Tool Path. The default value is Apxs.
-With-fhttpd [= dir]
Compile the fhttpd module. DIR is the source code path of fhttpd. The default value is/usr/local/src/fhttpd.
-With-ISAPI = dir
Compile PHP into an ISAPI module for Zeus.
-With-nsapi = dir
Specify the path of the installed Netscape Server.
-With-phttpd = dir
No information.
-With-pi3web = dir
Compile PHP into a module for Pi3Web.
-With-roxen = dir
Compile PHP into a pike module. DIR is the root directory of roxen, usually/usr/local/roxen/server.
-Enable-roxen-ZTS
Compile the roxen module and use Zend thread safety.
-With-servlet [= dir]
Includes servlet support. DIR is the basic installation directory of jsdk. This SAPI requires Java extensions to be compiled into a shared DL.
-With-thttpd = srcdir
Compile PHP into the thttpd module.
-With-tux = moduledir
Compile PHP into a tux module (for Linux only ).

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.