VPS侦探论坛

 找回密码
 注册
查看: 6062|回复: 6

lnmpa|升级后httpd syntax error

[复制链接]
发表于 2013-10-27 14:26:40 | 显示全部楼层 |阅读模式

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均不行。

求教。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-27 14:39:06 | 显示全部楼层

升级5.3.8记录



[root@localhost lnmp1.0-full]# ./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 [found]
============================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 from  to 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/
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-10-27 15:45:37 | 显示全部楼层

php-5.3.8.tar.gz 的源码包不完整,删除后,重新运行 ./upgrade_lnmpa_php.sh
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-27 16:06:45 | 显示全部楼层

回复 3# 的帖子




也就是说,重新安装其他版本的都可以?

其实关键问题还是找不到那几个项目。是不是lnmpa目前的配置不能支持php5.4以上呢?
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-10-27 18:10:27 | 显示全部楼层

删除或换其他版本,但必须保证源码包是完整的

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2013-10-27 18:10:55 | 显示全部楼层

回复 3# 的帖子


问题解决,在官方下载5.3.27的包后上传到目录更新成功,502消失。

5.4.21 5.5.5均不可行。

不过官方已经停止了对5.3的更新……
发表于 2013-10-27 18:51:13 | 显示全部楼层

程序不支持,php更新到5.9一样白搭

目前lnmp、lnmpa只测试到5.3,其他版本未测试
大部分程序5.3以下都不会有问题
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-25 03:19 , Processed in 0.027741 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表