![]() |
Now serving 108 guides. |
|
Secure Installation of Postgresql General Information This guide will help you set up, and start running PostgreSQL using the ports tree. For information of how to use PostgreSQL, try google. This guide will not help you with PostgreSQL past installing it.Requirements You will need the following items to be able to complete this guide:
Compiling This is where your up-to-date ports come in handy.
Setting up PostgreSQL There is little to do for the PostrgreSQL set up, but these steps are required. You could go with the defaults in the rc script, but that leaves you open for attack from local untrusted users.
Starting PostgreSQL There are two ways that you can start PostgreSQL. Reboot your system, or execute it's rc file.
Using PostgreSQL Using PostgreSQL can be done one of two ways. One way is to install phpPgAdmin, which allows you to use a web interface to add users, add databases, and other such neat features, or one can make use of the psql tool that is available.
This guide is © 2005 - 2010 Bert JW Regeer. Author: Bert JW Regeer 1 Comment Posted by Geoff on March 23, 2007 at 10:14:13 am EET
There is now an option where you can set the initdb flags in /etc/rc.conf. So you could do the following
## /etc/rc.conf postgresql_enable="YES" postgresql_initdb_flags="--encoding=utf-8 --lc-collate=C -W -A md5" ## Shell /usr/local/etc/rc.d/postgresql initdb /usr/local/etc/rc.d/postgresql start |
Copyright 2003 - 2010 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

