I'm trying to run cgi scripts in my cgi folder, and instead of the script running and doing something, I just see the script (hope that makes sense).
This started when I tried to set up a contact form, and then uploaded FormMail.pl in my cgi bin folder. But instead of the script running, I just see a printout of the script. I then tried uploading a Test.pl file that should display the words "Hello World" but instead it prints out the script again.
I think it is a problem with the Path to Perl, and it may be because my directadmin account has multiple (three) websites on it and the path to perl is not usual? The website I'm trying to get cgi scripts to run in is http://www.cranialborborygmus.com but again I have two other domains on the account as well. Is that the problem, and or how do I specify the path to perl?
In any event, the problem is that instead of the script running (or even getting an error message), I just end up seen the script in my browser window when I try to run it.
Here's the link to my test file... cranialborborygmus.com/cgi-bin/test.pl
The file is set to 755
It should print "Hello World" but instead I just see the script...
Thanks in advance for any guidance or suggestions!
This started when I tried to set up a contact form, and then uploaded FormMail.pl in my cgi bin folder. But instead of the script running, I just see a printout of the script. I then tried uploading a Test.pl file that should display the words "Hello World" but instead it prints out the script again.
I think it is a problem with the Path to Perl, and it may be because my directadmin account has multiple (three) websites on it and the path to perl is not usual? The website I'm trying to get cgi scripts to run in is http://www.cranialborborygmus.com but again I have two other domains on the account as well. Is that the problem, and or how do I specify the path to perl?
In any event, the problem is that instead of the script running (or even getting an error message), I just end up seen the script in my browser window when I try to run it.
Here's the link to my test file... cranialborborygmus.com/cgi-bin/test.pl
The file is set to 755
It should print "Hello World" but instead I just see the script...
Thanks in advance for any guidance or suggestions!