home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 2927
Discussions: 188,379, Posts: 2,243,456, Members: 232,607
Old July 15th, 2002, 11:18 AM   Digg it!   #1 (permalink)
Member
 
tenor_david's Avatar
 
Join Date: Nov 2001
Location: Bloomington IN
Posts: 219
Apache Newbie Questions

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

tenor_david is offline   Reply With Quote
Old July 15th, 2002, 01:08 PM     #2 (permalink)
Member
 
gothic's Avatar
 
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..

gothic is offline   Reply With Quote
Old July 15th, 2002, 01:40 PM     #3 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
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.

jkrohn is offline   Reply With Quote
Old July 15th, 2002, 02:56 PM     #4 (permalink)
Member
 
tenor_david's Avatar
 
Join Date: Nov 2001
Location: Bloomington IN
Posts: 219
Got it working. Thanks for the tips. Probably more questions later!
tenor_david is offline   Reply With Quote
Old July 15th, 2002, 07:31 PM     #5 (permalink)
Member
 
tenor_david's Avatar
 
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.
tenor_david is offline   Reply With Quote
Old 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
andybigwood00 is offline   Reply With Quote
Old August 23rd, 2002, 04:54 PM     #7 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,509
Blog Entries: 3
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
__________________
Music (4/15/08) - Video (4/15/08) - blog - Legend of Six RPG
sixf00t4 is offline   Reply With Quote
Old August 25th, 2002, 10:57 PM     #8 (permalink)
Member
 
gothic's Avatar
 
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.
gothic is offline   Reply With Quote
Old September 7th, 2002, 12:40 PM     #9 (permalink)
is 4 f00t secks
 
sixf00t4's Avatar
 
Join Date: Aug 2002
Location: Da Burgh
Posts: 4,509
Blog Entries: 3
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
sixf00t4 is offline   Reply With Quote
Old September 7th, 2002, 01:00 PM     #10 (permalink)
Member
 
gothic's Avatar
 
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.
gothic is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2883)
The United States Debt (20)
Looks like Burris will get his Sena.. (8)
I think I just killed my computer w.. (24)
Upgrading RAM (5)
Folderchat Weekday thread (439)
Antec 300 bulk purchase? (11)
Worth the upgrade?? (14)
Titan quest and Immortal Throne, an.. (17)
Recent Discussions
Help with an Ati Radeon HD 4850.. (24)
New Build ( Finally ) (1)
dual monitors wont boot (0)
Folderchat Weekday thread (439)
MSN Hotmail Down??? (7)
Laptop waking up itself (0)
CPU wont boot (3)
Best digital camera for under 2.. (13)
Building first computer, will t.. (2)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 08:28 PM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28