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 :192.168.0.10: ALLOW
192.168.0.10 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.
/etc/resolv.conf
If its able to resolve to external domains.
After adding the above entry I am able to ssh from 192.168.0.10
Problem No. 2
Now its the turn of http... when I try to do a http://192.168.0.10
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
/usr/local/etc/apache2/httpd.conf
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
apache2_enable="YES"
to
/etc/rc.conf
I used apache2 since in rc.d its mentioned
/usr/local/etc/rc.d/apache2.sh
freebsd# /usr/local/etc/rc.d/apache2.sh start
Starting apache2.
Now the http service is working
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment