unable to start apache after changes to rc.conf and resov.conf

Posted by shupru on Super User See other posts from Super User or by shupru
Published on 2013-10-18T21:53:10Z Indexed on 2013/10/18 22:00 UTC
Read the original article Hit count: 237

Filed under:
|
|
|

I had a working configuration this morning with the following simple /etc/rc.conf

ifconfig_rl0="DHCP"
ifconfig_xl="inet 192.168.1.11 netmask 255.255.255."

defaultrouter="192.168.1.1"

I added the following lines:

firewall_enable="YES"
firewall_type="SIMPLE"
firewall_logging="YES"

sshd_enable="YES"
apache_enable="YES"
mysql_enable="YES"

my httpd.conf includes:

NameVirtualHost 192.168.1.11
<VirtualHost 192.168.1.11>
...
</VirtualHost>

now apache and ssh server are down. changed rc.conf back to last working configuration and still no ssh or apache

apachectl start
#--> /usr/local/sbin/apachectl start: httpd could not be started

apachectl status
#--> Looking up localhost
Making http connection to localhost
Alert!: Unable to connect to remote host.

© Super User or respective owner

Related posts about linux

Related posts about networking