How do I add an avatar to the public avatar library?
curious problem
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > Apache HTTP Server > curious problem 22 August 2002 00:02:27

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

curious problem

Dan Stephens 22 August 2002 00:02:27
 Ok,
I originally thought that apache was running on my server (running RH 7.2), and my only problem was that it was not displaying my webpage (instead a apache config page came up). However upon some time spent with my server I realized that apache isn't on port 80 at all. In my /var/log/httpd/erro­r_log I saw

[Date] (98) Address already in use: make_sock: could not bind to port 80

Also, when i ran 'ps -aux' i realized (i don't know why i didn't see it before) the command /usr/local/apache was bound to the user nobody. Now, i don't know much, but it seems to me that httpd cannot get through to port 80 because something else is that shouldn't be.
I started apachectl and that was what made port 80 listen at all, however I didn't realize what was listening wasn't apache. If I make apachectl compatable with chkconfig, would that do it?
If anyone has any idea of what could be wrong/how to fix it, please let me know
Thanks for the help, I'm a mechanical engineering major who is interning at a engineering firm this summer. However, instead of engineering I was assigned configuring their server for web/email. So please be patient with me, I've NEVER done this before, and I'm figuring it out as fast as I can!
-Dan
Add comment
Jacob Coby 21 August 2002 19:17:52 permanent link ]
 
with my server I realized that apache isn't on port 80 at all. In my
/var/log/httpd/erro­r_log I saw

[Date] (98) Address already in use: make_sock: could not bind to port 80<<

Something is already listening on port 80. You need to figure out what.
Sounds like apache or another webserver is already running. You need to
stop it. Remember, changes to apache's config don't take effect until you
restart the server.
Also, when i ran 'ps -aux' i realized (i don't know why i didn't see it
before) the command /usr/local/apache was bound to the user nobody. Now, i
don't know much, but it seems to me that httpd cannot get through to port 80
because something else is that shouldn't be. <<

apache runs as nobody for security reasons. If someone manages to
comprimize apache, they only get access to whatever nobody has access to,
which is usually little writeable, and a few things readable (your
webserver). If it were to run as, say root (or any other privledged user),
if someone were to comprimize your system, they would have total control of
it.
I started apachectl and that was what made port 80 listen at all,
however I didn't realize what was listening wasn't apache. If I make
apachectl compatable with chkconfig, would that do it?
If anyone has any idea of what could be wrong/how to fix it, please let
me know <<

run `ps -ef | grep httpd`, what does it show for the dir to httpd? If its
not what you expect, you may have two seperate instances of apache running.
run: `locate bin/httpd` and see how many results it turns up.

For reference, ps shows:
[..snip..]
nobody 8881 22591 1 12:11 ? 00:00:00
/usr/local/apache/b­in/httpd -DSS
nobody 8882 22591 1 12:11 ? 00:00:00
/usr/local/apache/b­in/httpd -DSS
nobody 8883 22591 1 12:11 ? 00:00:00
/usr/local/apache/b­in/httpd -DSS
jcoby 8901 4519 0 12:12 pts/1 00:00:00 grep httpd

and locate shows:
$ locate bin/httpd
/usr/local/apache/b­in/httpd

The previous sysadmin may have compiled a newer version of apache. And that
would explain why your config changes don't take effect, and why your apache
can't bind to port 80.
Thanks for the help, I'm a mechanical engineering major who is
interning at a engineering firm this summer. However, instead of engineering
I was assigned configuring their server for web/email. So please be patient
with me, I've NEVER done this before, and I'm figuring it out as fast as I
can!<<

Just wait until you get into configuring sendmail or postfix (my preferred
MTA). I sure hope you have some sort of graphical tool :)­

-Jacob
http://www.listingb­ook.com


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Dan Stephens 21 August 2002 22:18:44 permanent link ]
 Yes,
