Project

General

Profile

PHP Does Not Respond

Added by spflanze almost 13 years ago

PHP quit responding during a remote debug session using Eclipse and XDebug. Now I am unable break on even the first line of code.

I am able to get static html pages from another site on the same server. Attempts to get a dynamic php page causes the browser to remain in a loading state that never times out. This is true even for a simple page that has only the phpinfo() function in it when accessed by its IP numbers in a browser.

I have looked at permissions and have verified the PHP executable files have permission to be executed by both the group and owner. The group name is www-data which is the user name my lighttpd server is running under.

The netstat -vat command shows many www connections in an ESTABLISHED state from the IP number of the computer I am using. My assumption is these are from the many times I have tried to load a php page in my browser while trying to solve this problem. These connections are either taking a very long time to time out or are not timing out at all.

I have restarted lighttpd several times in an effort to solve this without effect. The restart does not display any errors.

In lighttpd.comf I set fastcgi.debug=1 and found this in error.log:

2011-07-04 00:04:37: (mod_fastcgi.c.1367) --- fastcgi spawning local 
    proc: /usr/bin/php5-cgi 
    port: 0 
    socket /var/run/lighttpd/froxlor.panel-froxlor.jail4judges.info-php-fpm.socket 
    max-procs: 1
I am not sure about "port: 0". I expected port 80. Is this port number right? The port seems to be set to 80 in lighttpd.comf where I have the entry "server.port = 80" as a global and also as a local in a "$SERVER["socket"]" section.

I do not know what else to do. I need help with this.

I will send URLs and outputs of commands such as netstat by private email on request.


Replies (1)

RE: PHP Does Not Respond - Added by spflanze almost 13 years ago

This problem disappeared overnight. I am now able to access the php pages. A netstat run shows far fewer connections between my computer and the server. I have a suspicion I was blocked by many resource consuming debug sessions that were not closed properly and took a long time to time out. I need to know what to do about this should it happen again. I cannot wait 24 hours to resume my work. Also, should a similar thing happen on a production server, I will need to quickly get it working again.

    (1-1/1)