LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-27-2005, 02:33 PM   #1
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Rep: Reputation: 15
server online but http not


Hello how can I get my http online? My server crashed and I just got it back by doing a reboot like

shutdown -r now

it rebooted but it only appears it started ssh only? When I visit my website nothing works just shows a page saying cannot be displayed so I typed in

httpd restart

wait till it finished, try again same message page cannot be displayed so what should I do?

I did the psx command and I got this


PID TTY STAT TIME COMMAND
1 ? S 0:03 init
2 ? SW 0:00 [keventd]
3 ? SW 0:00 [kapmd]
4 ? SWN 0:00 [ksoftirqd/0]
7 ? SW 0:00 [bdflush]
5 ? SW 0:00 [kswapd]
6 ? SW 0:00 [kscand]
8 ? SW 0:00 [kupdated]
9 ? SW 0:00 [mdrecoveryd]
13 ? SW 0:01 [kjournald]
67 ? SW 0:00 [khubd]
693 ? SW 0:00 [kjournald]
1456 ? S 0:00 syslogd -m 0
1460 ? S 0:00 klogd -x
1498 ? S 0:00 mdadm --monitor --scan -f
1567 ? S 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql
1594 ? S 0:00 cupsd
1624 ? S 0:00 /usr/sbin/sshd
1638 ? S 0:00 xinetd -stayalive -pidfile /var/run/xinetd.pid
1656 ? S 0:00 chkservd
1698 ? S 0:00 antirelayd
1713 ? S 0:01 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/
1726 ? S 0:00 /usr/local/apache/bin/httpd -DSSL
1738 ? S 0:00 crond
1745 ? S 0:00 spamd child
1746 ? S 0:00 spamd child
1888 ? S 0:00 cpsrvd - waiting for connections
1893 ? SN 0:00 cpanellogd - sleeping for logs
1936 ? S 0:00 cppop - accepting on port 110
1957 ? S 0:00 /usr/sbin/portsentry -tcp
1977 tty1 S 0:00 /sbin/mingetty tty1
1978 tty2 S 0:00 /sbin/mingetty tty2
1979 tty3 S 0:00 /sbin/mingetty tty3
1980 tty4 S 0:00 /sbin/mingetty tty4
1981 tty5 S 0:00 /sbin/mingetty tty5
1984 tty6 S 0:00 /sbin/mingetty tty6
2149 ? S 0:00 sshd: root@pts/0
2151 pts/0 S 0:00 -bash
2415 pts/0 R 0:00 ps -x


any ideas how i can strat viewing my site again plz
 
Old 11-27-2005, 02:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
It would help to know which distro & which version of
Apache you're running ...


Cheers,
Tink
 
Old 11-27-2005, 05:52 PM   #3
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
os fedora core 4 whats the command to know the apcahe i know its in 4 somin somin somin..
 
Old 11-27-2005, 05:58 PM   #4
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
rpm -qa | grep http
 
Old 11-28-2005, 04:23 PM   #5
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you! It still didn't work though... I typed in the command


root@kluah [~]# rpm -qa | grep http


and then I waited, and visited my website and it didn't work.. Should I contact my provider and ask them to see whats going on becasue ever since the server crashed it hasent been working..
 
Old 11-28-2005, 05:26 PM   #6
iggep
Member
 
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48

Rep: Reputation: 15
rpm -qa | grep http

will just tell you what (if any) apache is loaded. Whether its 1.3.x or 2.x.

If apache crashed, open a shell and run the following to see if it's still running.

service httpd status

If it's off. run service httpd start. If it's already running, try service httpd restart.
 
Old 11-28-2005, 11:28 PM   #7
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
root@kluah [~]# service httpd status

Not Found

The requested URL /server-status was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to
use an ErrorDocument to handle the request.
_________________________________________________________________


Apache/1.3.34 Server at kluah*********** Port 80
root@kluah [~]#

I did the httpd start and it told me


root@kluah [~]# service httpd start
/etc/init.d/httpd start: httpd (pid 1726) already running

So then I did this..

service httpd restart
/etc/init.d/httpd restart: httpd restarted

Got this, and then I did that status thing and it showed the same message as above.
 
Old 11-28-2005, 11:36 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Just try
apachectl status
from a command-line...


Cheers,
Tink
 
Old 11-29-2005, 12:31 AM   #9
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Hi thanks! But what do you mean from a command line? I just logged into root and typed

apachectl status

Said command not found
 
Old 11-29-2005, 02:05 AM   #10
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Quote:
Originally posted by Tinkster
Just try
apachectl status
from a command-line...


Cheers,
Tink
Tink, when he did "sevice httpd status", that gives the same output as "apachectl status" would.

Quote:
Originally posted by Baghdad
Hi thanks! But what do you mean from a command line? I just logged into root and typed

apachectl status

Said command not found
That was the command line...
 
Old 11-29-2005, 02:45 AM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally posted by Nylex
Tink, when he did "sevice httpd status", that gives the same output as "apachectl status" would.



That was the command line...
Hmmm ... works here: apachctl status is being found, and I
get output, too.

Baghdad,
have a look at your httpd.conf, check for the
section server-status (is it commented out?) and
also check whether the
LoadModule status_module libexec/apache/mod_status.so
is present and not commented out.


Cheers,
Tink
 
Old 11-29-2005, 03:06 AM   #12
Baghdad
LQ Newbie
 
Registered: Nov 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Where do I find my httpd.config at? And is the "server_modul lib..ect" in the middle? Sorry if Im fustrating you all.. Im new!! and Im having serious trouble..
 
Old 11-29-2005, 03:56 AM   #13
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,524

Rep: Reputation: 94
The httpd.conf can usually be found in /etc/httpd/ or /etc/apache/. And the LoadModule ... you will find in the httpd.conf file.
 
Old 11-29-2005, 11:21 AM   #14
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
tito is perfectly correct ... a more generic (and empowering)
answer would be
locate httpd\.conf
or
find / -name httpd.conf


Cheers,
Tink
 
Old 01-03-2006, 01:23 PM   #15
jordo1
LQ Newbie
 
Registered: Mar 2004
Distribution: Slack
Posts: 15

Rep: Reputation: 0
Since you're using Fedora you could even use "slocate httpd.conf"

Also, when researching a problem it's usually nice to know if the logs have anything to contribute to the troubleshooting information. Try checking under /var/log for the logs.

This is probably already resolved by now but just FYI.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Server goes online when started and stays online ... joepl Linux - Networking 1 08-18-2005 02:12 PM
HTTP server carlosa52 Suse/Novell 1 07-05-2005 10:12 PM
http server help jrmontg Linux - Newbie 2 04-11-2005 01:49 PM
Http Server help eckertc1 Linux - Newbie 8 03-06-2005 02:23 AM
Linux email server and some HTTP server questions Steven6282 Linux - General 7 02-19-2003 03:39 PM


All times are GMT -5. The time now is 10:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration