The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
Author: sum 
Date:   22-04-00 12:12


I am experience troubles getting apache to start up. The httpd is located in the /usr/local/sbin directory.

When I enter the command ./apachectl start , it says httpd could not be started.

I also have set it to start automatically in my /etc/rc.local file.

The document I modified is the httpd.conf doc with respect to servername , setting it to my IP address.


Thanks in advance.

Reply To This Message
 RE: apache
Author: Dan Langille 
Date:   22-04-00 16:24

1 - check /var/log/httpd-error.log for the trouble. Setting ServerName entry in httpd.conf is a good idea. Try also if you need to. Also, make sure hostname is set. Type "hostname" to see the existing value. "hostname" to set a value. Check /etc/rc.conf because it should be in there too. Something like hostname=""

2 - don't use /etc/rc.local as it's deprecated. See <a href=""></a> and <a href=""></a> for examples of how to use /usr/local/etc/rc.d instead.

Reply To This Message
 RE: apache
Author: Wes 
Date:   11-05-00 01:06

You can also run:
apachectl configtest

This will give you output if there are errors in your httpd.conf file. If all is good then you will get 'Syntax OK'

IIRC this feature was added in 1.3.16? Or something like that. I've lost track of the versions.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 

 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum