July 15th, 2002, 11:18 AM
|
#1 (permalink)
| | Member
Join Date: Nov 2001 Location: Bloomington IN
Posts: 219
|
I am trying to install Apache on a Win2000 machine so that I can learn about and fool around with CGI.
I cannot 'connect' to my localhost at all. Just getting a Page cannot be displayed error. Is there a setting that I have missed in some configuration?
I have tried the following addresses:
localhost
127.0.0.1
and the PC's actual IP address as well, all to no avail.
Thanks |
| |
July 15th, 2002, 01:08 PM
|
#2 (permalink)
| | Member
Join Date: Oct 2001 Location: Palatine, IL
Posts: 375
|
What's in the Apache log file when you start the service up?
Make sure Apache is actually trying to use the 127.0.0.1 IP address.. |
| |
July 15th, 2002, 01:40 PM
|
#3 (permalink)
| | Real gangstas sip on Yacc
Join Date: Oct 2001 Location: Suckas-ville
Posts: 4,549
|
1) Is the server running? (Yes I know, a stupid but necessary question)
2) Is it on port 80? (Another one)
3) Like was mentioned above, anything showing in the logs?
4) Is there a default page there for it to pull up? (Should be, APACHE usually supplies one)
If the logs have nothing then somethig is wrong with your configuration of either port, or getting the server up and running.
Not sure if this would affect it, but are you running a firewall?
Jkrohn
__________________
Signatures blow hard
If your signature contains an ad of any kind, congratulations, you're on my ignore list.
|
| |
July 15th, 2002, 02:56 PM
|
#4 (permalink)
| | Member
Join Date: Nov 2001 Location: Bloomington IN
Posts: 219
|
Got it working. Thanks for the tips. Probably more questions later! |
| |
July 15th, 2002, 07:31 PM
|
#5 (permalink)
| | Member
Join Date: Nov 2001 Location: Bloomington IN
Posts: 219
|
Okay, I can now see normal HTML files fine, but I am trying to install/configure PERL as well, so that I can test come cgi scripts.
I put test.pl in my cgi-bin, and I am getting a 500 error when trying to view it.
Here is the test.pl file:
#!/usr/local/Perl/bin/perl
use CGI;
$query = new CGI;
print $query->header;
print "<html><head><title>A CGI test</title></head>\n";
print "<body>The test was succesful.</body></html>";
I have Apache installed in its own folder on my 'E' drive, and Perl is installed in its own folder on the 'E' drive as well. Here is the error message from the log:
[error] [client 127.0.0.1] (22503)The system cannot find the path specified. : couldn't spawn child process: E:/Apache/Apache2/cgi-bin/test.pl
Probably an easy fix, but this is all new to me.
Thanks! Figured it out; the path to Perl was incorrect.
Last edited by tenor_david : July 15th, 2002 at 08:18 PM.
|
| |
July 30th, 2002, 06:51 PM
|
#6 (permalink)
| | Junior Member
Join Date: Jul 2002
Posts: 1
|
i had the same problem got it soted now |
| |
August 23rd, 2002, 04:54 PM
|
#7 (permalink)
| | is 4 f00t secks
Join Date: Aug 2002 Location: Da Burgh
Posts: 4,509
| configuring the cgi scripts
since you are on a win32 box, you need to change the default bash command to perl.exe. most people recommend installing perl into the directory c:/usr. so instead of !#/usr/bin/perl.exe, you need to change all your scripts to say c:/usr/bin/perl.exe |
| |
August 25th, 2002, 10:57 PM
|
#8 (permalink)
| | Member
Join Date: Oct 2001 Location: Palatine, IL
Posts: 375
| Re: configuring the cgi scripts Quote: Originally posted by sixf00t4 since you are on a win32 box, you need to change the default bash command to perl.exe. most people recommend installing perl into the directory c:/usr. so instead of !#/usr/bin/perl.exe, you need to change all your scripts to say c:/usr/bin/perl.exe |
Actually, Windows does not read that line, and it can be safely removed (Or ignored).
Linux/BSD/etc use it to locate the interpreter, and it serves no purpose under Windows. |
| |
September 7th, 2002, 12:40 PM
|
#9 (permalink)
| | is 4 f00t secks
Join Date: Aug 2002 Location: Da Burgh
Posts: 4,509
|
when i run my perl scripts without it it doesnt work. that is what i was told. maybe i have a messed up system then  |
| |
September 7th, 2002, 01:00 PM
|
#10 (permalink)
| | Member
Join Date: Oct 2001 Location: Palatine, IL
Posts: 375
|
That would be seriously messed up.. =]
If you are running it through IIS, you set it though the Site Properties->Home Directory->Configuration->App Mapping.
If you are setting it up for the system itself, you can set it in Folder Options->File Types. |
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | |
Posting Rules
| You may post new threads You may post replies You may not post attachments You may not edit your posts HTML code is Off | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |