免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1515 | 回复: 2

[WebServer] apache+fastcgi, http 500 error, fastcgi start error [复制链接]

论坛徽章:
0
发表于 2014-12-03 15:24 |显示全部楼层
各位好, 请教一个问题,

我在嵌入式平台上移植了apache+php+fastcgi, httpd启动后,html可以正常访问,但对于php的请求,就会出错,HTTP 500 Internal Server Error;

察看error log,显示fastcgi启动后,php-cgi can't load library 'libz.so.1', 但我的lib目录下已经放了libz的库文件。

而且单独执行php-cgi 是没问题的,php-cgi -v显示正常;

test.php

<?php

phpinfo();

?>

运行php-cgi test.php也可以正确解析。

以下是err log

# cat /var/apache/logs/error_log
[Thu Jan 01 00:11:48 1970] [notice] Digest: generating secret for digest authentication ...
[Thu Jan 01 00:11:48 1970] [notice] Digest: done
[Thu Jan 01 00:11:48 1970] [warn] pid file /var/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Jan 01 00:11:48 1970] [notice] Apache/2.2.29 (Unix) DAV/2 mod_fastcgi/2.4.6 configured -- resuming normal operations
[Thu Jan 01 00:11:48 1970] [notice] FastCGI: process manager initialized (pid 3837)
[Thu Jan 01 00:11:48 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3843)
/fss/gw/bin/php-cgi: can't load library 'libz.so.1'
[Thu Jan 01 00:11:48 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3843) terminated by calling exit with status '16'
[Thu Jan 01 00:11:49 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 384
/fss/gw/bin/php-cgi: can't load library 'libz.so.1'
[Thu Jan 01 00:11:49 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 384 terminated by calling exit with status '16'
[Thu Jan 01 00:11:50 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3853)
/fss/gw/bin/php-cgi: can't load library 'libz.so.1'
[Thu Jan 01 00:11:50 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3853) terminated by calling exit with status '16'
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" started (pid 3862)
/fss/gw/bin/php-cgi: can't load library 'libz.so.1'
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" (pid 3862) terminated by calling exit with status '16'
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:51 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds
[Thu Jan 01 00:11:52 1970] [warn] FastCGI: server "/fss/gw/bin/php-cgi" has failed to remain running for 30 seconds given 3 attempts, its restart interval has been backed off to 600 seconds

论坛徽章:
0
发表于 2014-12-04 09:23 |显示全部楼层
自己先顶一下, 坐等各位前辈给指点一下

论坛徽章:
0
发表于 2014-12-16 20:25 |显示全部楼层
OK. libz你编译的时候没有写进去,这个,fastcgi,十几年前的东东啦,怎么还在用???真有些奇怪喔。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

DTCC2020中国数据库技术大会

【架构革新 高效可控】2020年12月21日-23日第十一届中国数据库技术大会将在北京隆重召开。

大会设置2大主会场,20+技术专场,将邀请超百位行业专家,重点围绕数据架构、AI与大数据、传统企业数据库实践和国产开源数据库等内容展开分享和探讨,为广大数据领域从业人士提供一场年度盛会和交流平台。

http://dtcc.it168.com


大会官网>>
  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP