免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2697 | 回复: 4
打印 上一主题 下一主题

自己搞了一个下午也没搞定,关于httpd无法启动问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-07 17:38 |只看该作者 |倒序浏览
Linux 内核版本: 2.4.20-2.41smp
服务器解译引擎         Apache/2.0.40 (Red Hat Linux)
SQL 4.1.18

原来一切运行正常,跑着blog和一个discuz的论坛

今天安装了一个ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz

tar出来后,install了 不知道怎么回事,重新启动httpd的时候就出错了


  1. [root@sun20 mysql]# /etc/init.d/httpd start
  2. Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/auth_mysql.conf:
  3. Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: /etc/httpd/modules/mod_auth_mysql.so: undefined symbol: ap_escape_logitem
复制代码


因为本机还跑着另外一个站点,所以得尽快恢复,我到/etc/httpd/conf.d/auth_mysql.conf将出错的这样注释掉了。
  1. #LoadModule mysql_auth_module modules/mod_auth_mysql.so
复制代码

总算httpd能启动了,mysql也能启动,但是论坛没有任何显示,blog提示说
  1. Your server does not seem to support MySQL, so Bo-Blog 2.x can not run at your server.
复制代码


在log里看到这段



  1. [Tue Mar 07 16:48:43 2006] [warn] child process 16607 still did not exit, sending a SIGTERM
  2. [Tue Mar 07 16:48:43 2006] [warn] child process 16609 still did not exit, sending a SIGTERM
  3. [Tue Mar 07 16:48:43 2006] [warn] child process 16610 still did not exit, sending a SIGTERM
  4. [Tue Mar 07 16:48:43 2006] [notice] caught SIGTERM, shutting down
  5. PHP Warning:  Unable to load dynamic library '/usr/lib/php4/mysql.so' - libmysqlclient.so.10: cannot open shared object file: No such file or directory in Unknown on line 0
  6. [Tue Mar 07 16:48:55 2006] [notice] Digest: generating secret for digest authentication ...
  7. [Tue Mar 07 16:48:55 2006] [notice] Digest: done
  8. [Tue Mar 07 16:48:56 2006] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
  9. [Tue Mar 07 16:48:58 2006] [warn] child process 16926 still did not exit, sending a SIGTERM
  10. [Tue Mar 07 16:48:58 2006] [notice] caught SIGTERM, shutting down
复制代码


然后找libmysqlclient.so.10,在/usr/lib/mysql发现没有这个文件,列表如下。


  1. [root@sun20 mysql]# ls -l
  2. total 1808
  3. -rw-r--r--    1 root     root        10776 Feb 19  2003 libdbug.a
  4. -rw-r--r--    1 root     root        32156 Feb 19  2003 libheap.a
  5. -rw-r--r--    1 root     root        13590 Feb 19  2003 libmerge.a
  6. -rw-r--r--    1 root     root       237776 Feb 19  2003 libmyisam.a
  7. -rw-r--r--    1 root     root        20816 Feb 19  2003 libmyisammrg.a
  8. -rw-r--r--    1 root     root       298994 Feb 19  2003 libmysqlclient.a
  9. -rw-r--r--    1 root     root       304340 Feb 19  2003 libmysqlclient_r.a
  10. lrwxrwxrwx    1 root     root           26 Nov 13  2004 libmysqlclient_r.so -> libmysqlclient_r.so.10.0.0
  11. lrwxrwxrwx    1 root     root           24 Nov 13  2004 libmysqlclient.so -> libmysqlclient.so.10.0.0
  12. -rw-r--r--    1 root     root       140782 Feb 19  2003 libmystrings.a
  13. -rw-r--r--    1 root     root       191422 Feb 19  2003 libmysys.a
  14. -rw-r--r--    1 root     root       103452 Feb 19  2003 libnisam.a
  15. -rw-r--r--    1 root     root       442738 Jan 31 21:28 mysqld.sym
复制代码


哪位大人能教教我怎么做啊??

论坛徽章:
0
2 [报告]
发表于 2006-03-07 17:40 |只看该作者
我觉得是新的库文件把旧的库文件替换了 把新的库文件cp成旧的库文件名试试

论坛徽章:
0
3 [报告]
发表于 2006-03-07 17:42 |只看该作者

  1. [root@sun20 mysql]# ln libmysqlclient.so libmysqlclient.so.10
  2. ln: `libmysqlclient.so': warning: making a hard link to a symbolic link is not portable
  3. [root@sun20 mysql]# ls
  4. libdbug.a    libmyisammrg.a       libmysqlclient.so     libnisam.a
  5. libheap.a    libmysqlclient.a     libmysqlclient.so.10  mysqld.sym
  6. libmerge.a   libmysqlclient_r.a   libmystrings.a
  7. libmyisam.a  libmysqlclient_r.so  libmysys.a
  8. [root@sun20 conf.d]# /etc/init.d/httpd stop
  9. Stopping httpd:                                            [  OK  ]
  10. [root@sun20 conf.d]# /etc/init.d/httpd start
  11. Starting httpd: Syntax error on line 6 of /etc/httpd/conf.d/auth_mysql.conf:
  12. Cannot load /etc/httpd/modules/mod_auth_mysql.so into server: /etc/httpd/modules/mod_auth_mysql.so: cannot open shared object file: No such file or directory
  13.                                                            [FAILED]
复制代码


还是不幸啊

论坛徽章:
0
4 [报告]
发表于 2006-03-07 17:46 |只看该作者
原帖由 isalie 于 2006-3-7 17:38 发表
Linux 内核版本: 2.4.20-2.41smp
服务器解译引擎         Apache/2.0.40 (Red Hat Linux)
SQL 4.1.18

原来一切运行正常,跑着blog和一个discuz的论坛

今天安装了一个ZendOptimizer-2.6.2-linux-glibc21-i386.t ...


为什么要安装2.6.2-linux-glibc21-i386 ,系统中原来应该有这个的

论坛徽章:
0
5 [报告]
发表于 2006-03-07 17:49 |只看该作者
我理解是装得是ZendOptimizer吧

因为在discuz论坛当中提示说装了这个才能用他们的一些功能,所以才装的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP