LANMP schema installation support library and common compilation parameters

Source: Internet
Author: User
Tags mcrypt xsl

Nginx Compile installation parameters

./configure--prefix=/usr/local/nginx--group=nginx--user=nginx--with-http_stub_status_module--with-http_ssl_ Module




MySQL5.6 Compile the installation parameters:


Cmake-dcmake_install_prefix=/usr/local/mysql-dmysql_unix_addr=/usr/local/mysql/data/tmp/mysql.sock-ddefault_ Charset=utf8-ddefault_collation=utf8_general_ci-dwith_extra_charsets:string=utf8,gbk-dwith_myisam_storage_ engine=1-dwith_innobase_storage_engine=1-dwith_memory_storage_engine=1-dwith_readline=1-denabled_local_infile= 1-dmysql_datadir=/usr/local/mysql/data-dmysql_user=mysql-dmysql_tcp_port=3306


Installation of compilers and partially supported libraries

Yum install –y gcc gcc-c++ gcc-g77 autoconf automake zlib* fiex* libxml* ncurses-devel libmcrypt* libtool-ltdl-d evel* CMake





Installation of PHP support libraries:

Yum install-y zlib libxml libjpeg freetype libpng gd Curl libiconv zlib-devel libxml2-devel libjpeg-devel freetype-devel Libpng-devel Gd-devel Curl-devel



PHP-5.6 Compiling installation parameters: (for Apache)


./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache-2.2.31/bin/apxs--with-mysql=/usr/local/mysql- -with-xmlrpc--with-openssl--with-zlib--with-freetype-dir--with-zlib--with-gd--with-jpeg-dir--with-png-dir-- With-iconv=/usr/local/iconv--enable-short-tags--enable-sockets--enable-zend-multibyte--enable-soap-- Enable-mbstring--enable-static--enable-gd-native-ttf--enable-curl--enable-xsl--enable-ftp--with-libxml-dir


Modify the Apache configuration file to add support for PHP.

AddType application/x-httpd-php. php. Phtml. Inc php3

AddType Application/x-httpd-source. Phps



PHP-5.6 Compile and install parameters: (for Nginx)


Check the Support library

STEP1:

Yum install-y zlib libxml libjpeg freetype libpng gd Curl libiconv zlib-devel libxml2-devel libjpeg-devel freetype-devel Libpng-devel Gd-devel Curl-devel

STEP2:

Tar XF libiconv.tar.gz

./configure--prefix=/usr/local/libiconv

Make && make install

STEP3:

Tar XF libmcrypt.tar.gz

./configure

Make && make install




./configure--prefix=/usr/local/php--with-mysql=/usr/local/mysql--with-xmlrpc--with-openssl--with-zlib-- With-freetype-dir--with-zlib--with-gd--with-jpeg-dir--with-png-dir--with-iconv=/usr/local/iconv-- Enable-short-tags--enable-sockets--enable-soap--enable-mbstring--enable-static--enable-gd-native-ttf-- Enable-ftp--with-libxml-dir--enable-fpm--with-mhash--enable-pcntl--with-fpm-user=nginx--with-fpm-group=nginx-- With-libxml--enable-bcmath--disable-rpath--enable-safe-mode--enable-shmop--enable-sysvsem-- Enable-inline-optimization--enable-mbregex--enable-zip--with-mcrypt=/usr/local/libmcrypt--with-libdir=lib64



./configure--prefix=/usr/local/php--enable-fpm--enable-pcntl--enable-mysqlnd--enable-opcache--enable-sockets-- Enable-sysvmsg--enable-sysvsem--enable-sysvshm--enable-shmop--enable-zip--enable-ftp--enable-soap--enable-xml- -enable-mbstring--disable-rpath--disable-debug--disable-fileinfo--with-mysql=/usr/local/mysql--with-pdo-mysql- -with-pcre-regex--with-iconv--with-zlib--with-mcrypt=/usr/local/libmcrypt--with-gd--with-openssl--with-mhash-- With-xmlrpc--with-curl--with-imap-ssl--with-fpm-user=nginx--with-fpm-group=nginx





Configure:WARNING:unrecognized options:--enable-zend-multibyte,--enable-curl,--enable-xsl,--with-libxml,-- Enable-safe-mode,--with-curlwrappers





