PostgreSQL Installation
From DreamFactory
(→Windows) |
|||
Line 1: | Line 1: | ||
== Linux == | == Linux == | ||
− | # [[DreamFactory/Installation#Linux|Install DreamFactory]]. (The below steps assume a DreamFactory install in <code>~/ | + | # [[DreamFactory/Installation#Linux|Install DreamFactory]]. (The below steps assume a DreamFactory install in <code>~/df/</code> with its PHP installed in <code>~/df/php/</code>.) |
− | # Check <code>~/ | + | # Check <code>~/df/php/etc/php.ini</code> to ensure the values <code>extension=pgsql.so</code> and <code>extension=pdo_pgsql.so</code> are present and uncommented. (In the Bitnami installer they already are.) |
− | # Check <code>~/ | + | # Check <code>~/df/php/lib/php/extensions/</code> to ensure <code>pgsql.so</code> and <code>pdo_pgsql.so</code> are present. (These are included in the Bitnami package.) |
# If you made any changes/additions in steps ii and iii, restart your Apache server. | # 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. | # 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. | ||
Line 16: | Line 16: | ||
== Mac == | == Mac == | ||
− | # [[DreamFactory/Installation#Mac_OS_X|Install DreamFactory]]. (The below steps assume a DreamFactory install in <code>/Applications/ | + | # [[DreamFactory/Installation#Mac_OS_X|Install DreamFactory]]. (The below steps assume a DreamFactory install in <code>/Applications/df/</code> with its PHP installed in <code>/Applications/df/php/</code>.) |
− | # Check <code>/Applications/ | + | # Check <code>/Applications/df/php/etc/php.ini</code> to ensure the values <code>extension=pgsql.so</code> and <code>extension=pdo_pgsql.so</code> are present and uncommented. (In the Bitnami installer they already are.) |
− | # Check <code>/Applications/ | + | # Check <code>/Applications/df/php/lib/php/extensions/</code> to ensure <code>pgsql.so</code> and <code>pdo_pgsql.so</code> are present. (These are included in the Bitnami package.) |
# If you made any changes/additions in steps ii and iii, restart your Apache server. | # 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. | # 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. | ||
Line 31: | Line 31: | ||
== Windows == | == Windows == | ||
− | # [[DreamFactory/Installation#Windows_2|Install DreamFactory]]. (The below steps assume a DreamFactory install in <code>C:\ | + | # [[DreamFactory/Installation#Windows_2|Install DreamFactory]]. (The below steps assume a DreamFactory install in <code>C:\df\</code> with its PHP installed in <code>C:\df\php\</code>.) |
− | # Check <code>C:\ | + | # Check <code>C:\df\php\php.ini</code> to ensure the value <code>extension=php_pdo_pgsql.dll</code> is present and uncommented. (In the Bitnami installer it already is.) |
− | # Check <code>C:\ | + | # Check <code>C:\df\php\ext\</code> to ensure <code>php_pdo_pgsql.dll</code> is present. (This is included in the Bitnami package.) |
# If you made any changes/additions in steps ii and iii, restart your Apache server. | # 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. | # 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. |
Revision as of 14:23, 28 April 2017
Linux
- Install DreamFactory. (The below steps assume a DreamFactory install in
~/df/
with its PHP installed in~/df/php/
.) - Check
~/df/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
~/df/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/df/
with its PHP installed in/Applications/df/php/
.) - Check
/Applications/df/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/df/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:\df\
with its PHP installed inC:\df\php\
.) - Check
C:\df\php\php.ini
to ensure the valueextension=php_pdo_pgsql.dll
is present and uncommented. (In the Bitnami installer it already is.) - Check
C:\df\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 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.