[UCLA-LUG] how to check console for errors?

witten witten@linux.ucla.edu
Sun, 5 Sep 1999 22:38:38 -0700 (PDT)


On Sun, 5 Sep 1999, loan tran wrote:

> 
> Hi Dan, Please tell me how to check console or errors.
> and how can i telnet to port 80?
> Is there any way that i can uninstall web apache server and install it
> again?
> I attach 2 files httpd.conf  /etc/hosts
> see if you can find anything wrong.
> 
> oh, also my root got mail message like this: "
> error occured while rotating /var/log/httpd/error_log "
> I don't know if it relevant to the problem.

Apache's much better at parsing its config files than I am. I've noticed
two ways that apache alerts the user of errors when it starts up: It spits
out something to the console and/or to its error logs. You'll see its
console errors when you type whatever you're typing to restart the server.
I don't know how you're doing this (there are several ways). But if you're
typing something like "/etc/rc.d/init.d/httpd restart", then immediately
after that an error will show up on the screen or possibly will just show
up in the error log.

Telnetting to port 80 will check whether there's anything even listening
on the web port (such as apache). Type:

  telnet example.com 80

..where example.com is your server's hostname. If the connection is
refused, nothing's listening on port 80. Alternatively, you can just type:

  ps xua |grep httpd

..to see if there are any httpd apache processes running.

I don't know what's causing your log rotation errors. If you really want
to reinstall apache, you can. If you're using redhat:

  rpm -e apache
  rpm -Uvh /the/path/to/your/redhat/RPMS/apache*

..where /the/path/to/your/redhat/RPMS/ is the path to your redhat RPMS,
such as on a CDROM or something.

Good luck.

Dan

> 
> I highly appriciate your help.
> Thank.
> LOANTRAN
> 
> --- witten <witten@linux.ucla.edu> wrote:
> > I'm not sure what might be wrong. Try checking the
> > console for errors when
> > you restart apache. Also, telnet to port 80 of the
> > box with apache to see
> > if you can actually connect. What did you change in
> > the config files right
> > before apache stopped working?
> > 
> > Dan
> > 
> > On Sun, 5 Sep 1999, loan tran wrote:
> > 
> > > 
> > > I 'm using web apache sever on linux system.
> > > 
> > > I seted up different web sites on it.
> > > They were working fine. It just happened recently
> > after i restarted my
> > > computer, i could not view the sites anymore.
> > > I got the messages like this:
> > > "Netscape 's network connection was refused by the
> > server loantran.com
> > > (my website). The server may not be accepting
> > connection or may be
> > > busy."
> > > 
> > > I check the apache/logs/error_log 
> > > I got messages like this 
> > > " apache/1.3.6 configued resuming mornal
> > operation."
> > > Anynone have any idea how could it happen and how
> > to fix it.  Thank you.
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Bid and sell for free at http://auctions.yahoo.com
> > > 
> > > _______________________________________________
> > > UCLALUG Linux mailing list - Linux@linux.ucla.edu
> > > http://linux.ucla.edu/mailman/listinfo/linux
> > > 
> > 
> > 
> > _______________________________________________
> > UCLALUG Linux mailing list - Linux@linux.ucla.edu
> > http://linux.ucla.edu/mailman/listinfo/linux
> > 
> > 
> 
> __________________________________________________
> Do You Yahoo!?
> Bid and sell for free at http://auctions.yahoo.com