Old boy version

./configure--prefix=/usr/local/php--with-mysql=/usr/local/mysql--with-iconv-dir=/usr/local/libiconv-- With-freetype-dir--with-jpeg-dir--with-png-dir--with-zlib--with-libxml-dir=/usr--enable-xml--disable-rpath-- Enable-safe-mode--enable-bcmath--enable-shmop--enable-sysvsem--enable-inline-optimization--with-curl-- With-curlwrappers--enable-mbreget--enable-fpm--enable-mbstring--with-mcrypt--with-gd--enable-gd-native-ttf-- With-openssl--with-mhash--enable-pcntl--enable-sockets--with-xmlrpc--enable-zip--enable-soap-- Enable-short-tags--enable-zend-multibyte--enable-static--with-xsl--with-fpm-user=nginx--with-fpm-group=nginx-- Enable-ftp



Ln-s/usr/local/mysql/lib/libmysqlclient.so.18/usr/lib64/



--with-zlib-dir=dir--with-pcre-dir--with-libzip=dir

--with-zlib-dir=dir--with-pcre-dir--with-libzip=dir



\cp-frp/usr/lib64/libltdl.so*/usr/lib/


\cp-frp/usr/lib64/libxpm.so*/usr/lib/



Zhao Rongtao Ultimate Version (Nginx)


./configure--prefix=/usr/local/php--with-mysql=/usr/local/mysql--with-mysqli=/usr/local/mysql/bin/mysql_config --with-pdo-mysql=/usr/local/mysql--with-gd--with-png-dir--with-jpeg-dir--with-freetype-dir--with-xpm-dir-- With-zlib-dir--with-iconv=/usr/local/iconv--enable-libxml--enable-xml--enable-bcmath--enable-shmop-- Enable-sysvsem--enable-inline-optimization--enable-opcache--enable-mbregex--enable-fpm--enable-mbstring-- Enable-ftp--enable-gd-native-ttf--with-openssl--enable-pcntl--enable-sockets--with-xmlrpc--enable-zip-- Enable-soap--without-pear--with-gettext--enable-session--with-mcrypt--with-curl--enable-ctype--with-fpm-user= Nginx--with-fpm-group=nginx



--with-apxs2=/usr/local/apache2/bin/apxs




Zhao x version revision (for Apache)

./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--with-mysql=/usr/local/mysql-- With-mysql-sock--with-mysqli=/usr/local/mysql/bin/mysql_config--enable-fpm--with-ncurses--enable-soap-- With-libxml-dir--with-xmlrpc--with-openssl--with-mcrypt--with-mhash--with-pcre-regex--with-sqlite3--with-zlib- -enable-bcmath--with-iconv--with-bz2--enable-calendar--with-curl--with-cdb--enable-dom--enable-exif-- Enable-fileinfo--enable-filter--with-pcre-dir--enable-ftp--with-gd--with-openssl-dir--with-jpeg-dir-- With-png-dir--with-zlib-dir  --with-freetype-dir--enable-gd-native-ttf--enable-gd-jis-conv--with-gettext-- With-gmp--with-mhash--enable-json--enable-mbstring--disable-mbregex--disable-mbregex-backtrack--WITH-LIBMBFL-- With-onig--enable-pdo--with-pdo-mysql--with-zlib-dir--with-pdo-sqlite--with-readline--enable-session-- Enable-shmop--enable-simplexml--enable-sockets--enable-sqlite-utf8--enable-sysvmsg--enable-sysvsem--eNable-sysvshm--enable-wddx--with-libxml-dir  --with-xsl--enable-zip--enable-mysqlnd-compression-support-- With-pear


192.168.0.71 compiled installation parameters (Apache) with measured success

./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache-2.2.31/bin/apxs--with-mysql=/usr/local/mysql- -with-xmlrpc--with-openssl--with-freetype-dir--with-zlib--with-gd--with-jpeg-dir--with-png-dir--with-iconv=/ Usr/local/iconv--enable-short-tags--enable-sockets--enable-zend-multibyte--enable-soap--enable-mbstring-- Enable-static--enable-gd-native-ttf--enable-curl--enable-xsl--enable-ftp--with-libxml-dir




LANMP schema installation support library and common compilation 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.