cannot start apache

Look in the /var/log/messages and /var/log/http-error.log logfiles for clues.
 
Also, sockstat -4 is correct way to see if port is opened or not by apache.
Code:
sockstat -4 
sockstat -4 | grep :80
 
SirDice said:
Look in the /var/log/messages and /var/log/http-error.log logfiles for clues.

/var/log/http-error.log:

[Tue Apr 07 19:45:10 2009] [alert] (EAI 8)hostname nor servname provided, or not known: mod_unique_id: unable to find IPv4 address of "freebsd.localdomain"
Configuration Failed


how to fix?
 
Change your hostname to something fully-qualified, like freebsd.domain.local in /etc/hosts and/or in rc.conf.
 
Back
Top