Forum Moderators: phranque

Message Too Old, No Replies

Newbie needs help: XP and Apache

and the lack of chemistry thereof...

         

SharkBits

8:00 pm on Dec 14, 2003 (gmt 0)

10+ Year Member



I've been stuck with this problem for two days now... grr...

I'm trying to run Apache locally but haven't been able to do so. When I try to access http://localhost I do not get any error messages on my browser (IE and Netscape), instead it seems like the browser just hanged while the progress bar is halfway done. I checked the error log and the server seems to be running fine.

Here are the settings I have in my httpd.conf file:
ServerName localhost:80
Listen 80

I have no other web servers running, and I don't have firewall either. I have McCafee antivirus running but I'm not aware of it being a problem since I was able to successfully run IIS.

Any help you can give would be great.

[edited by: jdMorgan at 9:00 pm (utc) on Dec. 14, 2003]
[edit reason] De-linked [/edit]

jdMorgan

8:59 pm on Dec 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SharkBits,

Welcome to WebmasterWorld [webmasterworld.com]!

What happens if you request http://localhost/ instead?

Jim

mipapage

9:15 pm on Dec 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SharkBits,

Fwiw - I run that setup, and rather than localhost:80 I just have localhost.

I also have the following:

DocumentRoot "D:\server" 
<Directory "D:/server">

For virtual hosts, I have the following setup:

NameVirtualHost * 
<VirtualHost 127.0.0.2>
ServerName www.mysite.com
DocumentRoot "D:/server/mysite/site/"
</VirtualHost>

(all that code in it's proper place in the httpd.conf)

And my hosts file:


127.0.0.2 www.mysite.com

Not yer standard naming convention (sorry if that hurts the eyes jdmorgan!) but I ams a rookie!

HTH - mipapage

DanA

9:18 pm on Dec 14, 2003 (gmt 0)

10+ Year Member



On my system,
Listen is not set
Localhost is set that way :
ServerName localhost
In order to have "http://localhost" calling my local site I set
DocumentRoot "c:/myfolder"
<Directory "c:/myfolder">

You can also set the information in the alias part, but your robots.txt won't be read.

As for MSIE, check that you do not work offline.
Netscape or Mozilla do not switch offline automatically.

Hope this will help

SharkBits

1:42 am on Dec 15, 2003 (gmt 0)

10+ Year Member



Hey folks,

I'm actually getting an error message now when I try to access [localhost...] (same error as well when it's [localhost...] ).

Here's the error message:

500 Server error -

Server Error
The following error occurred:
Bad URL

--------------------------------------------------------------------------------
Please contact the administrator.

Oddly enough, I haven't change any of the settings in my httpd.conf file. Once again, I have the following setting:

ServerName localhost:80
Listen 80
DocumentRoot "E:/Paul/Apache2/htdocs"
<Directory "E:/Paul/Apache2/htdocs">

Any help is greatly appreciated.

Regards,
Paul

operafan

2:40 am on Dec 15, 2003 (gmt 0)

10+ Year Member



Try removing the port & listen - just comment it in the conf file.
But can you access it by 127.0.0.1?

SharkBits

3:01 am on Dec 15, 2003 (gmt 0)

10+ Year Member



Sorry I forgot to mention that I'm running Apache 2.0.48.. I need the Listen directive otherwise I'll get an error message. Also the Port directive's gone now too...

And no, even 127.0.0.1 doesn't work. I get the same error message. Is that bizzare or what?

mipapage

6:17 am on Dec 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have look at the slashes for 'document root' in my post. Maybe that will help?

Don't forget to check your error&access logs... they can help!

Smoove3

10:34 am on Jan 14, 2004 (gmt 0)

10+ Year Member



take the localhost:80 and change it to just localhost...

If you can access [127.0.0.1:80...] then that is your problem

I run XP Pro and apache with no such problems, I'm pretty sure it shouldn't read :80 unless you are running on another port such as localhost:2222