PDA

View Full Version : "Premature end of script headers" with Drupal when running another site under fcgi



zigguratt
07-25-2007, 01:55 PM
The title says it all. I have a Drupal site set up under a subdomain which runs perfectly fine. I'm developing another site on another subdomain which runs under Django using FastCGI. If I enable that site, the Drupal site starts giving me "500 Internal Server Error". The logs clarify by stating:


Premature end of script headers: /home/username/public_html/drupal/index.php

As I mentioned, the Drupal site works perfectly if I disable the fcgi file in the Django site. But the Django site works beautifully when the fcgi file is enabled. So it's one or the other but not both.

I want both to be active simultaneously, of course. There can't be anything wrong with Drupal's index.php as it works fine when the Django site's fcgi file is disabled, and it has not been changed from the time it was installed.

Does this sound familiar to anyone? It's very strange.

Thanks,
Dan

Edit: One more bit of information: if I wait a minute or two without accessing the Django/FCGI site, the Drupal site starts working again, but then gives the 500 error if I subsequently access the Django/FCGI site.