Nginx summary (5)

Source: Internet
Author: User
Tags gmp
Nginx summary (5) nginx summary (4) http://www.2cto.com/os/201303/192406.html Nginx connection phpwww.2cto. comnginx itself only supports static text. when processing dynamic web pages, you need to use other modules (plug-ins), such as dynamic php... nginx summary (5) nginx summary (4) http://www.2cto.com/os/201303/192406.html Nginx connection to php www.2cto.com nginx only supports static text. when processing dynamic web pages, you need to use other modules (plug-ins), such as dynamic php, you need the fast-CGI module, fast-CGI to connect to php-fpm. First, we need to compile and install php [root @ host2 ~] # Rpm-qa php if it has been installed before, you need to uninstall it and reinstall it! Gcc make and so on are to install tar zxf libiconv-1.13.1.tar.gz # enhance the system to support character encoding conversion function www.2cto.com cd libiconv-1.13.1 /. /configure -- libdir =/usr/local/lib64make & make install tar jxf libmcrypt-2.5.8.tar.bz2 # mcrypt mhash is php encryption algorithm Extension Library cd libmcrypt-2.5.8. /configure-libdir =/usr/local/lib64make & make installcd libltdl. /configure -- libdir =/usr/local/lib64 -- enable-ltdl-installmake & make install tar zxvf mhash-0.9.9.9.t Ar.gz cd mhash-0.9.9.9. /configure -- libdir =/usr/local/lib64make & make install [root @ host2 mhash-0.9.9.9] # vim/etc/ld. so. conf add include/usr/local/lib64 ldconfig/usr/local/lib64 in it to let the system reload the lib library, there must be tar zxvf mcrypt-2.6.8.tar.gzcd /. /configure -- libdir =/usr/local/lib64make & make install yum install net-snmp-devel curl-devel libxml2-devel libpng-devel libjpeg-devel freetype-devel gmp- Devel openldap-devel-y php is ready! Useradd-M-s/sbin/nologin www tar jxf php-5.3.6.tar.bz2cd co php-5.3.6. /configure -- prefix =/usr/local/php -- with-config-file-path =/usr/local/php/etc -- with-mysql =/usr/local/mysql/ -- with-openssl -- with-snmp -- with-gd -- with-zlib -- with-curl -- with-libxml-dir -- with-png-dir -- with-jpeg-dir -- -freetype-dir -- without-pear -- with-gettext -- with-gmp -- enable-inline-optimization -- enable-soap -- enable -Ftp -- enable-sockets -- enable-mbstring -- with-mysqli =/usr/local/mysql/bin/mysql_config -- enable-fpm -- with-fpm-user = www --- fpm-group = www -- with-libdir = lib64 -- with-ldap-sasl -- with-mcrypt -- with-mhash parameters, the focus is -- enable-fpm, also, we can remove the mysql which is not installed now. In practice, we should install mysql first! Make ZEND_EXTRA_LIBS = '-liconv' make installwget http://pear.php.net/go-pear.phar/usr/local/webserver/php/bin/php Go-pear.phar
 
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.