Hi,
This is kind of an embarassing question. I'm using the "learn cgi in 24hours" book to get started with some basic cgi scripting. The book recommends using apache as a test environment, which I've downloaded and installed. According to the book, the server is working correctly b/c I get their welcome message when I type in localhost. However, the test script isn't working, either in the browser or from the command line to test it. I think the reason is that I'm not sure how to put in the first line indicating where perl resides on my pc. Do I say c:/perl/bin? or what??? Everybody says use #!/usr/local/bin/perl but that isn't working for me b/c that's not where perl is. HELP! I know this is really basic but I'd really appreciate your help. I'm using ActiveState Active Perl, Apache 1.3.19(win32) and Win2000pro on a ThinkPad. The error message I get in the browser is "the page cannot be displayed." In dos I get "no such file or directory for the command c:\perl\bin\perl.exe c:\apache\cgi-bin\test.cgi." Also, Is there something I'm supposed to be doing with the apache server to set it up? There doesn't seem to be any kind of console or anything that I can do with it. My book doesn't say anything either. Also, I'm not sure I didn't mess up the config file b/c I set it to open in Word. Is that okay? I really don't know what I'm looking for in terms of editing something. If anyone can steer me in the right direction I'd really appreciate it!
This is kind of an embarassing question. I'm using the "learn cgi in 24hours" book to get started with some basic cgi scripting. The book recommends using apache as a test environment, which I've downloaded and installed. According to the book, the server is working correctly b/c I get their welcome message when I type in localhost. However, the test script isn't working, either in the browser or from the command line to test it. I think the reason is that I'm not sure how to put in the first line indicating where perl resides on my pc. Do I say c:/perl/bin? or what??? Everybody says use #!/usr/local/bin/perl but that isn't working for me b/c that's not where perl is. HELP! I know this is really basic but I'd really appreciate your help. I'm using ActiveState Active Perl, Apache 1.3.19(win32) and Win2000pro on a ThinkPad. The error message I get in the browser is "the page cannot be displayed." In dos I get "no such file or directory for the command c:\perl\bin\perl.exe c:\apache\cgi-bin\test.cgi." Also, Is there something I'm supposed to be doing with the apache server to set it up? There doesn't seem to be any kind of console or anything that I can do with it. My book doesn't say anything either. Also, I'm not sure I didn't mess up the config file b/c I set it to open in Word. Is that okay? I really don't know what I'm looking for in terms of editing something. If anyone can steer me in the right direction I'd really appreciate it!