<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.logicaldoc.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Installation_using_PostgreSQL</id>
	<title>Installation using PostgreSQL - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.logicaldoc.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Installation_using_PostgreSQL"/>
	<link rel="alternate" type="text/html" href="http://wiki.logicaldoc.com/wiki/index.php?title=Installation_using_PostgreSQL&amp;action=history"/>
	<updated>2026-09-16T13:12:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://wiki.logicaldoc.com/wiki/index.php?title=Installation_using_PostgreSQL&amp;diff=899&amp;oldid=prev</id>
		<title>Svenarajala: /* Configure PostgreSQL (Linux Ubuntu 8.10) */</title>
		<link rel="alternate" type="text/html" href="http://wiki.logicaldoc.com/wiki/index.php?title=Installation_using_PostgreSQL&amp;diff=899&amp;oldid=prev"/>
		<updated>2009-06-23T21:28:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configure PostgreSQL (Linux Ubuntu 8.10)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= &amp;#039;&amp;#039;&amp;#039;Configure PostgreSQL 8.3 (Linux Ubuntu 8.10)&amp;#039;&amp;#039;&amp;#039;  =&lt;br /&gt;
&lt;br /&gt;
== Download PostgreSQL ==&lt;br /&gt;
&lt;br /&gt;
#If you do not have PostgreSQL installed yet, open a terminal in Ubuntu and type &amp;#039;&amp;#039;&amp;#039;sudo apt-get install postgresql-8.3 postgresql-client-8.3 postgresql-contrib-8.3&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Configure Access  ==&lt;br /&gt;
&lt;br /&gt;
==== Change postgres User Password&amp;lt;br&amp;gt;  ====&lt;br /&gt;
&lt;br /&gt;
#Access the PostgreSQL interactive terminal by typing &amp;#039;&amp;#039;&amp;#039;sudo -u postgres psql template1&amp;#039;&amp;#039;&amp;#039; in an Ubuntu terminal&lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
#At the &amp;#039;&amp;#039;template1=#&amp;#039;&amp;#039; prompt, type &amp;#039;&amp;#039;&amp;#039;ALTER USER postgres with encrypted password &amp;#039;N3wP@ssw0rd!&amp;#039;; &amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter &amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
#At the &amp;#039;&amp;#039;template1=#&amp;#039;&amp;#039; prompt type &amp;#039;&amp;#039;&amp;#039;\q &amp;#039;&amp;#039;&amp;#039; and press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; to quit the PostgreSQL interactive terminal &lt;br /&gt;
&lt;br /&gt;
==== Import Additional Schema&amp;lt;br&amp;gt;  ====&lt;br /&gt;
&lt;br /&gt;
#In an Ubuntu terminal, type &amp;#039;&amp;#039;&amp;#039;sudo -u postgres psql &amp;amp;lt; /usr/share/postgresql/8.3/contrib/adminpack.sql &amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;sudo -u postgres psql &amp;amp;lt; /usr/share/postgresql/8.3/contrib/pgcrypto.sql&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==== Edit the postgresql.conf file&amp;lt;br&amp;gt;  ====&lt;br /&gt;
&lt;br /&gt;
#In an Ubuntu terminal type &amp;#039;&amp;#039;&amp;#039;sudo vim /etc/postgresql/8.3/main/postgresql.conf&amp;#039;&amp;#039;&amp;#039;, press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Scroll down to &amp;#039;&amp;#039;#listen_addresses = &amp;#039;localhost&amp;#039;&amp;#039;&amp;#039; located in the &amp;#039;&amp;#039;CONNECTIONS AND AUTHENTICATION&amp;#039;&amp;#039; section, under the &amp;#039;&amp;#039;Connection Settings&amp;#039;&amp;#039; subsection.  &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;I&amp;#039;&amp;#039;&amp;#039; to edit the file &lt;br /&gt;
#Remove the # to uncomment &amp;#039;&amp;#039;listen_addresses = &amp;#039;localhost&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Change &amp;#039;&amp;#039;listen_addresses = &amp;#039;localhost&amp;#039;&amp;#039;&amp;#039; to &amp;#039;&amp;#039;&amp;#039;listen_addresses = &amp;#039;*&amp;#039;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Scroll down to &amp;#039;&amp;#039;#password_encryption = on&amp;#039;&amp;#039; in the &amp;#039;&amp;#039;Security and Authentication&amp;#039;&amp;#039; subsection&lt;br /&gt;
#Remove the &amp;#039;&amp;#039;&amp;#039;# &amp;#039;&amp;#039;&amp;#039;to uncomment &amp;#039;&amp;#039;password_encryption = on&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Esc&amp;#039;&amp;#039;&amp;#039;, then type&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;:wq &amp;#039;&amp;#039;&amp;#039; to write your changes to disk and quit the editor&lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
====Edit the pg_hba.conf file====&lt;br /&gt;
&lt;br /&gt;
#In an Ubuntu terminal, type &amp;#039;&amp;#039;&amp;#039;sudo vim /etc/postgresql/8.3/main/pg_hba.conf &amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Scroll down toward the bottom &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;I &amp;#039;&amp;#039;&amp;#039;to edit &lt;br /&gt;
#Use the &amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039; to comment out all the lines:&amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;host all all&amp;amp;nbsp;::1/128 md5 &amp;#039;&amp;#039;&amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;local all all ident sameuser &amp;#039;&amp;#039;&amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;#&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;local all postgres ident sameuser &amp;#039;&amp;#039; &lt;br /&gt;
#Type the following lines at the end of the file:&amp;lt;br&amp;gt;&amp;#039;&amp;#039;&amp;#039;local all postgres trust&amp;lt;br&amp;gt;local all postgres 127.0.0.1/32 md5&amp;lt;br&amp;gt;host all all 10.60.100.0 255.255.255.0 md5&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&amp;lt;pre&amp;gt;Note: This will be the local network IP range that the server is on.&amp;lt;/pre&amp;gt;[[Image:postgresql_pg_hba_conf_edit.gif]]&lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Esc&amp;#039;&amp;#039;&amp;#039;, then type&amp;amp;nbsp;&amp;#039;&amp;#039;&amp;#039;:wq&amp;#039;&amp;#039;&amp;#039; and press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; to write your changes to disk and quit&lt;br /&gt;
&lt;br /&gt;
== Restart PostgreSQL  ==&lt;br /&gt;
&lt;br /&gt;
#In an Ubuntu terminal, type &amp;#039;&amp;#039;&amp;#039;sudo /etc/init.d/postgresql-8.3 restart&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Configure Database for Logicaldoc  ==&lt;br /&gt;
&lt;br /&gt;
#In an Ubuntu terminal, type &amp;#039;&amp;#039;&amp;#039;sudo –u postgres createdb logicaldocdb&amp;#039;&amp;#039;&amp;#039; and press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;sudo –u postgres psql logicaldocdb&amp;#039;&amp;#039;&amp;#039; and press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&amp;lt;pre&amp;gt;Note: If prompted for a password, use the postgres password &amp;lt;/pre&amp;gt;  &lt;br /&gt;
#At the PostgreSQL interactive terminal prompt, type &amp;#039;&amp;#039;&amp;#039;CREATE ROLE logicaldocgroup INHERIT;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;CREATE ROLE logicaldocservice LOGIN NOINHERIT; &amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;GRANT logicaldocgroup TO logicaldocservice;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;ALTER USER logicaldocservice with encrypted password &amp;#039;LogicaldocPassword&amp;#039;;&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;ALTER DATABASE logicaldocdb OWNER TO logicaldocgroup; &amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; &lt;br /&gt;
#Type &amp;#039;&amp;#039;&amp;#039;\q&amp;#039;&amp;#039;&amp;#039; and press &amp;#039;&amp;#039;&amp;#039;Enter&amp;#039;&amp;#039;&amp;#039; to return to the Ubuntu terminal prompt&lt;br /&gt;
&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Svenarajala</name></author>
	</entry>
</feed>