Linux does not install MySQL client or server server when installing PHP

Source: Internet
Author: User
Tags fpm mcrypt mysql client nginx server

php5.3 do not install MySQL client above, you can make PHP support MySQL
Interception official website "for php-5.3.0 or later versions, MYSQLI uses MySQL Native driver as the default driver. This driver has some advantages over libmysql,--with-mysql=mysqlnd need to add--with-mysql=mysqlnd this mapping at./configure.

./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache2/bin/apxs--with-config-file-path=/usr/local/ Lib--enable-track-vars--with-xml--with-mysql--enable-fpm
--ENABLE-FASTCGI is enabled for PHP fastcgi support (PHP if you want to support Nginx server above)
--ENABLE-FPM is to activate FPM support for fastcgi mode
--WITH-MYSQL=MYSQLND Linux does not install MySQL client or server while still want to use MySQL connection (must php5.3 above version)
--WITH-APXS2=/USR/LOCAL/APACHE2/BIN/APXS support APACHE,/USR/LOCAL/APACHE2/BIN/APXS for Apache installation path
--with-config-file-path=/usr/local/lib the path to the PHP configuration file

--with-zlib opening support for zlib libraries

--with-config-file-path=/usr/local/php5.3.28/etc

--with-pdo-mysql

--with-libdir=lib64

--WITH-GD opening the GD library support

--with-jpeg-dir=/usr/lib opening support for JPEG images

--with-png-dir=/usr/lib opening support for PNG images

--enable-mbstring Multi-byte, string support

--enable-gd-native-ttf supports TrueType string function libraries

--enable-xml Opening XML support

--with-freetype-dir opening support for the FreeType font library

--with-curl opening the Curl browsing tool support

--ENABLE-FTP Support for FTP extensions

--enable-zip Support for ZIP extensions

--with-mcrypt supports MCrypt extensions

--enable-mbstring supports mbstring extensions

--enable-json support for JSON extensions

--ENABLE-FPM hit the php-fpm patch only after this parameter, CGI installation of the startup program






Linux does not install MySQL client or server server when installing PHP

Related Article

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.