安裝之前:
創(chuàng)新互聯(lián)公司服務(wù)項(xiàng)目包括遂川網(wǎng)站建設(shè)、遂川網(wǎng)站制作、遂川網(wǎng)頁制作以及遂川網(wǎng)絡(luò)營銷策劃等。多年來,我們專注于互聯(lián)網(wǎng)行業(yè),利用自身積累的技術(shù)優(yōu)勢、行業(yè)經(jīng)驗(yàn)、深度合作伙伴關(guān)系等,向廣大中小型企業(yè)、政府機(jī)構(gòu)等提供互聯(lián)網(wǎng)行業(yè)的解決方案,遂川網(wǎng)站推廣取得了明顯的社會(huì)效益與經(jīng)濟(jì)效益。目前,我們服務(wù)的客戶以成都為中心已經(jīng)輻射到遂川省份的部分城市,未來相信會(huì)繼續(xù)擴(kuò)大服務(wù)區(qū)域并繼續(xù)獲得客戶的支持與信任!
centos下: yum -y install gcc pcre-devel curl-devel libxml2-devel libpng-devel libmcrypt-devel libjpeg-devel openssl-devel libjpeg.x86_64 libpng.x86_64 freetype.x86_64 libjpeg-devel.x86_64 libpng-devel.x86_64 freetype-devel.x86_64 ubuntu下: apt-get -y install libxml2-dev libxml2 libpng-dev zlib1g-dev openssl libssl-dev libcurl4-gnutls-dev libjpeg-dev libpng-dev libfreetype6-dev --force-yes wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz tar -zxvf libmcrypt-2.5.7.tar.gz cd libmcrypt-2.5.7 ./configure --prefix=/usr/local/libmcrypt make && make install
下載安裝php5.6:
wget -c http://au1.php.net/get/php-5.6.8.tar.gz/from/this/mirror tar -zxvf mirror cd php-5.6.8/ ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-MySQL=/usr/local/mysql-5.5.41-linux2.6-x86_64 --with-mysqli=/usr/local/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php --with-iconv --with-mcrypt=/usr/local/libmcrypt --with-freetype-dir==/usr/lib64/ --with-jpeg-dir=/usr/lib64/ --with-gd make && make install
下載安裝php7.0.2
wget -c http://cn2.php.net/distributions/php-7.0.2.tar.gz tar -xzxvf php-7.0.2.tar.gz cd php-7.0.2 ./configure --enable-fpm --enable-soap --enable-sockets --enable-zip --with-curl --with-mysqli=/usr/local/mysql-5.5.41-linux2.6-x86_64/bin/mysql_config --with-gd --with-openssl --with-pdo-mysql=/usr/local/mysql-5.5.41-linux2.6-x86_64 --prefix=/usr/local/php --with-iconv --with-mcrypt=/usr/local/libmcrypt --with-freetype-dir==/usr/lib64/ --with-jpeg-dir=/usr/lib64/ --with-gd make && make install cp php.ini-development /usr/local/php/lib/php.ini vi /etc/profile 在最低部添加 PATH=$PATH:/usr/local/php/bin export PATH source /etc/profile cp /usr/local/php/etc/php-fpm.conf.default /usr/local/php/etc/php-fpm.conf cp /usr/local/php/etc/php-fpm.d/www.conf.default /usr/local/php/etc/php-fpm.d/www.conf cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm chmod +x /etc/init.d/php-fpm vi /usr/local/php/etc/php-fpm.d/www.conf 修改 user = www group = www groupadd www useradd -g www www /etc/init.d/php-fpm restart