大力出逗比

AMH4.2升级PHP5.6.9
首先登陆SSH,执行amh php stop 第一步:wget http://am1.php.net/distr...
扫描右侧二维码阅读全文
23
2016/06

AMH4.2升级PHP5.6.9

首先登陆SSH,执行amh php stop



第一步:wget http://am1.php.net/distributions/php-5.6.9.tar.gz



第二步:tar zxvf php-5.6.9.tar.gz



第三步:cd php-5.6.9



第四步:./configure --prefix=/usr/local/php --enable-fpm --with-fpm-user=www --with-fpm-group=www --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --with-openssl --with-zlib  --with-curl --enable-ftp --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --enable-gd-native-ttf --enable-mbstring --enable-zip --with-iconv=/usr/local/libiconv --with-mysql=/usr/local/mysql --without-pear --disable-fileinfo --enable-opcache



第五步:make



第六步:make install



第七步:echo listen.owner = www  >> /usr/local/php/etc/php-fpm.conf

echo listen.group = www  >> /usr/local/php/etc/php-fpm.conf

echo listen.mode = 0660  >> /usr/local/php/etc/php-fpm.conf

最好在检查一下  有时候没换行



第八步:echo listen.owner = www  >> /usr/local/php/etc/php-fpm-template.conf

echo listen.group = www  >> /usr/local/php/etc/php-fpm-template.conf

echo listen.mode = 0660  >> /usr/local/php/etc/php-fpm-template.conf

最好在检查一下  有时候没换行

第九步: echo listen.owner = www  >> /usr/local/php/etc/fpm/你的网站.conf

echo listen.group = www  >>  /usr/local/php/etc/fpm/你的网站.conf

echo listen.mode = 0660  >>  /usr/local/php/etc/fpm/你的网站.conf

最好在检查一下  有时候没换行



第十步:amh php restart

Last modification:January 1st, 1970 at 08:00 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment