lnmp的安裝--php

來源:互聯網
上載者:User

標籤:regex   .com   wget   bcmath   libxml   源碼   mysql   .gz   shm   

1.下載php源碼

wget http://cn2.php.net/distributions/php-5.6.3.tar.gztar zxvf php-5.6.3.tar.gzcd php-5.6.3

2.安裝依賴包

 這些依賴有libxml, libpng, libjpeg, libmcrypt...等 根據提示進行操作,如:yum install libxml2 按Tab鍵查看所有libxml包,我這裡安裝 yum install libxml2-devel,然後進行配置。
./configure 測試

./configure --prefix=/usr/www/php --with-config-file-path=/usr/www/php/etc --with-mysql=/usr/www/mysql --with-mysqli=/usr/www/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-gd --with-iconv --with-zlib --enable-xml --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization  --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-curl


2.1
yum install -y libxml2 libxml2-devel
yum install libcurl libcurl-devel
yum install libjpeg libjpeg-devel libpng libpng-devel
yum install libmcrypt libmcrypt-devel

 2.2 安裝

make && make install

 

lnmp的安裝--php

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.