PHP Common compilation configuration parameter description

Source: Internet
Author: User
PHP has a lot of configuration parameters, here only to do some common parameters of the description.

First download PHP source package http://www.php.net

Of course, before the installation, you need to install a lot of dependent packages, or the installation process will be wrong, you may also need to compile and install some source code packages, depending on the actual situation. Only the common parameters of PHP are described here, others do not explain.

There are indeed too many/configure--help |less to see their relevant parameters.

PHP Compilation Installation

./configure \

--PREFIX=/USR/LOCAL/PHP5 \ "Specify the installation path for PHP"

--WITH-GD \ "Enable support for GD libraries"

--with-zlib \ "Enable Zlib library"

--with-mysql=/usr/local/mysql/\ "Specifies the installation location of MySQL for the integrated environment, and if the data is detached, no path is required and MySQL is enabled"

--WITH-CONFIG-FILE-PATH=/USR/LOCAL/PHP5 "Specify the location of the php.ini file"

--enable-mbstring \ "Enable multibyte, string support"

--ENABLE-FPM \ "Enable FTP module, CGI mode installation"

--with-mysql-sock=/tmp/mysqld.sock \ "Specify MySQL sock file location"

--with-mysqli=/usr/local/mysql/bin/mysql_config "mysqli file directory"

--WITH-ICONV \ "Enable conversion between various character sets of the Iconv function"

--enable-xml \ "Enable XML support"

--enable-bcmath \ "Open the picture size adjustment, this looks like Zabbix monitoring time will use"

--ENABLE-SHMOP \ "Enable SHMOP support, this module is an easy-to-use feature set that allows PHP to read, write, create and delete Unix shared memory segments"

--ENABLE-SYSVSEM \ "Shared memory plug-in and Shmop use"

--enable-mbregex \ "Enable regular"

--ENABLE-FTP \ "Enable FTP support"

--ENABLE-GD-NATIVE-TTF \ "Supporting TrueType string function libraries"

--WITH-OPENSSL \ "Enable OpenSSL support, which is very useful for secure transport"

--ENABLE-PCNTL \ "FreeTDS needs to be used"

--enable-sockets \ "Enable sockets support module"

--WITH-XMLRPC \ "Enable XML-RPC C language Support"

--ENABLE-SOAP \ "Soap Simple Object Access Protocol is a protocol specification for exchanging data, is an object access protocol, broadly divided into four parts, encapsulation-encoding rule-rpc-binding"

--enable-session \ "Enabling session session options, using very extensive"

--with-gettext \ "Open GNU GetText Support, encoding library to"

--with-jpeg-dir

--WITH-FREETYPE-DIR \ "Enable support for FreeType, Google can look at the specific meaning of this module"

--enable-zip \ "Enable zip compression"

--ENABLE-SYSVMSG \ "Enable Message Queuing module"

--ENABLE-SYSVSHM \ "Enable System V signal support"

--with-pdo-mysql=/usr/local/mysql/"Enable the PDO MySQL extension, the PHP version is required, php5 above, the PDO extension itself is not able to perform any database operations, you must use a PDO driver to access the database"

And then

Make && make install

――――――――――――――――――――――――――――――――――――――――――――

PHP also has many modules, such as Memcache,redis,zend, and so on. Relatively speaking, php5 above version of the flexible installation, some modules, even if you do not have to install it is OK, and so on when necessary to install also can, basically no need to recompile to install the extension module.

――――――――――――――――――――――――――――――――――――――――――――

After the installation is complete, you can use the PHP info function to see all the features of the current PHP installation. You can also view it by command

Ok,,,over

  • 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.