CGI problems

mattbates

Verified User
Joined
Oct 15, 2003
Messages
22
I have recently installed DA on FreeBSD 4.10 and it works well, however I'm just working through some small problems.

At the moment, I cannot use CGI at all.

In the case of a simple script (test env variables), I receive the following in the logs:

---
failed to open log file
fopen: Permission denied
[Wed Dec 15 20:59:15 2004] [error] [client xx.xx.xx.xx] Premature end of script headers: /home/xx/domains/xx/public_html/cgi-bin/test.cgi
---

I'm receiving the same errors for other sites that use CGI. I have checked the permissions and made sure the files are owned by the appropriate user. The suexec logs do not note any errors.

Does anyone know what might be at fault here?

Thanks in advance,
Matt
 
What log file are you talking about?

There is a global error log /var/log/httpd/error_log and an error log for each domain.

Make sure log partition isn't full, log files exist and writeable by root and 1 Apache process should run (actually, sleep) under root:
Code:
ps aux | grep httpd | grep root

Let us know how it goes.
 
Back
Top