There are two different httpd executable files one is about 300K the
other is 1.4 MB. What should I do? When I run "ps -ef | grep httpd' it shows
the directory of one of these (the larger one) every time. However, in the
example that was given by Jacob the directory of the executable was
followed by -DSS whereas in my instance it is followed by -k.
I definitely knew I was running two versions of httpd by running
'locate bin/httpd' as per sugestion: it gave me back two different
directories.
When i ran 'netstat -pan | grep LISTEN I did see that port 80 was
listening. The text on the right side of the screen was 26954/httpd, I'm
assuming that means that httpd is the program listening to port 80
What would be the best way for me to fix this? Does the fact that httpd
is the program listening to port 80 and yet the page not apear mean that the
httpd's are in competition with eachother? Or does it mean that is the
larger one (the one found when 'ps -ef | grep httpd' was run) is just wrong
and need to be taken out?
Sigh, thanks a lot guys,
-Dan
PS- I have configured sendmail, it wasn't pretty, but in the end I spanked
it!



-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jacob Coby 21 August 2002 22:32:51 permanent link ]
 
Yes,> There are two different httpd executable files one is about 300K the> other is 1.4 MB. What should I do? When I run "ps -ef | grep httpd' it
shows> the directory of one of these (the larger one) every time. However, in the> example that was given by Jacob the directory of the executable was> followed by -DSS whereas in my instance it is followed by -k.

The -DSS is really -DSSL and means that I have SSL enabled :)­ The -k, I
dunno about. Maybe you have one of the 2.0 servers running?
I definitely knew I was running two versions of httpd by running> 'locate bin/httpd' as per sugestion: it gave me back two different> directories.

Ok, well, now you have two choices: stop the other server and work with the
one you have been, or abandon the one you've been configuring in favor of
the other one. My suggestion: figure out which is newer and use that one.
This can be done by passing the -v arg to the individual httpd, or, with a
little bit of cmd line magic:

locate bin/httpd | while read a; do echo $a; $a -v | grep -i "version";
done;

and you should get something similar to:

/usr/local/apache/b­in/httpd
Server version: Apache/1.3.26 (Unix)
When i ran 'netstat -pan | grep LISTEN I did see that port 80 was> listening. The text on the right side of the screen was 26954/httpd, I'm> assuming that means that httpd is the program listening to port 80> What would be the best way for me to fix this? Does the fact that
httpd> is the program listening to port 80 and yet the page not apear mean that
httpd's are in competition with eachother? Or does it mean that is the> larger one (the one found when 'ps -ef | grep httpd' was run) is just
wrong> and need to be taken out?

You can't have two daemons listening on the same port. You need to either
kill the other httpd server, or work with it. Until you stop the other
server, the one you are working with now will _never_ run on port 80.

-Jacob
http://www.listingb­ook.com


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Dan Stephens 21 August 2002 23:19:36 permanent link ]
 Yes, I have tow versions, the larger one, the one that I think is running,
is version 2.0.4. I think I'd rather keep that one, however then I try to
remove the other one it tells me that there are some dependencies (several
webserver executables it looks like). Can I just move the other httpd
executable to the trash and empty it? Thanks!
-Dan
----- Original Message -----
From: "Jacob Coby" <jcoby@listingbook.­com>
To: <users@httpd.apache­.org>
Sent: Wednesday, August 21, 2002 3:32 PM
Subject: Re: curious problem

