For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > November 2004 > Apache (cgi) help for UserDir









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Apache (cgi) help for UserDir
Jim Goh

2004-11-15, 3:55 pm

Hi,
I try to setup the UserDir cgi-bin to work for each user under my
apache 2.0 and still not working, here is what i have done:

- under httpd.conf file

<IfModule mod_userdir.c>
UserDir public_html
</IfModule>

<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
SetHandler cgi-script
</Directory>

and i create the hello.pl script and works when run from command line but
not from web browser, and got the following error:

Premature end of script headers:example.pl

#!/usr/bin/perl -wT

print "Content-type: text/html\n\n";
print "Hello World!\n";

Thanks for any help!


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com