Project

General

Profile

Actions

Feature #77

open

Feature #74: Create a new BSD Jail running Apache with PHP 5.4.16

Install FreeBSD Jail into a new ZFS Dataset

Added by Sam Bracewell 3 months ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
27/08/2026
Due date:
% Done:

0%

Estimated time:
Actions #1

Updated by Sam Bracewell 3 months ago ยท Edited

A thick jail is to be used for best isolation and security

Create a ZFS dataset for intalling the jail to:
zfs create tank/jails/containers/jtws

Extract the userland to the new jail directory:
tar -xf /tank/jails/media/15.0-RELEASE-p2.txz -C /tank/jails/containers/jtws --unlink

With the userland extracted in the jail directory, it will be necessary to copy the timezone and DNS server files:
cp /etc/resolv.conf /tank/jails/containers/jtws/etc/resolv.conf
cp /etc/localtime /tank/jails/containers/jtws/etc/localtime

Create the config file for the jail, updating its name and IP address:
cp /etc/jail.conf.d/nginx.conf /etc/jail.conf.d/jtws.conf

With the files copied, the next thing to do is update to the latest patch level by executing the following command:
freebsd-update -b /tank/jails/containers/jtws/ fetch install

Add the jail to jail_list in /etc/rc.conf.

Start the jail:
service jail start jtws

Actions

Also available in: Atom PDF