Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: setting up a localhost
by saintmike (Vicar) on Mar 11, 2004 at 05:19 UTC | |
or with your browser, you should see the apache test page. If that's showing, Apache was installed correctly. Now for the cgi-bin part: Make sure that your apache installation has a cgi-bin directory and the script you're calling is in there. Depending on your installation, this might be in C:\Program Files\Apache Group\Apache\cgi-bin or similar. Then, open a DOS (gack!) window, go into the directory and try running the script by hand:
Check the output. If that shows something like
then you're in business and can try in your browser. Let us know at which part of the way you're stuck, and we can provide more help. | [reply] [d/l] [select] |
by rebot (Initiate) on Mar 12, 2004 at 05:13 UTC | |
However, I am still having trouble with the localhost thing. The following is the code I'm trying to execute: Running that code on the command line produces the following result which seems to have no errors: The Problem I am having is that I can't even get the apache test page to load when I type http://127.0.0.1 in for the URL. I set up my httpd.conf file like the following: I'm running apache 2.0.48 when I type, http://127.0.0.1/cgi-bin/test.cgi the browser just continuously tries to load the page like an endless loop. nothing happens. when I type, http://127.0.0.1 nothing happens. I don't even get the apache test page. do you think that ZoneAlarm will cause a problem with this? I'm also running a router so that a couple of computers in the house can have access to the internet. maybe that is causing the problem. I can't see why that would be causing a problem because I'm not trying to access the internet when I'm running this perl script/cgi stuff. I'm just trying to view the scripts on my own computer. | [reply] [d/l] [select] |
|
Re: setting up a localhost
by bart (Canon) on Mar 11, 2004 at 05:09 UTC | |
| [reply] |
|
Re: setting up a localhost
by AcidHawk (Vicar) on Mar 11, 2004 at 07:11 UTC | |
This will allow me to call http://localhost or http://myservername in the URL In the same file you also need to make sure that your cgi-bin settings are correct.. Your cgi script shoud go in this dir. On the windows platform make sure you have the #!perl.exe line as the first line of your script, and that perl.exe is in your path.
----- Of all the things I've lost in my life, its my mind I miss the most. | [reply] [d/l] [select] |