LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache problem (https://www.linuxquestions.org/questions/linux-server-73/apache-problem-475814/)

lelol 08-21-2006 04:21 AM

Apache problem
 
When I start Apache on Suse 10.1, it's running just for a few seconds, and then immediately stops. Why is this happening, and what can I do to solve the problem?

Thanks in advance.

gilead 08-21-2006 04:42 AM

Have you looked in the Apache logs (probably /var/log/httpd) to see what the access and error logs contain? Can you post information relating to the problem here?

lelol 08-21-2006 05:09 AM

Error log content:

[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec2)
[alert] (EAI 2) Name or service not known: mod_unique_id: unable to find IPv4 address of "dceran"
Configuration Failed

gilead 08-21-2006 05:19 AM

mod_unique_id uses the IP address of a box and the process id to generate a unique token (unique under specific circumstances). It looks like it can't resolve dceran to an IP address on your box. Is dceran the hostname? What do the following return?
Code:

dig dceran
host dceran
ping dceran


lelol 08-21-2006 05:36 AM

dceran is not hostname. i think it's superuser. i got that name by default, after install suse.

results of commands are:

dceran:~ # dig dceran
; <<>> DiG 9.3.2 <<>> dceran
;; global options: printcmd
;; got ansver:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 45814
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION;
;dceran.
IN A
;; Query time: 2 sec
;; SERVER: 192.168.0.2#53(192.168.0.2)
;; WHEN Mon, Aug 21, 12:30:25 2006
;; MSG SIZE rcvd: 24

dceran:~ # host dceran
Host dceran not found: 2(SERVFAIL)

dceran:~ # ping dceran
ping: unknown host dceran

lelol 08-22-2006 03:10 AM

Problem solved.

dceran wasn't host - there wasn't an entry for it in /etc/hosts file. I don't know what is dceran - i got it as a default root user when installing suse. After su root and restarting Apache everything works fine.

Thank you.

gilead 08-22-2006 02:08 PM

I'm glad you for it working - and thanks for posting the solution :)


All times are GMT -5. The time now is 06:32 PM.