PHP致命错误:require():无法解锁pthread锁

前端之家收集整理的这篇文章主要介绍了PHP致命错误:require():无法解锁pthread锁前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我在Debian Linux上使用LAMP. Apache 2.2.22-12,PHP 5.4.4.

有时候我收到这个错误,然后我无法重新加载页面或打开的页面,其中包括这个错误文件.我有这样的错误后,我无法重新启动apache

Restarting web server: apache2(98)Address already in use: make_sock: could not bind to address [::]:80

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available,shutting down

Unable to open logs

Action ‘start’ Failed.

The Apache error log may have more information.
Failed!

在apache日志文件中:

[Wed Nov 21 15:07:55 2012] [warn] child process 4020 still did not exit,sending a SIGTERM

[Wed Nov 21 15:07:55 2012] [warn] child process 4021 still did not exit,sending a SIGTERM

[Wed Nov 21 15:07:55 2012] [warn] child process 4022 still did not exit,sending a SIGTERM

[Wed Nov 21 15:07:57 2012] [error] child process 1309 still did not exit,sending a SIGKILL

[Wed Nov 21 15:07:57 2012] [error] child process 1310 still did not exit,sending a SIGKILL

[Wed Nov 21 15:07:57 2012] [error] child process 1311 still did not exit,sending a SIGKILL

和主机日志:

[Wed Nov 21 12:21:24 2012] [error] [client 127.0.0.1] PHP Fatal error: require(): unable to unlock pthread lock in ~/www/yii/yii-1.1.11.58da45/framework/base/CApplication.PHP on line 127

$config=require($config);

要么:

[Wed Nov 14 21:04:26 2012] [error] [client 127.0.0.1] PHP Fatal error: require_once(): unable to unlock pthread lock in ~/projects/politiya/index.PHP on line 14

有:

require_once($game_loader);

我已经删除PHP-apc,现在灯的效果很好.

固定

如上所述here,我不得不快速卸载并重新安装apc(literaly需要5s):

1 sudo pecl uninstall apc

2 sudo pecl安装apc

但是将pthread互斥体已经填充的no更改为yes

并将已经填充的pthread读/写锁更改为no.

原文链接:https://www.f2er.com/php/133058.html

猜你在找的PHP相关文章