lnmpa|升级后httpd syntax error
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory已经查看过帖子和相关问题
https://bbs.vpser.net/thread-5457-1-1.html
降级5.3.5 5.2.17均不行。
求教。
升级5.3.8记录
# ./upgrade_lnmpa_php.sh=========================================================================
Upgrade PHP for LNMPA,Written by Licess
=========================================================================
LNMP is tool to auto-compile & install Nginx+MySQL+PHP on Linux
For more information please visit http://www.lnmp.org/
=========================================================================
./upgrade_lnmpa_php.sh: line 23: /usr/local/php/bin/php: No such file or directory
Current PHP Version:
You can get version number from http://www.php.net/
(Please input PHP Version you want):5.3.8
===========================
You want to upgrade php version to 5.3.8
===========================
Press any key to start...or Press Ctrl+c to cancel
============================check files==================================
php-5.3.8.tar.gz
============================check files==================================
Backup old php version configure files......
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
cp: cannot stat `/usr/local/apache/modules/libphp5.so': No such file or directory
Stoping Nginx...
Stopping nginx daemon: nginx.
Stoping MySQL...
Shutting down MySQL. SUCCESS!
Stoping Apache...
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
Starting install php......
php-5.3.8/
php-5.3.8/CREDITS
php-5.3.8/aclocal.m4
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
./upgrade_lnmpa_php.sh: line 105: ./configure: No such file or directory
make: *** No targets specified and no makefile found.Stop.
make: *** No rule to make target `install'.Stop.
cp: cannot stat `php.ini-production': No such file or directory
Modify php.ini......
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
sed: can't read /usr/local/php/etc/php.ini: No such file or directory
Install ZendGuardLoader for PHP...
--2013-10-27 14:29:49--http://soft.vpser.net/web/zend/ZendGuardLoader-php-5.3-linux-glibc23-x86_64.tar.gz
Resolving soft.vpser.net... 96.44.153.111
Connecting to soft.vpser.net|96.44.153.111|:80... connected.
HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
The file is already fully retrieved; nothing to do.
ZendGuardLoader-php-5.3-linux-glibc23-x86_64/
ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/
ZendGuardLoader-php-5.3-linux-glibc23-x86_64/php-5.3.x/ZendGuardLoader.so
ZendGuardLoader-php-5.3-linux-glibc23-x86_64/README.txt
Write ZendGuardLoader to php.ini......
Starting Nginx...
Starting nginx daemon: nginx.
Starting MySQL...
Starting MySQL.. SUCCESS!
Starting Apache...
httpd: Syntax error on line 343 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/modules/libphp5.so into server: /usr/local/apache/modules/libphp5.so: cannot open shared object file: No such file or directory
=========================================================================
You have successfully upgrade PHP of LNMPA fromto 5.3.8
=========================================================================
LNMPA is tool to auto-compile & install Nginx+MySQL+PHP+Apache on Linux
=========================================================================
For more information please visit http://www.lnmp.org/ php-5.3.8.tar.gz 的源码包不完整,删除后,重新运行 ./upgrade_lnmpa_php.sh
回复 3# 的帖子
也就是说,重新安装其他版本的都可以?其实关键问题还是找不到那几个项目。是不是lnmpa目前的配置不能支持php5.4以上呢? 删除或换其他版本,但必须保证源码包是完整的
回复 3# 的帖子
问题解决,在官方下载5.3.27的包后上传到目录更新成功,502消失。5.4.21 5.5.5均不可行。
不过官方已经停止了对5.3的更新…… 程序不支持,php更新到5.9一样白搭
目前lnmp、lnmpa只测试到5.3,其他版本未测试
大部分程序5.3以下都不会有问题
页:
[1]