Hello, we use the next steps to configure our PostgreSQL:<br /><br />There are some assumptions:<br /><br />* postgresql is installed in $PGSQL_HOME and it is running (see PostgreSQL doc)<br />* liferay-ext is customized in $LEP_EXT directory (see Liferay doc to customize your Liferay Portal)<br /><br /><br />1. Create a user, i.e. 'lpuser', with password, i.e. 'lpuser', in postgresql. Type `createuser -a -d -W -P lpuser`<br /><br />2. Create a database, i.e. 'lportal', in postgresql. Type `createdb -E ISO-8859-1 -U lpuser lportal`<br /><br />3. Change to the folder $LEP_EXT/sql/portal and populate the database schema, type `psql -U lpuser -d lportal -f portal-postgresql.sql`<br /><br />4. Edit $PGSQL_HOME/data/pg_hba.conf and sets the access control rights<br /><br />5. Download the postgresql drivers to the $LEP_EXT/servers/jboss-tomcat/server/default/lib/ext folder. If it doesn't exist, create it.<br /><br />6. Edit $LEP_EXT/servers/jboss-tomcat/server/default/deploy/liferay-ds.xml as follows:<br /><br /><datasources><br /> <local-tx-datasource><br /> <jndi-name>jdbc/LiferayPool</jndi-name><br /> <connection-url><br /> jdbc:postgresql://myhost:5432/lportal<br /> </connection-url><br /> <driver-class>org.postgresql.Driver</driver-class><br /> <user-name>lpuser</user-name><br /> <password>lpuser</password><br /> <min-pool-size>5</min-pool-size><br /> </local-tx-datasource><br /></datasources><br /><br />Good luck.<br />
Please sign in to flag this as inappropriate.