Support Forums

Full Version: Help with perl.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok i have setup a new home server. No big deal. But i am wanting to make some other directories active with perl. So i can run perl/cgi scripts from different locations.
Why you may ask.
Well i have moved my server root location from /var/www/html to another drive. Now i want to be able to run my scripts from within my server directory.
I have edited the httpd.config file but i have had no luck as yet.
Before i destroy my server i thought i might ask.
Here is where i have currently edited.

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/server/cgi-bin">
AllowOverride All
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

server being the other harddrive ofcourse.

Current error i am getting is this.

Server error!

The server encountered an internal error and was unable to complete your request.

Error message:
Premature end of script headers: test.cgi

If you think this is a server error, please contact the webmaster.
Error 500

Testing pages are
http://www.daminkshost.com/cgi-bin/test.cgi
http://www.daminkshost.com/cgi-bin/test.pl
I just renamed the 2 files in the hope that was it.

Thanks if anyone can help me easily.