Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache - startproblem after emerge -u system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Wed Jan 15, 2003 8:21 pm    Post subject: apache - startproblem after emerge -u system Reply with quote

I did a emerge -u system (from 1.3 to 1.4) & did the etc-update as good as i could..

afterwards is did a reboot just to se that everything was correct, everything seems fine except apache.. :( cant get it working & dont know which files to check for logs..?

i put up my apache.conf
http://www.onemanarmy.net/temp/oscar/apache.conf

anyone got any help where i can get clues on how to get it working..?

TANKS!

.o
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Wed Jan 15, 2003 8:55 pm    Post subject: Reply with quote

please provide the output of the following commands:

Code:

/etc/init.d/apache start
apachectl configtest
apachectl start
tail -f /var/log/apache/error_log

_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Wed Jan 15, 2003 9:08 pm    Post subject: Reply with quote

i just cut n paste the outputs.. THANKS alot for the fast answer :)

root@oscar ola # /etc/init.d/apache start
* Starting apache... [ !! ]

root@oscar ola # apachectl configtest
Syntax OK

root@oscar ola # apachectl start
/usr/sbin/apachectl start: httpd could not be started

root@oscar ola # tail -f /var/log/apache/error_log
[Wed Jan 15 11:42:34 2003] [error] [client 192.168.0.22] File does not exist: /home/httpd/htdocs/Users
[Wed Jan 15 13:14:23 2003] [error] [client 213.67.144.231] File does not exist: /home/httpd/htdocs/.hash=377fd41a2414c3e76419b6a7d72dafbf4cf85f2c
[Wed Jan 15 20:17:02 2003] [notice] caught SIGTERM, shutting down
[Wed Jan 15 20:18:35 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
[Wed Jan 15 20:20:14 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
[Wed Jan 15 20:20:20 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
[Wed Jan 15 20:23:41 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
[Wed Jan 15 20:25:40 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
[Wed Jan 15 21:19:44 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
[Wed Jan 15 21:20:27 2003] [alert] mod_unique_id: unable to gethostbyname("oscar")
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Wed Jan 15, 2003 9:19 pm    Post subject: Reply with quote

double check your /etc/hosts and /etc/hostname i think apache fails when resolving your hostname ('oscar')
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Wed Jan 15, 2003 9:31 pm    Post subject: Reply with quote

those are the same as before.. i did check them before..?
but maybe something has changed when i uppdated to 1.4

tanks

.o


root@oscar ola # cat /etc/hosts
# /etc/hosts: This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/hosts,v 1.7 2002/11/18 19:39:22 azarah Exp $
#

127.0.0.1 localhost
192.168.0.22 sesam sesam.onemanarmy.lnet


root@oscar ola # cat /etc/hostname
oscar
Back to top
View user's profile Send private message
slartibartfasz
Veteran
Veteran


Joined: 29 Oct 2002
Posts: 1462
Location: Vienna, Austria

PostPosted: Wed Jan 15, 2003 9:39 pm    Post subject: Reply with quote

try to provide a full qualified name in /etc/hostname or add an entry in your /etc/hosts like

Code:

123.123.123.123 oscar.some.net oscar


btw i'm not sure but the line

Quote:
192.168.0.22 sesam sesam.onemanarmy.lnet


probably should look like this:

Code:
192.168.0.22 sesam.onemanarmy.lnet sesam


u can test this by trying to reach 'sesam' by some internet protokol (ssh or http....)
_________________
To an engineer the glass is neither half full, nor half empty - it is just twice as big as it needs to be.
Back to top
View user's profile Send private message
olal
n00b
n00b


Joined: 08 Sep 2002
Posts: 64
Location: Gothenburg, Sweden

PostPosted: Wed Jan 15, 2003 9:48 pm    Post subject: Reply with quote

that shouldnt really matter but i tried anyway & it didnt

but if i remove that mod_unique_id module in /etc/apache/apache.conf it starts & seems to work

but i dont really know what that one does?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Wed Jan 15, 2003 10:03 pm    Post subject: Reply with quote

http://httpd.apache.org/docs/mod/mod_unique_id.html
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
kashani
Advocate
Advocate


Joined: 02 Sep 2002
Posts: 2032
Location: San Francisco

PostPosted: Thu Jan 16, 2003 2:04 am    Post subject: apache, modules, and emerge -u system Reply with quote

I'd rebuild mod unique. I've notice several times especially with perl and php modules that changing packages on them makes them unhappy. A simple rebuild and all is well.

kashani
_________________
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum