This post is continuing from Part 1 of our series on how to setup a FreeBSD Web Server. If you ordered a number of IP address then you might want to set them up as individual jails. One for your DNS server, one for you backend server and the rest as individual webserver IP [...]
Setup A Freebsd Server– Part 1– Lock It Down
When you get your raw freebsd srever from your hosting provider, you will usually find it is very out of date and not very secure. Our very first step is to lock down our server. 1. Secure Access To Your Server The first thing I like to do is restrict ssh access from the [...]
How to setup dnydns for freebsd
You can script this yourself or you can use one of two clients available in the ports collection. ipcheck – written in python opendd – written in C I chose opendd since it is written in C and is not dependant on other packages (e.g. python being installed). There are a lot of Dynamic DNS [...]
Mysql Proxy on freebsd
This took me a while to work out. When people create databases for web applications e.g. for wordpress or forums, they typically use localhost. For whatever reason it is hardcoded in the mysql client library to use unix domain sockets in every case if ‘localhost’ is used. You can’t even turn this off. To get [...]
Virtualmin FreeBsd tip
I came across a problem when i added more than certain amount of domains on my freebsd webserver, where apache would no longer start. The problem is there is limit in apache to how many accounts the apache user account can be a group of. Anyway the fix is to remove www from /etc/group for [...]
SQUID Cache In Jail
Here is how i setup a squid cache server in it’s own jail compiling ensure you select no NIS in /etc/make.conf before you compile in /etc/rc.d squid_enable=”yes” squid_user=”root” NB you must run as root otherwise you will get permission errors when squid tries to run on port 80 as squid. Link to this post!
Apache MYSQL VirtualMin PHP5
These are the steps I carry out to setup a jailed webserver For starters we don’t want to be compiling X libraries and NIS so first off vi /etc/make.conf NO_X=true NO_X11=true WITHOUT_X11=true NO_NIS=true WITHOUT_NIS=true /etc/nsswitch.conf group: files hosts: files dns networks: files passwd: files shells: files cd /usr/ports/databases/mysql51-server make install cd /usr/ports/database/mysql51-client make install /usr/ports/databases/mysql51-scripts [...]



- WPMU W3 Total Cache Can Not Login August 19, 2011
- How to access HP ILO via a ssh tunnel December 29, 2009
- How to setup dnydns for freebsd February 15, 2010
- Recovering A Broken WordPress Blog Without A Backup Copy April 5, 2010
- Apache MYSQL VirtualMin PHP5 November 17, 2007
-
VPS.NET SSL Certificate Installation On Ubuntu
November 26, 2011
- Setting Ubuntu Default Crontab Editor September 4, 2011
- Install Memcached on Ubuntu August 24, 2011
-
Check iPhone Warranty Online
August 20, 2011
- WPMU W3 Total Cache Can Not Login August 19, 2011

