View previous topic :: View next topic |
Author |
Message |
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Wed Jan 15, 2003 8:21 pm Post subject: apache - startproblem after emerge -u system |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Wed Jan 15, 2003 8:55 pm Post subject: |
|
|
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 |
|
|
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Wed Jan 15, 2003 9:08 pm Post subject: |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Wed Jan 15, 2003 9:19 pm Post subject: |
|
|
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 |
|
|
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Wed Jan 15, 2003 9:31 pm Post subject: |
|
|
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 |
|
|
slartibartfasz Veteran
Joined: 29 Oct 2002 Posts: 1462 Location: Vienna, Austria
|
Posted: Wed Jan 15, 2003 9:39 pm Post subject: |
|
|
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 |
|
|
olal n00b
Joined: 08 Sep 2002 Posts: 64 Location: Gothenburg, Sweden
|
Posted: Wed Jan 15, 2003 9:48 pm Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
|
Back to top |
|
|
kashani Advocate
Joined: 02 Sep 2002 Posts: 2032 Location: San Francisco
|
Posted: Thu Jan 16, 2003 2:04 am Post subject: apache, modules, and emerge -u system |
|
|
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 |
|
|
|