0.9 升级PHP出现问题及解决办法
从5.2.17升级到5.3.5失败, 是因为从5.3.2开始不需要另外的php-fpm, 但是升级脚本没有做处理所以采取的办法是, 用lnmp 1.0 的upgrade_php.sh替换0.9种的脚本, 但是这个1.0 的升级脚本也有问题,
会出现openssl问题
undefined reference to `SSLv2_server_method’
ext/openssl/xp_ssl.o: In function `php_openssl_setup_crypto’:
需要在177行加入if cat /etc/issue | grep -Eqi '(Debian|Ubuntu)';then
cd ext/openssl/
wget -c http://soft.vpser.net/lnmp/ext/debian_patches_disable_SSLv2_for_openssl_1_0_0.patch
patch -p3 <debian_patches_disable_sslv2_for_openssl_1_0_0.patch
cd ../../
fi
给php 打补丁, 这样就可以成功升级了 5.3.17以上版本没有这种情况
页:
[1]