apache+fastcgi, http 500 error, fastcgi start error
各位好, 请教一个问题,
我在嵌入式平台上移植了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