Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a web server with apache 2.0 installed. It comes with Zend Server install pack. When I’m trying to debug my php files apache serves a blank page with 503 service unavailable. Of course slow server-side code is tying up Apache requests for far too long, but I need it to wait, until my debugging comes to end. How can I solve this problem.

share|improve this question

Is it timing out before displaying the error, or is the 503 error coming up right away? Try adding a set_time_limit() command at the beginning of your script to see if that gives it time to finish. I think the default timeout is only 30 seconds.

share|improve this answer
Thanks, Ryan. When I call to page from a browser it launches ZendStudio debugging my PHP script (request redirects Zend Debugger module). I debug through my script and if I finish debugging in 120 seconds, I normally return to browser. When it takes more than 120 seconds browser displays 503 503 service unavailable and I can't return to page output. I have even forced 'max_execution_time = 300' 'max_input_time = 600' in php.ini and 'TimeOut = 500' in httpd.conf. No matter it is Opera, IE of Firefox. Spent two days googling it, no right answer till now. Sergey. – user25932 Nov 13 '09 at 8:42
@Ryan Hamilton: The right command to remove timeout is set_time_limit(0); – Fred Wuerges Dec 13 '12 at 1:22

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.