Yes,> > There are two different httpd executable files one is about 300K the> > other is 1.4 MB. What should I do? When I run "ps -ef | grep httpd' it> shows> > the directory of one of these (the larger one) every time. However, in
example that was given by Jacob the directory of the executable was> > followed by -DSS whereas in my instance it is followed by -k.>
The -DSS is really -DSSL and means that I have SSL enabled :)­ The -k, I> dunno about. Maybe you have one of the 2.0 servers running?>
I definitely knew I was running two versions of httpd by running> > 'locate bin/httpd' as per sugestion: it gave me back two different> > directories.>
Ok, well, now you have two choices: stop the other server and work with
one you have been, or abandon the one you've been configuring in favor of> the other one. My suggestion: figure out which is newer and use that one.> This can be done by passing the -v arg to the individual httpd, or, with a> little bit of cmd line magic:>
locate bin/httpd | while read a; do echo $a; $a -v | grep -i "version";> done;>
and you should get something similar to:>
/usr/local/apache/b­in/httpd> Server version: Apache/1.3.26 (Unix)>
When i ran 'netstat -pan | grep LISTEN I did see that port 80 was> > listening. The text on the right side of the screen was 26954/httpd, I'm> > assuming that means that httpd is the program listening to port 80> > What would be the best way for me to fix this? Does the fact that> httpd> > is the program listening to port 80 and yet the page not apear mean that> the> > httpd's are in competition with eachother? Or does it mean that is the> > larger one (the one found when 'ps -ef | grep httpd' was run) is just> wrong> > and need to be taken out?>
You can't have two daemons listening on the same port. You need to either> kill the other httpd server, or work with it. Until you stop the other> server, the one you are working with now will _never_ run on port 80.>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jacob Coby 21 August 2002 23:26:41 permanent link ]
 
Yes, I have tow versions, the larger one, the one that I think is running,> is version 2.0.4. I think I'd rather keep that one, however then I try to> remove the other one it tells me that there are some dependencies (several> webserver executables it looks like). Can I just move the other httpd> executable to the trash and empty it? Thanks!

Just ignore it, and start modifying the config file for the other version..
Having it sit there won't hurt anything. If you really want to get rid of
it, you'll have to (well, should) get rid of everything it depends on.

-Jacob
http://www.listingb­ook.com


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Dan Stephens 21 August 2002 23:51:09 permanent link ]
 How would I go about modifying the config file for the more recent version?
I don't know how to make the httpd.conf look to the more recent exe file.
-Dan
----- Original Message -----
From: "Jacob Coby" <jcoby@listingbook.­com>
To: <users@httpd.apache­.org>
Sent: Wednesday, August 21, 2002 4:26 PM
Subject: Re: curious problem

Yes, I have tow versions, the larger one, the one that I think is
running,> > is version 2.0.4. I think I'd rather keep that one, however then I try
remove the other one it tells me that there are some dependencies
(several> > webserver executables it looks like). Can I just move the other httpd> > executable to the trash and empty it? Thanks!>
Just ignore it, and start modifying the config file for the other
version..> Having it sit there won't hurt anything. If you really want to get rid of> it, you'll have to (well, should) get rid of everything it depends on.>
-------------------­--------------------­--------------------­----------> The official User-To-User support forum of the Apache HTTP Server Project.> See <URL:http://httpd.a­pache.org/userslist.­html> for more info.> To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org> " from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg> For additional commands, e-mail: users-help@httpd.ap­ache.org>

-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
Jacob Coby 22 August 2002 00:02:27 permanent link ]
 
How would I go about modifying the config file for the more recent
version?> I don't know how to make the httpd.conf look to the more recent exe file.

It will be just like working with the 1.3 branch, except it will be in a
different path. Ie, instead of editing /usr/local/apache/c­onf/httpd.conf,
you may be editing /usr/conf/httpd.con­f.

You can always do a `locate httpd.conf` apachectl will be in the same dir
as the httpd binary, and you'll want to use it.

-Jacob
http://www.listingb­ook.com


-------------------­--------------------­--------------------­----------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.a­pache.org/userslist.­html> for more info.
To unsubscribe, e-mail: users-unsubscribe@h­ttpd.apache.org
" from the digest: users-digest-unsubs­cribe@httpd.apache.o­rg
For additional commands, e-mail: users-help@httpd.ap­ache.org


Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > Apache HTTP Server > curious problem 22 August 2002 00:02:27

see also:
[JBoss Seam] - Tests fails with MySQL +…
[EJB 3.0] - Wrong query generated
[JBoss Portal] - Re: Portalet…
пройди тесты:
see also:
Hi!
HI!
Hi Help

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .