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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
11-27-2005, 02:33 PM
|
#1
|
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Rep:
|
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
|
|
|
|
11-27-2005, 02:44 PM
|
#2
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
It would help to know which distro & which version of
Apache you're running ...
Cheers,
Tink
|
|
|
|
11-27-2005, 05:52 PM
|
#3
|
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
os fedora core 4 whats the command to know the apcahe i know its in 4 somin somin somin..
|
|
|
|
11-27-2005, 05:58 PM
|
#4
|
|
Member
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48
Rep:
|
rpm -qa | grep http
|
|
|
|
11-28-2005, 04:23 PM
|
#5
|
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
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..
|
|
|
|
11-28-2005, 05:26 PM
|
#6
|
|
Member
Registered: Sep 2005
Location: Virginia Beach, VA
Posts: 48
Rep:
|
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.
|
|
|
|
11-28-2005, 11:28 PM
|
#7
|
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
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.
|
|
|
|
11-28-2005, 11:36 PM
|
#8
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
Just try
apachectl status
from a command-line...
Cheers,
Tink
|
|
|
|
11-29-2005, 12:31 AM
|
#9
|
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
Hi thanks! But what do you mean from a command line? I just logged into root and typed
apachectl status
Said command not found
|
|
|
|
11-29-2005, 02:05 AM
|
#10
|
|
LQ Addict
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,466
Rep: 
|
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...
|
|
|
|
11-29-2005, 02:45 AM
|
#11
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
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
|
|
|
|
11-29-2005, 03:06 AM
|
#12
|
|
LQ Newbie
Registered: Nov 2005
Posts: 27
Original Poster
Rep:
|
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..
|
|
|
|
11-29-2005, 03:56 AM
|
#13
|
|
Senior Member
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware 14.0
Posts: 1,476
Rep:
|
The httpd.conf can usually be found in /etc/httpd/ or /etc/apache/. And the LoadModule ... you will find in the httpd.conf file.
|
|
|
|
11-29-2005, 11:21 AM
|
#14
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
tito is perfectly correct ... a more generic (and empowering)
answer would be
locate httpd\.conf
or
find / -name httpd.conf
Cheers,
Tink
|
|
|
|
01-03-2006, 01:23 PM
|
#15
|
|
LQ Newbie
Registered: Mar 2004
Distribution: Slack
Posts: 15
Rep:
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:00 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|