<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The cPanel Admin &#187; postgres</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/postgres/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Installing PostgreSQL</title>
		<link>http://www.thecpaneladmin.com/installing-postgresql/</link>
		<comments>http://www.thecpaneladmin.com/installing-postgresql/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 22:43:22 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[third party]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=61</guid>
		<description><![CDATA[PostgreSQL is an open-source database server similar (but different) than MySQL. cPanel has a built-in installer for setting up PostgreSQL easily. Keep in mind that the actual version of PostgreSQL you get depends on your OS version. For instance, CentOS 4 users will likely get version 7, CentOS 5 will get version 8. First, run [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-imagemagick-oncpanel-server/' rel='bookmark' title='Installing ImageMagick on a cPanel Server'>Installing ImageMagick on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/change-ftp-port/' rel='bookmark' title='How to Change Your FTP Port'>How to Change Your FTP Port</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-perl-modules/' rel='bookmark' title='Installing Perl Modules'>Installing Perl Modules</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>PostgreSQL is an open-source database server similar (but different) than MySQL. cPanel has a built-in installer for setting up PostgreSQL easily. Keep in mind that the actual version of PostgreSQL you get depends on your OS version. For instance, CentOS 4 users will likely get version 7, CentOS 5 will get version 8.</p>
<p>First, run the install script from command line</p>
<blockquote><p>/scripts/installpostgres</p></blockquote>
<p>Then in WHM under <strong>SQL Services &gt;&gt; Postgres Config</strong> Choose <strong>Install Config</strong>. Once the config has been installed set a root password for PostgreSQL (Only Alphanumerics). If you hav a firewall, you may want to open port 5432.</p>
<p>PostgreSQL is installed now, but PHP is not compiled for it, so you&#8217;ll need to run EasyApache and enable PHP with PostgreSQL (pgsql) support. You can do this manually, or through WHM.  If doing so manually, here is the configure switch (or use with /var/cpanel/easy/apache/custom/rawopts  [<a href="http://www.cpanel.net/documentation/easyapache/ea3custom_flags.html" target="_blank">info</a>])</p>
<p><code>--with-pgsql=/usr</code></p>
<p>Now when you log into cPanel you&#8217;ll see a section for PostgreSQL.  You&#8217;ll probably notice the phpMyAdmin wannabe <strong>phpPgAdmin</strong> which is the database management tool for Postgres. If  you don&#8217;t see this option, make sure it&#8217;s enabled in WHM &gt; Feature Manager.</p>
<p>Now edit <strong>/var/lib/pgsql/data/postgresql.conf</strong> and edit some settings:</p>
<p><code>port = 5432</code></p>
<p>Postgres 7:</p>
<p><code>tcpip_socket = true</code></p>
<p>Postgres 8:</p>
<p><code>listen_addresses='*'</code></p>
<p>Now restart the postgres service:</p>
<blockquote><p>service postgres restart</p></blockquote>
<p>Note that if you&#8217;re installing PostgreSQL on a server that already has users on it, privileges will not be added by default for those existing users. To add privileges, run this command:</p>
<blockquote><p>for user in `ls /var/cpanel/users` ; do su $user -c &#8220;createuser -S -D -R $i&#8221; postgres; done</p></blockquote>
<p><map name='google_ad_map_61_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/61?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_61_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=61&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Finstalling-postgresql%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=61&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-imagemagick-oncpanel-server/' rel='bookmark' title='Installing ImageMagick on a cPanel Server'>Installing ImageMagick on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/change-ftp-port/' rel='bookmark' title='How to Change Your FTP Port'>How to Change Your FTP Port</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-perl-modules/' rel='bookmark' title='Installing Perl Modules'>Installing Perl Modules</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/installing-postgresql/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

