GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 17-Feb-2005, 07:17
bretkimble bretkimble is offline
New Member
 
Join Date: Feb 2005
Posts: 2
bretkimble is on a distinguished road

Apache with cgi configuration


I am a newbe to linux and apache, but have a good understanding. I am taking over a server where cgi is not working, I get premature end of headers in error_log. Its redhat 7, apache 2.0.40. I have tried many configurations of the httpd.conf (with restart) no avail. I have rechecked permissions + ownership, nothing. here is a snipit of httpd.conf.

<IfModule prefork.c>
LoadModule cgi_module modules/mod_cgi.so
</IfModule>

<IfModule worker.c>
LoadModule cgid_module modules/mod_cgid.so
</IfModule>

User apache
Group apache
UseCanonicalName Off
DocumentRoot "/var/www/html"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/var/www/html">

Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.html index.html.var index.htm
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

TypesConfig /etc/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
</IfModule>
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

<IfModule mod_cgid.c>
Scriptsock run/httpd.cgid
</IfModule>

<Directory "/var/www/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
AddHandler cgi-script .cgi .py .pl
Allow from all
</Directory>
AddHandler cgi-script .cgi


I am calling a very simple hello.cgi script that is in cgi-bin. The script runs fine on command line. I have also tried htaccess file, nothing. I don't think I understand part of the configuration, or just missing something. Thanks for any help.
  #2  
Old 16-Mar-2005, 18:57
DReaMer66 DReaMer66 is offline
New Member
 
Join Date: Mar 2005
Posts: 3
DReaMer66 is on a distinguished road
Is there any more information in the error log? Specificly, the lines right above the "Premature end of headers". (possibly time stamped the same)
  #3  
Old 17-Mar-2005, 06:44
bretkimble bretkimble is offline
New Member
 
Join Date: Feb 2005
Posts: 2
bretkimble is on a distinguished road
I finally figured it out, but forgot to post here. I was uploading the cgi files incorrectly. The setup was correct, well enough to run cgi. Thanks
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache / PHP problem, maybe output length? HaganeNoKokoro Apache Web Server Forum 3 07-Aug-2008 05:42
apache php no longer working (MX??) XP?? ChicoMendez Apache Web Server Forum 5 30-Aug-2004 11:51
Tomcat Apache mod_jk2 Caching Resource File Govarthanan_k Apache Web Server Forum 0 12-Aug-2004 01:17
Apache2 config issues monev Apache Web Server Forum 2 28-Jun-2004 07:19
regarding Apache configuration dhaval2012 Apache Web Server Forum 2 19-Jun-2004 12:20

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 18:52.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.