nginx小總結(五)

來源:互聯網
上載者:User

nginx小總結(五) nginx小總結(四)http://www.bkjia.com/os/201303/192406.html nginx串連php  www.2cto.com   nginx本身只支援靜態文本,當處理動態網頁的時候,則需要藉助於其他模組(外掛程式),比如動態php,就需要fast-CGI模組,fast-CGI去串連php-fpm,首先,我們得編譯安裝php [root@host2 ~]# rpm -qa php          如果之前安裝過,需要卸載掉重新安裝! gcc  make等都是要按裝的 tar zxf libiconv-1.13.1.tar.gz                              #加強系統對支援字元編碼轉換的功能  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是php密碼編譯演算法擴充庫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.tar.gzcd mhash-0.9.9.9./configure --libdir=/usr/local/lib64make && make install [root@host2 mhash-0.9.9.9]# vim /etc/ld.so.conf        在裡面添加 include /usr/local/lib64 ldconfig /usr/local/lib64                  讓系統重新載入lib庫,必須有 tar zxvf mcrypt-2.6.8.tar.gzcd mcrypt-2.6.8/./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的準備工作已經OK! useradd -M -s /sbin/nologin www tar jxf php-5.3.6.tar.bz2cd 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--with-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 --with-fpm-group=www --with-libdir=lib64 --with-ldap --with-ldap-sasl --with-mcrypt --with-mhash 各種參數、重點是--enable-fpm,還有,那個mysql現在我們是沒有安裝的可以去掉,在實際中,還是應該先安裝mysql! make ZEND_EXTRA_LIBS='-liconv'make installwget http://pear.php.net/go-pear.phar/usr/local/webserver/php/bin/php go-pear.phar
 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.