Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2000 00:44:52 EST
From:      "Jon ." <los_alamos@hotmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: starting apache
Message-ID:  <20000322054452.58820.qmail@hotmail.com>

next in thread | raw e-mail | index | archive | help


>On 21 Mar 00, at 22:45, outlawtx@bga.com wrote:
> > 	However,  I can not access Apache from any other machine on the LAN or
> > from the internet.
> >
> > 	Also, "ps aux" reveals no "httpd" in the list.
> >
> > 	What's wrong?


Try apachectl start
Running httpd directly does nothing but run and then exit the program., 
therefore, it won't be in the process list because it's not running.  
apachectl is the command to start/stop the server, among other things.  if 
that returns an error, make sure your hostname settings are right, and that 
an httpd.pid file has been created.

>The answer is in the error log file for apache.  This may be located
>in /usr/local/apache/logs/error-log (or some similar filename), or it
>might be in /var/log/(something_involving_apache).  This depends
>on how it was installed.

try /var/log/apache/error_log, if my memory serves correctly.

>You should be able to find out via strings and grep:
>
>strings `which httpd` | grep -i HTTPD_ROOT
>gives you the default ServerRoot
>
>The command
>strings `which httpd` | grep -i DEFAULT_ERRORLOG
>gives you the default location of the error logfile.
>
>Combine the two, and you should find your error log, which will
>explain your problem (usually something to do with httpd.conf,
>where it is, where it ain't, or what it says that it shouldn't).
>
>There's a simpler answer, but I'm on a Windoze box right now, and
>have no access to the default port install of apache.
>
>Once you find out the error, if you're still confused,
>http://www.apache.org/httpd has wonderful, searchable
>documentation (click on Server Documentation -> Search for key
>words).  If you're still confused, send me or the mailing list the error.
>
>-Todd

jon
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000322054452.58820.qmail>