Archive | Freebsd RSS feed for this section

Setup A FreeBSD Web Server–Part 2–Jails

  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 [...]

Read full story · Comments { 0 }

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 [...]

Read full story · Comments { 0 }

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 [...]

Read full story · Comments { 0 }

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 [...]

Read full story · Comments are closed

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 [...]

Read full story · Comments are closed

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!

Read full story · Comments are closed

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 [...]

Read full story · Comments are closed