You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Re...@seagate.com on 2002/11/13 15:55:57 UTC
[users@httpd] Trouble running cgi script from user directory
Hello,
I am having trouble with running cgi scripts out of a user directory
(/home/john/public_html/cgi-bin). In my error_log file I receive the
message "Premature end of script headers". I have seen quite a few
postings on this subject so here is a list of things I have checked:
- I can run the cgi script by hand without errors
- this same script can be run in the main cgi-bin directory without
problems
- the script is executable
- the user directory has a mode of 777, then the public_html directory is
775 and the cgi-bin directory is 775.
- In my httpd.conf file I have added the following:
<Directory /home/john/public_html/cgi-bin>
Options +ExecCGI
SetHandler cgi-script
</Directory>
What am I missing?
Thanks in advance!!
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org