LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache not working anymore :( (https://www.linuxquestions.org/questions/linux-networking-3/apache-not-working-anymore-163299/)

Jestrik 03-28-2004 04:50 AM

apache not working anymore :(
 
I had apache up and running perfectly, then I went to sleep and when I woke up it was not up. So i started the httpd service and this is what happened...

[root@KL-oolio root]# service httpd start
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[FAILED]

and this is from ps ax -

[root@KL-oolio root]# ps ax
PID TTY STAT TIME COMMAND
1 ? S 0:04 init
2 ? SW 0:00 [keventd]
3 ? SW 0:00 [kapmd]
4 ? SWN 0:00 [ksoftirqd_CPU0]
9 ? SW 0:00 [bdflush]
5 ? SW 0:00 [kswapd]
6 ? SW 0:00 [kscand/DMA]
7 ? SW 0:00 [kscand/Normal]
8 ? SW 0:00 [kscand/HighMem]
10 ? SW 0:00 [kupdated]
11 ? SW 0:00 [mdrecoveryd]
19 ? SW 0:00 [scsi_eh_0]
20 ? SW 0:00 [kjournald]
77 ? SW 0:00 [khubd]
2955 ? SW 0:00 [kjournald]
2957 ? SW 0:00 [kreiserfsd]
3253 ? S 0:00 syslogd -m 0
3257 ? S 0:00 klogd -x
3275 ? S 0:00 [portmap]
3294 ? S 0:00 [rpc.statd]
3360 ? S 0:00 /usr/sbin/apmd -p 10 -w 5 -W -P /etc/sysconfig/apm-sc
3397 ? S 0:00 /usr/sbin/sshd
3412 ? S 0:00 xinetd -stayalive -reuse -pidfile /var/run/xinetd.pid
3426 ? S 0:00 rpc.rquotad
3430 ? SW 0:00 [nfsd]
3431 ? SW 0:00 [nfsd]
3432 ? SW 0:00 [nfsd]
3433 ? SW 0:00 [nfsd]
3434 ? SW 0:00 [nfsd]
3435 ? SW 0:00 [nfsd]
3436 ? SW 0:00 [nfsd]
3437 ? SW 0:00 [nfsd]
3438 ? SW 0:00 [lockd]
3439 ? SW 0:00 [rpciod]
3445 ? S 0:00 rpc.mountd
3506 ? S 0:00 [sendmail]
3515 ? S 0:00 [sendmail]
3525 ? S 0:00 /usr/bin/spamd -d -c -a
3534 ? S 0:00 gpm -t imps2 -m /dev/psaux
3543 ? S 0:00 crond
3555 ? S 0:00 cupsd
3613 ? S 0:00 [xfs]
3623 ? S 0:00 smbd -D
3627 ? S 0:00 nmbd -D
3645 ? S 0:00 [atd]
3653 tty1 S 0:00 /sbin/mingetty tty1
3654 tty2 S 0:00 /sbin/mingetty tty2
3655 tty3 S 0:00 /sbin/mingetty tty3
3656 tty4 S 0:00 /sbin/mingetty tty4
3657 tty5 S 0:00 /sbin/mingetty tty5
3658 tty6 S 0:00 /sbin/mingetty tty6
3659 ? S 0:00 [gdm-binary]
3702 ? S 0:00 [gdm-binary]
3703 ? S 0:01 /usr/X11R6/bin/X :0 -auth /var/gdm/:0.Xauth vt7
3711 ? S 0:02 /usr/bin/gdmgreeter
3712 ? S 0:05 [smbd]
3808 ? S 0:00 /usr/sbin/sshd
3810 pts/0 S 0:00 -bash
3879 pts/0 R 0:00 ps ax

Any ideas as to what the problem could be?
All my other services seem to be okay - SMB, NFS and FTP...

Cheers guys

david_ross 03-28-2004 09:02 AM

Make sure that your hostname is in /etc/hosts next to the loopback.

To see your hostname run:
hostname

The entry in /etc/hosts should be like:
127.0.0.1 localhost localhost.localdomain compname compname.yourdomain

Jestrik 03-28-2004 09:38 AM

I'm confused with all the domain stuff...
I named my computer KL-oolio and i think the domain is KL.... how do i find out what they are? Should the domain be the internet domain that is forwarded to this computer?

Cheers

david_ross 03-28-2004 09:48 AM

Like I said - just run:
hostname

To see your current domain name. You do not need to use the hostname assigned to you by your ISP as long as you maintain your hosts file.

Jestrik 03-28-2004 09:53 AM

I opened the file and it's empty... is it the one that says "#Do not remove the following line etc etc"??

Is there an IRC channel that people use to talk about linux, as in asking for help?

regards

david_ross 03-28-2004 11:49 AM

There are lots of linux IRC channels but the reason we have these forums is to keep a permenant record of help. Take a look at this google search for your problem and see who is the top hit:
http://www.google.com/search?hl=en&l...=Google+Search


As for the solution to your problem just see my first post in this thread.


All times are GMT -5. The time now is 10:52 PM.