Chroot

Chroot Apache 2.2 on NetBSD

       100 words, 1 minutes

The Apache 2.2.17 package shipped in pkgsrc 2010Q4 comes with a nice <a href="http://httpd.apache.org/docs/2.2/mod/mpm_common.html#chrootdir">ChrootDir</a> directive that allows simple chroot configuration. First, you will need Apache in at least version 2.2.10. Then: # vi /usr/pkg/etc/httpd/httpd.conf (...) #DocumentRoot "/usr/pkg/share/httpd/htdocs" ChrootDir "/usr/pkg/share/httpd" DocumentRoot "/htdocs" (...) # ln -s /usr/pkg/share/httpd/htdocs /htdocs

Continue reading...


Chroot MySQL on NetBSD

       364 words, 2 minutes

Installing MySQL on NetBSD is really easy with pkgsrc. But chrooting it requires a few particular steps.

Continue reading...


Chroot OpenLDAP on NetBSD

       483 words, 3 minutes

Installing a LDAP directory on NetBSD is really easy with OpenLDAP and pkgsrc. But chrooting it requires a few particular steps.

Continue reading...