Forum Moderators: phranque
whereis perl gives /usr/bin/perl
in commonhttpd.conf I have the following...
Alias /perl/ /var/www/perl/
<location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options ExecCGI
</Location>
The perl directory is 775 and the perltest.pl script in the directory is 755
This is the script...
#!/usr/bin/perl
# Create an HTML page to display a message.
print "Content-type: text/html\n\n";
print "<HTML><BODY><TITLE>Test</TITLE>";
print "<CENTER>";
print "<H1>";
print "TEST";
print "</H1>";
print "<HR>";
print "Hooray! It works!";
print "<HR>";
print "</CENTER>";
print "</BODY></HTML>";
When I try to acces my test script from the web I get a prompt in my browser asking me if I want to download the file.
Link to the perl file
http://www.example.com/forum/perl/perltest.pl
What the heck am I missing here?
I want to run the YaBB forum like this...
http://www.example.com/community/YaBB.pl
Thanks for your help!
[edited by: jdMorgan at 6:28 pm (utc) on May 6, 2005]
[edit reason] Removed specifics per TOS. [/edit]