LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   server online but http not (https://www.linuxquestions.org/questions/linux-newbie-8/server-online-but-http-not-387026/)

Baghdad 11-27-2005 02:33 PM

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

Tinkster 11-27-2005 02:44 PM

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


Cheers,
Tink

Baghdad 11-27-2005 05:52 PM

os fedora core 4 whats the command to know the apcahe i know its in 4 somin somin somin..

iggep 11-27-2005 05:58 PM

rpm -qa | grep http

Baghdad 11-28-2005 04:23 PM

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..

iggep 11-28-2005 05:26 PM

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.

Baghdad 11-28-2005 11:28 PM

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.

Tinkster 11-28-2005 11:36 PM

Just try
apachectl status
from a command-line...


Cheers,
Tink

Baghdad 11-29-2005 12:31 AM

Hi thanks! But what do you mean from a command line? I just logged into root and typed

apachectl status

Said command not found

Nylex 11-29-2005 02:05 AM

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...

Tinkster 11-29-2005 02:45 AM

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

Baghdad 11-29-2005 03:06 AM

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..

titopoquito 11-29-2005 03:56 AM

The httpd.conf can usually be found in /etc/httpd/ or /etc/apache/. And the LoadModule ... you will find in the httpd.conf file.

Tinkster 11-29-2005 11:21 AM

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


Cheers,
Tink

jordo1 01-03-2006 01:23 PM

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.


All times are GMT -5. The time now is 01:38 AM.