Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Installing SilverStripe on Postgresql database

Go to End

8 Posts   5401 Views


Community Member, 4 Posts

25 January 2009 at 9:13pm

Hello all,

I would like to install Silverstripe on a Postgresql database.

I have downloaded the unreleased module ( but didn't manage to install it (I am lacking documentation).

Could you help me to start ?

Thank you in advance.


Community Member, 4 Posts

29 January 2009 at 8:34am


I am trying to do the same thing. This is what I figured out sofar.
Put "PostgreSQLDatabase.php" file into "SilverStripe\sapphire\core\model". This is where "MySQLDatabase.php" is.
Second, you have to replace the file "config-form.html" in "SilverStripe\" with ""
Last, "install.php" has to be replaced as well but I cannot find a replacement file for PostgreSQL. I guess we have to wait a developer to write it cause I do not know any SQL stuff.
I hope this shed some light.


Community Member, 712 Posts

30 January 2009 at 8:28am

Hey Geoff, I was under the impression that the postgres version was not yet fully funcitonal. At least in my experience, I was unable to add new page types reliably - they simple didn't seem to get built.

Should we be adding tickets if we find bugs in the postgres module?


Community Member, 4 Posts

30 January 2009 at 10:00am

Hello All,

Since I am really interested in installing SilverStripe on a Postgresql database, I will share any information, patches,...

Thank you for your answers.


Community Member, 7 Posts

26 July 2009 at 7:57pm

Where do i get a template for mysite/_config.php

currently i have this:

global $project;
$project = 'mysite';

global $database;
$database = "";



// This line set's the current theme. More themes can be
// downloaded from


but install.php is still asking for MySQL settings, not Postgres


Forum Moderator, 5521 Posts

26 July 2009 at 8:10pm

Edited: 26/07/2009 8:10pm

As far as I know the installer has not yet been updated to support multiple databases (postgres and mssql support are both still alpha code). You would have to bypass the installer.php (by just deleting that file and setting your configuration in your _ss_environment.php file (or if you do not have one your mysite/_config file)


Community Member, 473 Posts

26 July 2009 at 9:31pm

Information on setting your site up using _ss_environment.php is available here and an example mysite/_config.php file is available here

John A

Community Member, 1 Post

17 February 2011 at 3:35am

I've found the undocumented formula:

Unpack the module at the top level of the SilverStripe tree (parallel to sapphire).
Rename the unpacked folder to postgresql