Web Servers on Windows - Problems installing Apache on XP

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Windows > June 2005 > Problems installing Apache on XP





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems installing Apache on XP
adamomitcheney@kiwis.co.uk

2005-05-23, 5:52 pm

Apache newbie here,

Trying to install apache on my XP (service pack 2) machine. This will
only be used through localhost to test web pages and PHP. I installed
the apache_2.0.54-win32-x86-no_ssl.msi package, specifying localhost
for server name, installed locally (not as a service) running off port
8080.

Started the apache service up with:
"C:\Program Files\Apache Group\Apache2\bin\Apache.exe" -k install
"C:\Program Files\Apache Group\Apache2\bin\Apache.exe" -k start

Service appears to be running, apache monitor shows everything working
as expected - so why am I unable to get the default webpage up? When I
point a browser at http://localhost:8080 it just sits there, 'Waiting
for localhost...' showing in the status bar.

I'm using the default httpd.conf file. I have localhost defined in the
hosts file, and pinging it shows that it resolves to 127.0.0.1. Using
netstat -ano shows:
Active Connections

Proto Local Address Foreign Address State
PID
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
1216
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING
4
TCP 0.0.0.0:5101 0.0.0.0:0 LISTENING
1684
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING
3612
TCP 127.0.0.1:1030 0.0.0.0:0 LISTENING
2424
TCP 127.0.0.1:1066 127.0.0.1:1067 ESTABLISHED
3880
TCP 127.0.0.1:1067 127.0.0.1:1066 ESTABLISHED
3880
TCP 127.0.0.1:1081 127.0.0.1:8080 ESTABLISHED
3880
TCP 127.0.0.1:1082 127.0.0.1:31595 ESTABLISHED
3880
TCP 127.0.0.1:1085 127.0.0.1:31595 ESTABLISHED
3880
TCP 127.0.0.1:6083 0.0.0.0:0 LISTENING
1864
TCP 127.0.0.1:8080 127.0.0.1:1081 ESTABLISHED
3328
TCP 127.0.0.1:31595 0.0.0.0:0 LISTENING
3436
TCP 127.0.0.1:31595 127.0.0.1:1071 TIME_WAIT
0
TCP 127.0.0.1:31595 127.0.0.1:1077 TIME_WAIT
0
TCP 127.0.0.1:31595 127.0.0.1:1082 ESTABLISHED
3436
TCP 127.0.0.1:31595 127.0.0.1:1085 ESTABLISHED
3436
TCP 192.168.1.101:139 0.0.0.0:0 LISTENING
4
TCP 192.168.1.101:1034 216.155.193.163:119 ESTABLISHED
1684
TCP 192.168.1.101:1065 193.38.108.223:80 CLOSE_WAIT
1268
TCP 192.168.1.101:1084 64.233.167.104:80 ESTABLISHED
3436
TCP 192.168.1.101:1087 64.233.167.104:80 ESTABLISHED
3436
UDP 0.0.0.0:445 *:*
4
UDP 0.0.0.0:500 *:*
952
UDP 0.0.0.0:1025 *:*
344
UDP 0.0.0.0:1031 *:*
1524
UDP 0.0.0.0:1042 *:*
1524
UDP 0.0.0.0:1043 *:*
1524
UDP 0.0.0.0:4500 *:*
952
UDP 127.0.0.1:123 *:*
1348
UDP 127.0.0.1:1040 *:*
1684
UDP 127.0.0.1:1900 *:*
1664
UDP 127.0.0.1:18001 *:*
3436
UDP 127.0.0.1:18002 *:*
3436
UDP 192.168.1.101:123 *:*
1348
UDP 192.168.1.101:137 *:*
4
UDP 192.168.1.101:138 *:*
4
UDP 192.168.1.101:1900 *:*
1664

Can anyone help me?

Cheers - Adam...

ScriptHam

2005-05-24, 7:05 am

Hi

If this is not what you want then ignore it but for test sites simply try an installation kit (google search recommended) for example XAMPP http://www.apachefriends.org/en/xampp.html

Install it by downloading the relevant file http://www.apachefriends.org/en/xampp-windows.html#641 and unpacking to C:\ (you might need 7Zip or similar) then run the script C:\xampp\xampp_start.exe then type http://locahost/ .

You then store your test files in C:\xampp\htdocs in the normal way.

Doing it this way it comes preconfigured and you start and stop it at will - it is not running as a service. There is much to recommend this at least as a temporary measure. You also get MySQL, php and a whole lot more.

Good Luck
ScriptHam
McNasty

2005-05-24, 3:11 pm

You do realise that -k install installs an apache service (named Apache2, you have to give the -n nameofservice to change the name) and is only used to do just that and has nothing to do with running apache. -k start will start the service named Apache2 and only Apache2 and will not work if you do not have a service installed that is named apache2. So, don't give the apache program an argument if you don't want services.

Assuming you know that, I suggest you reinstall as a service, then set the service to manual instead of automatic. I don't see why you would want it going to port 8080 or only being available to your user unless you have other accounts on your comp and you think they can figure out how to start a service manually.

If you really must have it installed the way you did it, try changing the port in the config file to 80 and just typing 'localhost' or '127.0.0.1' instead of 'http://localhost:80'. I don't see why it wouldn't work the way you already have it, but this would at least let you know you aren't calling it wrong.
adamomitcheney@kiwis.co.uk

2005-05-24, 8:47 pm

I went back to 1.3.3 and it seems to work. That, combined wth other
posts on this subject, make me think this might be to do with my
anti-virus/firewall software (even though I had disabled it). Still, it
works...

Rod

2005-06-02, 7:47 am


I have had trouble with this too.

I downloaded and installed Apache and it worked fine, all services
running and so on, but I couldn't do anything with it because it wasn't
configured properly.

SO

I configured it with all the appropriate directories, etc and restarted
the computer after which point it refused to work - no services
running. I've uninstalled and re-installed and now it (Apache 2.0) says
that Apache 2.0 isn't installed. I have no idea how to get Apache to
run any services.

BAH!

There doesn't seem to be "Apache Set-Up For Dummies" anywhere on the
web and the Apache FAQ is, frankly, extremely poor.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com