httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morten-Christian Bernson <>
Subject [users@httpd] Problem with CGI-bin scripts
Date Sun, 28 Sep 2003 20:38:46 GMT
I have a very strange problem that I hope someone can help me with.

I am managing a pretty new server with FreeBSD on.  It has Apache
1.3.28 with PHP 4.2.3 installed, and everything is good except for
CGI-bin scripts.

After Apache is started (or restarted) cgi-bin scripts won't work.
Mailman, Bugzilla, test.cgi (echo's out hello world)... whatever is
run via CGI-BIN just produces a 500 internal server error with
"Premature end of script headers..." in the error-log.  After a while
(up to 30 minutes) it suddenly works.  Without anyone touching
anything.  I have to mention that the lines about cgi-bin in the
config file are the same as on another server, where it works fine.
Permissions on the dir and files are ok, and the script works as it
should from the shell, run as the user apache runs as.

But even if when works, it won't work with cookies.  Both mailman and
bugzilla doesn't even try to set cookies, so no one can log in.

I have looked and looked and looked, and can't figure out why this
happens.  It's just so strange.  I have had other's who manage FreeBSD
full-time look at it, and they think it's just as strange as me.

I am at a loss, and really hope someone can come up with good ideas as
to how to solve this.

If I should produce any logs, info or whatever, just tell me.  I would
do almost anything to get this to work since a lot of people are
anxious to get to use Mailman and Bugzilla on this server.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message