I've got KUbuntu running with a fresh install of Apache and Perl. Right now, I'm at the HELLO WORLD stage of getting a script to work through FF and IE.
I have the following in my code:
No matter what browser I use (FF on XP as well as in KDE) and IE6 (On XP) each browser wants to download the perl script.
For S'n'G, I decided to look at the content of what was downloaded. I noted that on the XP box, it was the same code I had just saved it as. I'm saving the file as a linux based file (Not DOS format).
What do I need to check and verify to get Apache to execute the script, instead of forcing the download?
Just to add, I've checked the permissions on the file within a console, and things still don't work even as 0777 or 0755.
I went online and checked other HELLO WORLD kinds of perl scripts, and none of them want to work. I'm at a loss.
Suggestions?
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=
NEVER send the boss to do a techs job
I have the following in my code:
Code:
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello, PERL!";
No matter what browser I use (FF on XP as well as in KDE) and IE6 (On XP) each browser wants to download the perl script.
For S'n'G, I decided to look at the content of what was downloaded. I noted that on the XP box, it was the same code I had just saved it as. I'm saving the file as a linux based file (Not DOS format).
What do I need to check and verify to get Apache to execute the script, instead of forcing the download?
Just to add, I've checked the permissions on the file within a console, and things still don't work even as 0777 or 0755.
Code:
-rwxrwxrwx 1 smbguest nogroup 96 2007-05-16 20:04 hello.pl
I went online and checked other HELLO WORLD kinds of perl scripts, and none of them want to work. I'm at a loss.
Suggestions?
-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=-=*=
NEVER send the boss to do a techs job