Help setting up apache

This is a discussion on Help setting up apache within the Apache Web Server forums, part of the Web Server and Related Forums category; I am trying to setup my pc which has windows vista on it, with apache. First I got the error ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-29-2007
jeffhg58
 
Posts: n/a
Default Help setting up apache

I am trying to setup my pc which has windows vista on it, with apache.


First I got the error make_sock: could not bind to address 0.0.0.0:80.
I then changed
the port to 8080 and was able to get the apache page and http://localhost.

But, after modified the httpd.config by changing the document root for
my local website.
I keep getting the 404 error. When I checked the logs it is still
expecting the document root
to be in the default directory. Here is the error message

File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/
mysite

The interesting thing is at work I use the same config file but it has
windows xp and works like a charm.

I have been struggling with this for several days, any help would
greatly be appreciated.

Thanks,
Jeff

  #2 (permalink)  
Old 04-29-2007
shimmyshack
 
Posts: n/a
Default Re: Help setting up apache

On Apr 29, 3:10 am, jeffhg58 <jeffh...@comcast.net> wrote:
> I am trying to setup my pc which has windows vista on it, with apache.
>
> First I got the error make_sock: could not bind to address 0.0.0.0:80.
> I then changed
> the port to 8080 and was able to get the apache page andhttp://localhost.
>
> But, after modified the httpd.config by changing the document root for
> my local website.
> I keep getting the 404 error. When I checked the logs it is still
> expecting the document root
> to be in the default directory. Here is the error message
>
> File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/
> mysite
>
> The interesting thing is at work I use the same config file but it has
> windows xp and works like a charm.
>
> I have been struggling with this for several days, any help would
> greatly be appreciated.
>
> Thanks,
> Jeff


there are probably two places in the httpd.conf file (not config)
where you need to change the path.
if you use vhosts that will be different.
did you restart apache after the change?
on a separate issue, when you say "i changed the port to 8080" do you
mean set apache to listen on 8080 rather than 80, do you need the
process that is already binding to port 80 (probably iis) to be there,
if not, kill it, and set apache to
Listen *:80
i'm not totally convinced that you are visiting the right server from
your post
http://localhost:8080 rather than http://localhost
which would mean your errors would be coming from the wrong server, no
amount of config twwaking will help there!

  #3 (permalink)  
Old 04-29-2007
jeffhg58
 
Posts: n/a
Default Re: Help setting up apache

On Apr 29, 6:11 am, shimmyshack <matt.fa...@gmail.com> wrote:
> On Apr 29, 3:10 am, jeffhg58 <jeffh...@comcast.net> wrote:
>
>
>
>
>
> > I am trying to setup my pc which has windows vista on it, with apache.

>
> > First I got the error make_sock: could not bind to address 0.0.0.0:80.
> > I then changed
> > the port to 8080 and was able to get the apache page andhttp://localhost.

>
> > But, after modified the httpd.config by changing the document root for
> > my local website.
> > I keep getting the 404 error. When I checked the logs it is still
> > expecting the document root
> > to be in the default directory. Here is the error message

>
> > File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/
> > mysite

>
> > The interesting thing is at work I use the same config file but it has
> > windows xp and works like a charm.

>
> > I have been struggling with this for several days, any help would
> > greatly be appreciated.

>
> > Thanks,
> > Jeff

>
> there are probably two places in the httpd.conf file (not config)
> where you need to change the path.
> if you use vhosts that will be different.
> did you restart apache after the change?
> on a separate issue, when you say "i changed the port to 8080" do you
> mean set apache to listen on 8080 rather than 80, do you need the
> process that is already binding to port 80 (probably iis) to be there,
> if not, kill it, and set apache to
> Listen *:80
> i'm not totally convinced that you are visiting the right server from
> your posthttp://localhost:8080rather thanhttp://localhost
> which would mean your errors would be coming from the wrong server, no
> amount of config twwaking will help there!- Hide quoted text -
>
> - Show quoted text -


I think I know what the problem is but not sure how to fix it. Even
though on windows vista I installed apache as administrator for
command line. I was manually editing the httpd.conf file and it looked
my changes weren't taking place. So, I went directly to configure the
httpd.conf file from the apache menu and sure enough my changes show
the default and I when I try and change the file and save it I do not
have permission to update the file. Even though, I go into the
directory via windows explorer and change the attributes to not make
it read only. I still get the same permissions file error. It looks
like at least I have an idea on how to proceeed. If you have any
suggestions, let me know

Thanks,
Jeff

  #4 (permalink)  
Old 04-30-2007
wallingford
 
Posts: n/a
Default Re: Help setting up apache

Sorry if this is totally obvious : but you do have to restart apache after
editing httpd.conf

"jeffhg58" <jeffhg58@comcast.net> wrote in message
news:1177812618.355469.149910@y80g2000hsf.googlegr oups.com...
>I am trying to setup my pc which has windows vista on it, with apache.
>
>
> First I got the error make_sock: could not bind to address 0.0.0.0:80.
> I then changed
> the port to 8080 and was able to get the apache page and http://localhost.
>
> But, after modified the httpd.config by changing the document root for
> my local website.
> I keep getting the 404 error. When I checked the logs it is still
> expecting the document root
> to be in the default directory. Here is the error message
>
> File does not exist: C:/Program Files/Apache Group/Apache2/htdocs/
> mysite
>
> The interesting thing is at work I use the same config file but it has
> windows xp and works like a charm.
>
> I have been struggling with this for several days, any help would
> greatly be appreciated.
>
> Thanks,
> Jeff
>



  #5 (permalink)  
Old 04-30-2007
Purl Gurl
 
Posts: n/a
Default Re: Help setting up apache

wallingford wrote:

(snipped a lot)

> Sorry if this is totally obvious : but you do have to restart apache after
> editing httpd.conf


Yes, you must restart Apache to load your new httpd.conf file.

Purl Gurl
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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



All times are GMT +1. The time now is 07:44 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0