---
title: Running Postgresql 9.3 in an ezjail
kind: blog
description: 'To get this working I had to follow these steps:'
words: 14
readingMinutes: 1
created: '2014-01-26T17:34:55.000Z'
updated: '2026-06-27T21:03:45+02:00'
tags:
  - freebsd
  - jails
  - postgresql
  - system-administration
---
**On the host:**

1. `sudo echo 'security.jail.sysvipc_allowed=1' >> /etc/sysctl.conf`

2. `sudo echo 'jail_sysvipc_allow="YES"' >> /etc/rc.conf`

3. `sudo vi /usr/local/etc/ezjail/JAILNAME`

   Change this line:
  
   `export jail_JAILNAME_parameters=""`
  
   to:  
  
   `export jail_JAILNAME_parameters="allow.sysvipc=1"`

4. Restart the jail:
  
   `sudo ezjail-admin restart JAILNAME`
