Tuesday, January 24, 2006


I have FreeBSD installed and with it I had couple of issues.

Problem No. 1

When I installed apache using the ports

cd /usr/ports/www/apache21/

make install clean

It had also fetched tcpwrappers which I was not aware of.

When I tried connecting to it locally it wont allow me to connect it says

Connection refused

So I had to add this entry to /etc/hosts.allow

sshd : ALLOW is the system from where I am connecting.

Note : By default freeBSD root access through ssh is disabled.

Also make sure your nameserver entries are properly configured in your freebsd.


If its able to resolve to external domains.

After adding the above entry I am able to ssh from

Problem No. 2

Now its the turn of http... when I try to do a

It says Connection refused ... this was wired since I was using http service for some time now with my freebsd and all was well with it.

The settings in


were fine this was Listenning to port 80 on FreeBSD lnc0

/usr/local/etc/rc.d/apache2.sh start

wont start either.

I could see netstat did not show http running.

I tried

/usr/local/sbin/httpd this worked but is not a proper way to start http

After searching forums and IRC, I have added




I used apache2 since in rc.d its mentioned


freebsd# /usr/local/etc/rc.d/apache2.sh start
Starting apache2.

Now the http service is working

No comments: