Hi guys,
This isn't a programming question but I hope someone here can help me out. I can't get cgi to work on my server. I'm running Apache 1.3.19 on RedHat Linux 7.1. I downloaded the iso image files and installed from them. I have read the manual over and over and used every configuration possible to get the server to execute cgi but it just ain't happening. I get 2 errors in my log every time I try to run the script from my browser. The 1st one says (2) No such file or directory. The 2nd says Premature end of headers. If I misspell the name of the file I just get one message that says File not found so i'm thinking that the 1st message is coming from the script and also causing the second. I've tried to call the script from the command line but I just get a display of the source code without any execution at all. My question is, should I be able to execute cgi scripts from the command line by typing "perl myscript.cgi"? If I use my browser and type in the URL I get the errors. If I type in the the path, I get the source code. Assuming my server is setup correctly, is there a way of testing perl to see if it is doing everything its supposed to. I'd be thankful for any little bit of help I can get on this.
This isn't a programming question but I hope someone here can help me out. I can't get cgi to work on my server. I'm running Apache 1.3.19 on RedHat Linux 7.1. I downloaded the iso image files and installed from them. I have read the manual over and over and used every configuration possible to get the server to execute cgi but it just ain't happening. I get 2 errors in my log every time I try to run the script from my browser. The 1st one says (2) No such file or directory. The 2nd says Premature end of headers. If I misspell the name of the file I just get one message that says File not found so i'm thinking that the 1st message is coming from the script and also causing the second. I've tried to call the script from the command line but I just get a display of the source code without any execution at all. My question is, should I be able to execute cgi scripts from the command line by typing "perl myscript.cgi"? If I use my browser and type in the URL I get the errors. If I type in the the path, I get the source code. Assuming my server is setup correctly, is there a way of testing perl to see if it is doing everything its supposed to. I'd be thankful for any little bit of help I can get on this.