Agus Priyadi and Mafia.Or.ID

blog all about (brains colocations)

Make Plesk 8.0.1 work inside a FreeBSD 6.1 jail

Posted by mafiaid on 10 August 2007

Plesk works nice inside an FreeBSD 6.1 jail.
You will have to do the following things.

First set the following sysctl’s in /etc/sysctl.conf
security.jail.set_hostname_allowed=1
security.jail.sysvipc_allowed=1 #needed for postgress
security.jail.enforce_statfs=1 #The users now can see the read only ports
security.jail.allow_raw_sockets=1 # allow ping and traceroute
security.jail.jailed_sockets_first=1
Or do them manual with sysctl.

mount_procfs proc /jaildisk1/pleskjail/proc #procfs is needed

Login to the jail and install /usr/ports/lang/perl5.8
and /usr/ports/archivers/gtar.

Cheat the uname -a with
mv /usr/bin/uname /usr/bin/uname.org
And replace uname with the following simple script

#!/bin/sh
# let Plesk installation believe that you have FreeBSD 6.0
/usr/bin/uname.org $* | sed “s/6.1/6.0/g”
chmod 755 /usr/bin/uname

Maybe you will have to do chflags -R noschg /jaildisk1/pleskjail first to remove the flags!

Note, this only works with the 8.0.1 version!!

With the mijail patch you can have multiple ipaddresses inside the jail!
This method does have the advantage that you can rsync the complete jail, and make a hotstandby server.

source url :  http://blog.cg.nu/?p=11

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: