Go Back   Garayed.com > Apache Configurations
Reply
 
LinkBack Thread Tools Search this Thread Display Modes

listen directive problem
  #1 (permalink)  
Old 07-02-2009, 10:31 PM
uv
 
Posts: n/a
Default listen directive problem

Hi,

I'm trying to configure apache 2.2.11 on my xp sp3 home computer.
During install I chose "localhost" for my network domain and server
name. When I go to my browser and type in localhost in the address
bar, I get an error message. I have tried many different listen
commands, as follows:
listen 80
listen 127.0.0.1:80
listen 8080
listen *:80

I have also read the available documents,help files,etc. and I can't
seem to get it to work properly. Please help,

uv
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #2 (permalink)  
Old 07-02-2009, 11:05 PM
HansH
 
Posts: n/a
Default Re: listen directive problem

"uv" <bluebody444@gmail.com> schreef in bericht
news:a249de26-6e74-40b1-a572-13acaff59ce6@o18g2000pra.googlegroups.com...
> Hi,
>
> I'm trying to configure apache 2.2.11 on my xp sp3 home computer.
> During install I chose "localhost" for my network domain and server
> name. When I go to my browser and type in localhost in the address
> bar, I get an error message. ...

Browser to localhost only work when browser and apache resides
on the same machine.

> ... I have tried many different listen
> commands, as follows:
> listen 80
> listen 127.0.0.1:80
> listen 8080
> listen *:80
>

listen 80 is a shorthand for listen *:80
overlapping listen 127.0.0.1:80
http://httpd.apache.org/docs/2.2/mod...on.html#listen

In general 'listen 80' will do.
On windows it may conflict with IIS

Hans


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #3 (permalink)  
Old 07-03-2009, 03:50 AM
uv
 
Posts: n/a
Default Re: listen directive problem

On Jul 2, 4:05*pm, "HansH" <ha...@invalid.invalid> wrote:
> "uv" <bluebody...@gmail.com> schreef in berichtnews:a249de26-6e74-40b1-a572-13acaff59ce6@o18g2000pra.googlegroups.com...> Hi,
>
> > I'm trying to configure apache 2.2.11 on my xp sp3 home computer.
> > During install I chose "localhost" for my network domain and server
> > name. When I go to my browser and type in localhost in the address
> > bar, I get an error message. ...

>
> Browser to localhost only work when browser and apache resides
> on the same machine.
>
> > ... I have tried many different listen
> > commands, as follows:
> > listen 80
> > listen 127.0.0.1:80
> > listen 8080
> > listen *:80

>
> listen 80 is a shorthand for listen *:80
> overlapping listen 127.0.0.1:80http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen
>
> In general 'listen 80' will do.
> On windows it may conflict with IIS
>
> Hans


i have apache and firefox on the same machine. and i've tried listen
80,as i said before, and it still does not work. do you have any other
suggestions? thanks,

uv
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #4 (permalink)  
Old 07-03-2009, 07:07 AM
HansH
 
Posts: n/a
Default Re: listen directive problem

"uv" <bluebody444@gmail.com> schreef in bericht
news:545dd1a8-eb2a-43b4-808c-1c6f188d6d3c@o9g2000prg.googlegroups.com...
On Jul 2, 4:05 pm, "HansH" <ha...@invalid.invalid> wrote:
>> "uv" <bluebody...@gmail.com> schreef in
>> berichtnews:a249de26-6e74-40b1-a572-13acaff59ce6@o18g2000pra.googlegroups.com...>
>> > I'm trying to configure apache 2.2.11 on my xp sp3 home computer.
>> > During install I chose "localhost" for my network domain and server
>> > name. When I go to my browser and type in localhost in the address
>> > bar, I get an error message. ...

>>
>> Browser to localhost only work when browser and apache resides
>> on the same machine.
>>
>> > ... I have tried many different listen
>> > commands, as follows:
>> > listen 80
>> > listen 127.0.0.1:80
>> > listen 8080
>> > listen *:80

>>
>> listen 80 is a shorthand for listen *:80
>> overlapping listen
>> 127.0.0.1:80http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen
>>
>> In general 'listen 80' will do.
>> On windows it may conflict with IIS
>>

> i have apache and firefox on the same machine. and i've tried listen
> 80,as i said before, and it still does not work. do you have any other
> suggestions? thanks,


Start the apache binary at a CMD prompt with -X option.
It will write its startup problem where you can read them: on screen.

HansH


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #5 (permalink)  
Old 07-03-2009, 07:16 AM
Álvaro G. Vicario
 
Posts: n/a
Default Re: listen directive problem

uv escribió:
> I'm trying to configure apache 2.2.11 on my xp sp3 home computer.
> During install I chose "localhost" for my network domain and server
> name. When I go to my browser and type in localhost in the address
> bar, I get an error message.


Perhaps the error message says something about the problem...


> I have tried many different listen
> commands, as follows:
> listen 80
> listen 127.0.0.1:80
> listen 8080
> listen *:80


