PostgreSQL Installation
From DreamFactory
Linux
- Install DreamFactory. (The below steps assume a DreamFactory install in
~/dsp/
with its PHP installed in~/dsp/php/
.) - Check
~/dsp/php/etc/php.ini
to ensure the valuesextension=pgsql.so
andextension=pdo_pgsql.so
are present and uncommented. (In the Bitnami installer they already are.) - Check
~/dsp/php/lib/php/extensions/
to ensurepgsql.so
andpdo_pgsql.so
are present. (These are included in the Bitnami package.) - If you made any changes/additions in steps ii and iii, restart your Apache server.
- Login to your DreamFactory Admin Console and create a new service in the Services tab. Enter the following, then click Save at the bottom of the page.
- Type: Remote SQL DB
- Username and Password: valid credentials to your PostgreSQL DB
- SQL Vendor: PostgreSQL
- Host: hostname or IP of your PostgreSQL server (localhost if appropriate)
- Database Name: name of the PostgreSQL DB
- Connection String: if using a port other than the default (5432), add
;port=####
(where #### is the actual port number) to the end of your connection string
- Click over to the “API Docs” tab, expand your new service, and perform a simple GET request to verify connectivity.
Mac
- Install DreamFactory. (The below steps assume a DreamFactory install in
/Applications/dsp/
with its PHP installed in/Applications/dsp/php/
.) - Check
/Applications/dsp/php/etc/php.ini
to ensure the valuesextension=pgsql.so
andextension=pdo_pgsql.so
are present and uncommented. (In the Bitnami installer they already are.) - Check
/Applications/dsp/php/lib/php/extensions/
to ensurepgsql.so
andpdo_pgsql.so
are present. (These are included in the Bitnami package.) - If you made any changes/additions in steps ii and iii, restart your Apache server.
- Login to your DreamFactory Admin Console and create a new service in the Services tab. Enter the following, then click Save at the bottom of the page.
- Type: Remote SQL DB
- Username and Password: valid credentials to your PostgreSQL DB
- SQL Vendor: PostgreSQL
- Host: hostname or IP of your PostgreSQL server (localhost if appropriate)
- Database Name: name of the PostgreSQL DB
- Connection String: if using a port other than the default (5432), add
;port=####
(where #### is the actual port number) to the end of your connection string
- Click over to the “API Docs” tab, expand your new service, and perform a simple GET request to verify connectivity.
Windows
- Install DreamFactory. (The below steps assume a DreamFactory install in
C:\dsp\
with its PHP installed inC:\dsp\php\
.) - Check
C:\dsp\php\php.ini
to ensure the valueextension=php_pdo_pgsql.dll
is present and uncommented. (In the Bitnami installer it already is.) - Check
C:\dsp\php\ext\
to ensurephp_pdo_pgsql.dll
is present. (This is included in the Bitnami package.) - If you made any changes/additions in steps ii and iii, restart your Apache server.
- Login to your DreamFactory Admin Console and create a new service. Enter the following, then click Save at the bottom of the page.
- Type: Remote SQL DB
- Username and Password: valid credentials to your PostgreSQL DB
- SQL Vendor: PostgreSQL
- Host: hostname or IP of your PostgreSQL server (localhost if appropriate)
- Database Name: name of the PostgreSQL DB
- Connection String: if using a port other than the default (5432), add
;port=####
(where #### is the actual port number) to the end of your connection string
- Click over to the “API Docs” tab, expand your new service, and perform a simple GET request to verify connectivity.