PHP Compilation Installation Parameters

Source: Internet
Author: User

PHP Compilation Installation Parameters

--prefix=/usr/local/php #指定php安装目录

--with-apxs2=/usr/local/apache/bin/apxs
#整合apache, the APXS function is to use the LoadModule directive in MOD_SO to load the specified module to Apache, which requires Apache to open the so module

--with-config-file-path=/usr/local/php/etc #指定php. INI location

--with-mysql=/usr/local/mysql #mysql安装目录, support for MySQL

--with-mysqli=/usr/local/mysql/bin/mysql_config
MYSQLI extension technology can not only invoke MySQL's stored procedures, handle MySQL transactions, but also make access to the database work more stable.

Detailed compilation parameters
--enable-safe-mode Turn on Safe mode
--ENABLE-FTP Support for Open FTP
--enable-zip opening support for zip
--WITH-BZ2 opening support for bz2 files
--with-jpeg-dir opening support for JPEG images
--with-png-dir opening support for PNG images
--with-freetype-dir opening support for the FreeType font library
--without-iconv Close Iconv function, conversion between various character sets
--with-libxml-dir opening support for LIBXML2 libraries
--WITH-XMLRPC Open the C language of XML-RPC
--with-zlib-dir opening support for zlib libraries
--WITH-GD opening the GD library support
--enable-gd-native-ttf supports TrueType string function libraries
--with-curl opening the Curl browsing tool support
--with-curlwrappers using the Curl tool to open the URL stream
--with-ttf Open freetype1.* Support, can not add
--with-xsl opens XSLT file support, expands the LibXML2 library, requires LIBXSLT software
--with-gettext opens the GNU gettext Support, the code library uses the
--with-pear Open the support for Pear command, PHP extension with
--enable-calendar opening the Calendar extension feature
--enable-mbstring Multi-byte, string support
--enable-bcmath Open picture resizing, use this module for Zabbix monitoring
--enable-sockets Open Sockets support
Meta-data support for--ENABLE-EXIF images
--enable-magic-quotes Support for Magic quotes
--disable-rpath to close additional runtime files
--disable-debug turning off debug mode
--with-mime-magic=/usr/share/file/magic.mime Magic Head File location

Parameters for CGI mode installation
--enable-fpm
After the PHP-FPM patch has this parameter, CGI installation of the startup program
--enable-fastcgi #支持fastcgi方式启动PHP

--enable-force-cgi-redirect #重定向方式启动PHP

--with-ncurses
Dynamic Library of #支持ncurses screen drawing and interactive function of graphics based on text terminal

--enable-pcntl #freeTDS需要用到的, maybe it's a link to MSSQL.
Extension of the Mhash and MCrypt algorithms
--with-mcrypt algorithm
--with-mhash algorithm
The above function libraries need to be installed

--WITH-GMP should be supportive of a specification

--enable-inline-optimization Optimizing Threads

--with-openssl OpenSSL support for encrypted transmissions

--enable-dbase establishing a DBA as a shared module

--with-pcre-dir=/usr/local/bin/pcre-config Perl's regular library installation location

--disable-dmalloc

--WITH-GDBM DBA's GDBM support

--enable-sigchild

--enable-sysvsem

--enable-sysvshm

--enable-zend-multibyte Multi-byte support for Zend

--enable-mbregex

--enable-wddx

--enable-shmop

--enable-soap


This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1906421

PHP Compilation Installation Parameters

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.