FreeBSD user gnugr shows us how to get ownCloud set up in a FreeBSD jail.
Original post: http://gnugr-blog.info/node/17
owncloud | ezjail | jails | freebsd | nginx
Moving to FreeBSD
I’ve had a ownCloud installation running for a good year or so on my unRAID server. As for ownCloud itself, I’ve been very happy with it. Managing non-unRAID things on unRAID though… not so fun. With that said, I’ve decided to move my installation to a FreeBSD 10.1 based system running on a Mac Mini. This box already services some minor things such as Murmur for our World of Warcraft guild The ORLY Factor, Git, etc. but is nearly idle most of the time.
A great feature of FreeBSD is jails. With a jail you can isolate an environment from the rest of the system such that if it comprimised, the rest of the system is not. Installations do not much with each other as well. All great stuff — lets put ownCloud in a jail!
For jail management I choose ezjail. This makes working with jails… er, a bit eaezsier.
Install & Prepare ezjail
I did not have ezjail already installed. Below are the steps I took to get ezjail installed and prepped on the system:
Install (alternatively, cd /usr/ports/sysutils/ezjail && make install clean):
sudo pkg install ezjail
Create a base jail & update it:
sudo ezjail-admin install -sp
sudo ezjail-admin update -P
A few entries need added to /etc/rc.conf: