LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-02-2008, 02:58 PM   #1
pdavis68
LQ Newbie
 
Registered: Jul 2007
Posts: 9

Rep: Reputation: 0
cgi error log not showing up


I'm running Apache and I added the following to the configuration file:

ScriptLog /var/log/httpd/cgi/cgi_errors_log
ScriptLogBuffer 512
ScriptLogLength 500000

The directory /var/log/httpd/cgi is writeable by anyone

I restarted apache, but when my cgi script (a C program) is executed and I get the 500 Internal Server Error, no log file shows up in /var/log/httpd/cgi

The regular error log simply has "Premature end of scriptheaders: clientreg.cgi"

The CGI works. I mean, I introduced a bug and it's not working at the moment, but it worked prior to introducing the bug, so CGIs do run.
 
Old 01-03-2008, 02:51 PM   #2
dkm999
Member
 
Registered: Nov 2006
Location: Seattle, WA
Distribution: Fedora
Posts: 404

Rep: Reputation: 35
Apache is touchy about creating log files; try creating the logfile yourself:
Code:
# touch /var/log/httpd/cgi_errors_log
Then make sure that the file permissions are set so that anyone can write into the file, and you ought to see some messages when you execute the CGI script.
 
  


Reply

Tags
apache, cgi, logging


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Log stuff showing up in other consoles wonderboy1999 MEPIS 3 10-01-2007 02:09 PM
CGI script to view log files twantrd Programming 4 03-02-2007 10:19 AM
ftp logins not showing in last log lawadm1 Linux - Software 1 01-03-2007 01:22 PM
I Cant Exec a CGI without showing the interpreter. cartridge Linux - Newbie 4 12-19-2003 01:23 PM
I Cant Exec a CGI without showing the interpreter. cartridge Linux - Software 2 12-19-2003 11:51 AM


All times are GMT -5. The time now is 02:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration