apache+fastcgi, http 500 error, fastcgi start error

jacxie2009 2014-12-03 03:34: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 3848)
/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 3848) 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
...全文
1450 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
jacxie2009 2014-12-04
  • 打赏
  • 举报
回复
没人回复呢,自己先顶一下吧

2,204

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 CGI
社区管理员
  • CGI社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