Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2006 13:48:02 -0500 (EST)
From:      Jerry McAllister <jerrymc@clunix.cl.msu.edu>
To:        snarmont@wnec.edu
Cc:        freebsd-questions@freebsd.org
Subject:   Re: httpd could not be started
Message-ID:  <200601131848.k0DIm2hE027488@clunix.cl.msu.edu>
In-Reply-To: <17821403.1137174943074.JavaMail.root@m11>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> I'm entirely new to FreeBSD, but have a fair amount of Linux 
> experience.
> 
> I installed FreeBSD 6.0 (Production Release) on an oldish i386 
> system.  During the install, I asked to install "ALL".  The 
> install went flawlessly.
> 
> I need Apache on this system for some software development, so I 
> followed these instructions I found at:  
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html 
> :
> 
> # pkg_add -r cvsup-without-gui
> # cvsup -L 2 -h cvsup.FreeBSD.org 
> /usr/share/examples/cvsup/ports-supfile
> # cd /usr/ports/www/apache13
> # make
> # make install
> 
> Everything to this point went smoothly!  I edited 
> /usr/local/etc/apache/httpd.conf ONLY to set the ServerName to the 
> IP address of the machine. However, when I try to start apache I 
> get:
> 
> #/usr/local/sbin/apachectl start
> /usr/local/sbin/apachectl start: httpd could not be started

You need to look for error messages in at least two places.

One would be the error_log file for apache which may be in:
  /var/log/httpd-error.log
if you did everything in the default way.

The other would be the system error log file which is:
  /var/log/messages
again, if you are using defaults.

One of those may have a message telling you why it could not be
started.   Error messages get put in those places because then
they are saved for you to check up on later if needed - like the
present situation.

Generally httpd-error.log will contain error messages for things
that go wrong while Apache is running.   Messages concerning
problems that make it unable to start will most often go in to
the system error log - /var/log/messages.

If there are no error messages in those files at about the time 
apache is starting up, then you may need to try and run Apache
interactively.

////jerry


> 
> I can't start apache.  Here's a configtest:
> 
> #/usr/local/sbin/apachectl configtest
> Syntax OK
> 
> 
> Apache also won't start if I bypass the apachectl script and start 
> it directly. However it doesn't report any errors either:
> 
> # /usr/local/sbin/httpd
> #
> 
> 
> Everything up above is with a completely fresh install of FreeBSD 
> 6.  I didn't mess around with anything on the system.  I followed 
> the above steps exactly. (As I side note, I've struggled with this 
> for two days, and have installed FreeBSD at least 6 times trying 
> differnet things.  I can't get Apache to start. On previous 
> installs, I tried using apache22 with the same results.)
> 
> Does anyone have any suggestions on how to get ANY version of 
> Apache running on a new install of FreeBSD 6?
> 
> Thanks,
> Steven Narmontas
> 
> 
> 
> 
> 
> 
> 
> ------=_Part_982_24986631.1137174942886
> Content-Type: text/plain; charset="us-ascii"
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> Content-Disposition: inline
> 
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> ------=_Part_982_24986631.1137174942886--
> 
> 




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