What port do you want to use?




--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #6 (permalink)  
Old 07-03-2009, 09:24 PM
uv
 
Posts: n/a
Default Re: listen directive problem

On Jul 3, 12:16*am, "Álvaro G. Vicario"
<alvaro.NOSPAMTH...@demogracia.com> wrote:
> uv escribió:
>
> > I'm trying to configure apache 2.2.11 on my xp sp3 home computer.
> > During install I chose "localhost" for my network domain and server
> > name. When I go to my browser and type in localhost in the address
> > bar, I get an error message.

>
> Perhaps the error message says something about the problem...
>
> > I have tried many different listen
> > commands, as follows:
> > listen 80
> > listen 127.0.0.1:80
> > listen 8080
> > listen *:80

>
> What port do you want to use?
>
> --
> --http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
> -- Mi sitio sobre programación web:http://borrame.com
> -- Mi web de humor satinado:http://www.demogracia.com
> --


Thanks for the help. When i try and run apache, I get the following
errors:
1. No listening sockets available
2. Unable to open logs

What port do you want to use? I don't understand ports, that is why I
am posting questions here. How do I determine which port to use?

Thanks again,

uv

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #7 (permalink)  
Old 07-04-2009, 06:43 PM
HansH
 
Posts: n/a
Default Re: listen directive problem

"uv" <bluebody444@gmail.com> schreef in bericht
news:ec5d856c-9e97-4f7e-807b-96eef3fa8168@v23g2000pro.googlegroups.com...
> Thanks for the help. When i try and run apache, I get the following
> errors:
> 1. No listening sockets available
>
> What port do you want to use? I don't understand ports, that is why I
> am posting questions here.

Ports are just extentions on an IP adresses:
the computer has an IP adress, a program can use a port at that adddres:
a web server commonly operaties at port 80, a ftp server at port 21 and 20,
mail forwarders -aka SMTP services- use 25, etc.

> How do I determine which port to use?

On windows at the CMD prompt run 'netstat -nba'
find the line holding :80 in the second column
next line is telling the name of the program using it

Right click at This_computer and follow Manage => Services => Services
try to locate the program name found with netstat at the common tab of a
services properties sheet as the program .
Stop this service and change its startup mode to disabled.

> 2. Unable to open logs

Apache will report the path it cannot follow, create the folder tree and try
again or change the configuration.

Where did you download your Apache-for-Windows??

HansH


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #8 (permalink)  
Old 07-04-2009, 08:13 PM
uv
 
Posts: n/a
Default Re: listen directive problem

On Jul 4, 11:43*am, "HansH" <ha...@invalid.invalid> wrote:
> "uv" <bluebody...@gmail.com> schreef in berichtnews:ec5d856c-9e97-4f7e-807b-96eef3fa8168@v23g2000pro.googlegroups.com...> Thanks for the help. When i try and run apache, I get the following
> > errors:
> > 1. No listening sockets available

>
> > What port do you want to use? I don't understand ports, that is why I
> > am posting questions here.

>
> Ports are just extentions on an IP adresses:
> the computer has an IP adress, a program can use a port at that adddres:
> a web server commonly operaties at port 80, a ftp server at port 21 and 20,
> mail forwarders -aka SMTP services- use 25, etc.
>
> > How do I determine which port to use?

>
> On windows at the CMD prompt run 'netstat -nba'
> find the line holding :80 in the second column
> next line is telling the name of the program using it
>
> Right click at This_computer and follow Manage => Services => Services
> try to locate the program name found with netstat at the common tab of a
> services properties sheet as the program .
> Stop this service and change its startup mode to disabled.
>
> > 2. Unable to open logs

>
> Apache will report the path it cannot follow, create the folder tree and try
> again or change the configuration.
>
> Where did you download your Apache-for-Windows??
>
> HansH


Thanks! I tried running netstat-nba and it shows some network(?) data
and then automatically closes before I can read any of it. What should
I do? I don't remember where I downloaded apache from. Thanks again,

uv
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: listen directive problem
  #9 (permalink)  
Old 07-04-2009, 11:55 PM
HansH
 
Posts: n/a
Default Re: listen directive problem

"uv" <bluebody444@gmail.com> schreef in bericht
news:d7673b40-5132-4ce6-bee0-3451d292e75c@i8g2000pro.googlegroups.com...
On Jul 4, 11:43 am, "HansH" <ha...@invalid.invalid> wrote:
> Thanks! I tried running netstat -nba and it shows some network(?) data
> and then automatically closes before I can read any of it. What should
> I do?

Open an ugly black window first then type 'netstat -nba'
or retry with 'cmd /k "netstat -nba"'

> I don't remember where I downloaded apache from.

Uninstall and restart at http://www.apachefriends.org/en/xampp-windows.html

HansH



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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



All times are GMT. The time now is 12:23 PM.


Powered by vBulletin® Version 3.5.8
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
| Home | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |