Click to See Complete Forum and Search --> : Apache CGI Scripts in user dir


LakLar
09-29-2001, 01:42 AM
I have got apache running and working properly at http://laklar.murlin.com, except for one problem.

I CAN NOT run CGI's/PL's from my users directory (http://laklar.murlin.com/~dotcom/hello.cgi)

I CAN run CGI's/PL's from my DocumentRoot Directory (/var/www.html/*) properly though (http://laklar.murlin.com/cgi/newspro.cgi).

I get the error message in my "error_log" of
"[Sat Sep 29 00:43:39 2001] [error] [client 208.188.215.107] Premature end of script headers: /home/dotcom/public_html/hello.cgi" when trying to run CGI's/PL's from my user directories.

My httpd.conf file shows this for my DocumentRoot Dir:
<Directory /var/www/html>
Options Indexes Includes FollowSymLinks ExecCGI
AllowOverride AllOrder allow,deny
Allow from all
</Directory>

My httpd.conf file shows this for my User directory:
<Directory /home/*/public_html>
AllowOverride None
Options Indexes Includes FollowSymLinks ExecCGI
Order allow,deny
Allow from all
</Directory>

I have it so I CAN run CGI's/PL's outside the /cgi-bin/ directory like so:ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

I have set the permissions as per the script and also all the directories as per the apache manual in the users directory like so:

/home = 755
/home/dotcom = 755
/home/dotcom/public_html = 755

I have also copied the cgi from the DocumentRoot to the user directory and edited the variables as needed to run in that particular directory.

Any Help would be GREATLY appreciated.

Thanks,

Ryan Hodgson
LakLar
dotcom@murli.com