欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

php5.5.38編譯安裝

解決php版本與程序不兼容導(dǎo)致php打包參數(shù)失敗

1.編譯安裝php-5.5.38

1.1下載php源碼包解決相關(guān)依賴(lài)

基于lnmp1.3一鍵安裝包的php版本PHP5.5.36的編譯參數(shù)來(lái)編譯安裝php-5.5.38

10年的夾江網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開(kāi)發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。網(wǎng)絡(luò)營(yíng)銷(xiāo)推廣的優(yōu)勢(shì)是能夠根據(jù)用戶(hù)設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整夾江建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。成都創(chuàng)新互聯(lián)從事“夾江網(wǎng)站設(shè)計(jì)”,“夾江網(wǎng)站推廣”以來(lái),每個(gè)客戶(hù)項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。

通過(guò)phpinfo.php可以查看php的編譯安裝的參數(shù)

 

yum install php-MySQL php-mbstring php-mcrypt php-pdo -y

wgethttp://cn2.php.net/distributions/php-5.5.38.tar.gz

tar xf php-5.5.38.tar.gz

1.2編譯安裝

 cdphp-5.5.38

./configure '--prefix=/usr/local/php5.5' '--with-config-file-path=/usr/local/php5.5/etc''--enable-fpm' '--with-fpm-user=www' '--with-fpm-group=www''--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd''--with-iconv-dir' '--with-freetype-dir=/usr/local/freetype' '--with-jpeg-dir''--with-png-dir' '--with-zlib' '--with-libxml-dir=/usr' '--enable-xml''--disable-rpath' '--enable-bcmath' '--enable-shmop' '--enable-sysvsem''--enable-inline-optimization' '--with-curl' '--enable-mbregex''--enable-mbstring' '--with-mcrypt' '--enable-ftp' '--with-gd''--enable-gd-native-ttf' '--with-openssl' '--with-mhash' '--enable-pcntl''--enable-sockets' '--with-xmlrpc' '--enable-zip' '--enable-soap''--with-gettext' '--disable-fileinfo' '--enable-opcache' '--enable-intl''--with-xsl' --without-pear --disable-phar

 

vim Makefile

107 EXTRA_LIBS 此行的末尾添加參數(shù)-liconv

107 EXTRA_LIBS = -lcrypt -lz -lexslt -lcrypt -lrt-lmcrypt -lltdl -lstdc++ -lpng -lz -ljpeg -lcurl -lz -lrt -lm -ldl -lnsl -lrt-lxml2 -lz -lm -lssl -lcrypto -lcurl -lxml2 -lz -lm -lssl -lcr

     ypto-lfreetype -lz -lbz2 -licui18n -licuuc -licudata -lm -licuio -lxml2 -lz -lm-lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz-lm -lxslt -lxml2 -lz -lm

     -lssl-lcrypto -lcrypt -liconv

make

make install

/usr/local/php5.5/bin/php –v

1.3安裝go-pear.phar

wget http://pear.php.net/go-pear.phar

/usr/local/php5.5/bin/php go-pear.phar

 

1.4準(zhǔn)備php-fpm啟動(dòng)文件和php-fpm.conf配置文件

 

cd php-5.5.38

cp php.ini-production /usr/local/php5.5/etc/php.ini

 cpsapi/fpm/init.d.php-fpm /etc/init.d/php5.5-fpm

vim /usr/local/php5.5/etc/php.ini

 chmod +x/etc/init.d/php5.5-fpm

cd /usr/local/php5.5/etc/

cp /usr/local/php5.5/etc/php-fpm.conf.defaultphp-fpm.conf

vim /usr/local/php5.5/etc/php-fpm.conf

[root@localhost php-5.5.38]# grep date.timezone/usr/local/php5.5/etc/php.ini

; http://php.net/date.timezone

date.timezone = PRC

 

 

1.5結(jié)合參考一鍵安裝包的php-fpm.conf優(yōu)化配置文件

[root@localhost php-5.5.38]# cat/usr/local/php5.5/etc/php-fpm.conf

[global]

pid = /usr/local/php5.5/var/run/php-fpm.pid

error_log = /usr/local/php5.5/var/log/php-fpm.log

log_level =warning

 

[www]

listen = 127.0.0.1:9002

listen.backlog = -1

listen.allowed_clients = 127.0.0.1

listen.owner = www

listen.group = www

listen.mode = 0666

user = www

group = www

pm = dynamic

pm.max_children = 100

pm.start_servers = 50

pm.min_spare_servers = 30

pm.max_spare_servers =  80

request_terminate_timeout = 0

request_slowlog_timeout = 0

slowlog = var/log/slow.log

1.6修改nginx配置文件指定php的fastcgi_pass端口9002選定運(yùn)行的php版本

[root@localhost php-5.5.38]# cat/usr/local/nginx/conf/vhost/testadmin.conf

  server

 {

  listen       80;

  server_name testadmin.com;

   indexindex.html index.php;

   root  /data/www/testadmin;

  #limit_conn   crawler  20;   

  #error_page 404

   location ~ .*\.(php|php5)?$

   {

    #fastcgi_pass unix:/tmp/php-cgi.sock;

    fastcgi_pass  127.0.0.1:9002;

    fastcgi_index index.php;

     includefastcgi.conf;          

   }

   location ~.*\.(gif|jpg|jpeg|png|bmp|swf)$

   {

    expires      30d;

   } 

   location ~.*\.(js|css)?$

   {

    expires      1h;

   }

   location/5998153NginxStatus

   {

    stub_status on;

    access_log   off;

   }

   #access_log  /dev/null;

  error_log /data/wwwlogs/error.log;

 }

nginx -t

nginx: the configuration file/usr/local/nginx/conf/nginx.conf syntax is ok

nginx: configuration file/usr/local/nginx/conf/nginx.conf test is successful

[root@localhost php-5.5.38]# /etc/init.d/nginxreload 

當(dāng)前題目:php5.5.38編譯安裝
URL標(biāo)題:http://chinadenli.net/article20/jhpcco.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站制作網(wǎng)站設(shè)計(jì)公司網(wǎng)站建設(shè)建站公司靜態(tài)網(wǎng)站關(guān)鍵詞優(yōu)化

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶(hù)投稿、用戶(hù)轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)

網(wǎng)站托管運(yùn)營(yíng)