Common Php compilation configuration parameters

Source: Internet
Author: User
Common Php compilation configuration parameters There are many Php configuration parameters. here we only provide some common parameters.

First Download php source package http://www.php.net

Of course, you need to install many dependency packages before installation. Otherwise, the installation process may fail. you may also need to compile and install some source code packages separately, depending on the actual situation. This section only describes common php parameters.

You can use./configure -- help | less to view its related parameters. there are indeed too many parameters.

Php compilation and installation

./Configure \

-- Prefix =/usr/local/php5 \ [specify the php Installation Path]

-- With-gd \ [enable gd library support]

-- With-zlib \ [enable zlib library]

-- With-mysql =/usr/local/mysql/\ [specify the installation location of mysql, which is applicable to the integration environment. if data is separated, you can enable mysql without specifying the path]

-- With-config-file-path =/usr/local/php5 [specify the location of the php. ini file]

-- Enable-mbstring \ [enable multibyte and string support]

-- Enable-fpm \ [enable ftp module, cgi installation]

-- With-mysql-sock =/tmp/mysqld. sock \ [specify the location of the mysql sock file]

-- 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 \ [enable image size adjustment, which is used for zabbix monitoring]

-- 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 \ [use shared memory plug-in with shmop]

-- Enable-mbregex \ [enable regular expression]

-- Enable-ftp \ [enable ftp support]

-- Enable-gd-native-ttf \ [support TrueType string function library]

-- With-openssl \ [enable openssl support, which has a good effect on secure transmission]

-- Enable-pcntl \ [required for freeTDS]

-- Enable-sockets \ [enable the sockets support module]

-- With-xmlrpc \ [C language support for enabling xml-rpc]

-- Enable-soap \ [Simple Object Access Protocol for soap is a protocol specification for data exchange. it is an Object Access Protocol, which is roughly divided into four parts, encapsulation-encoding rules-rpc representation-binding]

-- Enable-session \ [enable the session option, which is widely used]

-- With-gettext \ [enable GNU's gettext support, which is used by the encoding library]

-- With-jpeg-dir

-- With-freetype-dir \ [enable freetype support. you can google it to see the specific meaning of this module]

-- Enable-zip \ [enable zip compression]

-- Enable-sysvmsg \ [enable message queue module]

-- Enable-sysvshm \ [enable System v signal support]

-- With-pdo-mysql =/usr/local/mysql/[enable the pdo mysql extension, which has requirements for php versions, such as php5 and later, the pdo extension itself cannot perform any database operations. you must use a pdo driver to access the database]

Then

Make & make install

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

Php also has many modules, such as memcache, redis, zend, and so on. Relatively speaking, PHP 5 and later versions enable flexible installation methods. some modules do not matter even if you have not installed them. you can install them again when necessary, you can install the extension module without re-compiling.

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

After the installation is complete, you can use the info function of php to view all features installed in php. You can also view

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.