<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://iredmail.org/wiki/skins/common/feed.css?207"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>Install/iRedAdmin-Pro/PGSQL/RHEL - Revision history</title>
		<link>http://iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/PGSQL/RHEL&amp;action=history</link>
		<description>Revision history for this page on the wiki</description>
		<language>en</language>
		<generator>MediaWiki 1.15.5</generator>
		<lastBuildDate>Fri, 24 May 2013 19:58:29 GMT</lastBuildDate>
		<item>
			<title>ZhangHuangbin:&amp;#32;/* System requirements */</title>
			<link>http://iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/PGSQL/RHEL&amp;diff=2042&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;System requirements&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 05:31, 6 May 2012&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*** '''mod_wsgi''' 2.1+. Apache module used to host Python application which supports the Python WSGI interface.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*** '''mod_wsgi''' 2.1+. Apache module used to host Python application which supports the Python WSGI interface.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** '''Python''' 2.4+, core programming language. Warning: Python 3.x is not supported yet.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** '''Python''' 2.4+, core programming language. Warning: Python 3.x is not supported yet.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;** '''&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Web&lt;/del&gt;.py''', 0.32+. A python-powered web framework.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;*&lt;/ins&gt;** '''&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;web&lt;/ins&gt;.py''', 0.32+. A python-powered web framework.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*** '''psycopg2'''. A interface to the popular PostgreSQL database server that provides the Python database API.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;*** '''psycopg2'''. A interface to the popular PostgreSQL database server that provides the Python database API.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-24 19:58:29 --&gt;
&lt;/table&gt;</description>
			<pubDate>Sun, 06 May 2012 05:31:33 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://iredmail.org/wiki/index.php?title=Talk:Install/iRedAdmin-Pro/PGSQL/RHEL</comments>		</item>
		<item>
			<title>ZhangHuangbin:&amp;#32;/* Configure iRedAdmin */</title>
			<link>http://iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/PGSQL/RHEL&amp;diff=2027&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Configure iRedAdmin&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:49, 6 May 2012&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{cmd|&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{cmd|&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# cd /var/www/iredadmin/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# cd /var/www/iredadmin/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# cp settings.ini.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql&lt;/del&gt;.sample settings.ini&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# cp settings.ini.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;pgsql&lt;/ins&gt;.sample settings.ini&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# chown iredadmin:iredadmin settings.ini&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# chown iredadmin:iredadmin settings.ini&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# chmod 0400 settings.ini&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# chmod 0400 settings.ini&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-24 19:58:29 --&gt;
&lt;/table&gt;</description>
			<pubDate>Sun, 06 May 2012 03:49:46 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://iredmail.org/wiki/index.php?title=Talk:Install/iRedAdmin-Pro/PGSQL/RHEL</comments>		</item>
		<item>
			<title>ZhangHuangbin:&amp;#32;/* Create necessary PostgreSQL database and grant privileges */</title>
			<link>http://iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/PGSQL/RHEL&amp;diff=2026&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Create necessary PostgreSQL database and grant privileges&lt;/span&gt;&lt;/p&gt;

		&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;col class='diff-marker' /&gt;
		&lt;col class='diff-content' /&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 03:49, 6 May 2012&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 65:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Create necessary PostgreSQL database and grant privileges =&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Create necessary PostgreSQL database and grant privileges =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* &lt;/del&gt;Create &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;MySQL &lt;/del&gt;database: iredadmin. Used to store sessions, admin operation logs, etc.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;# &lt;/ins&gt;Create &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SQL &lt;/ins&gt;database: iredadmin. Used to store sessions, admin operation logs, etc&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;# Create SQL user: iredadmin, with password 'plain_password' (without quotes).&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;# Create required SQL tables and grant privileges&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{cmd|&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{cmd|&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql &lt;/del&gt;-&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;uroot -p&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;# &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;su &lt;/ins&gt;- &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;postgres&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql&lt;/del&gt;&amp;gt; CREATE DATABASE iredadmin &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;$ psql&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql&lt;/del&gt;&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;USE &lt;/del&gt;iredadmin;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sql&lt;/ins&gt;&amp;gt; CREATE DATABASE iredadmin &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;WITH TEMPLATE template0 ENCODING 'UTF8'&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql&lt;/del&gt;&amp;gt; &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SOURCE &lt;/del&gt;/var/www/iredadmin/docs/samples/iredadmin.pgsql;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sql&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CREATE ROLE &lt;/ins&gt;iredadmin &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;WITH LOGIN ENCRYPTED PASSWORD 'plain_password' NOSUPERUSER NOCREATEDB NOCREATEROLE&lt;/ins&gt;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;&amp;lt;/pre&lt;/del&gt;&amp;gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sql&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;\c iredadmin;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sql&amp;gt; \i &lt;/ins&gt;/var/www/iredadmin/docs/samples/iredadmin.pgsql;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;* Grant privileges &lt;/del&gt;to iredadmin &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;user and set password for it.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sql&lt;/ins&gt;&amp;gt; &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;GRANT INSERT,UPDATE,DELETE,SELECT on sessions,log,updatelog &lt;/ins&gt;to iredadmin&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;sql&lt;/ins&gt;&amp;gt; GRANT &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;UPDATE&lt;/ins&gt;,&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;USAGE&lt;/ins&gt;,&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;SELECT &lt;/ins&gt;ON &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;log_id_seq &lt;/ins&gt;TO iredadmin;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;'''WARNING''': Here we use 'plain_passwd' as password of iredadmin user, please replace it with your own password.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{cmd|&amp;lt;pre&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;# mysql -uroot -p&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql&lt;/del&gt;&amp;gt; GRANT &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;SELECT&lt;/del&gt;,&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;INSERT&lt;/del&gt;,&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;UPDATE,DELETE &lt;/del&gt;ON &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;iredadmin.* &lt;/del&gt;TO iredadmin&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;@localhost IDENTIFIED BY 'plain_passwd';&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mysql&amp;gt; FLUSH PRIVILEGES&lt;/del&gt;;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-24 19:58:29 --&gt;
&lt;/table&gt;</description>
			<pubDate>Sun, 06 May 2012 03:49:20 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://iredmail.org/wiki/index.php?title=Talk:Install/iRedAdmin-Pro/PGSQL/RHEL</comments>		</item>
		<item>
			<title>ZhangHuangbin:&amp;#32;Created page with '__TOC__  If you already have iRedAdmin open source edition installed, you can migrate from iRedAdmin open source edition to iRedAdmin-Pro with just few steps: * [[Migrate/iRedAdm…'</title>
			<link>http://iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/PGSQL/RHEL&amp;diff=2025&amp;oldid=prev</link>
			<description>&lt;p&gt;Created page with &amp;#39;__TOC__  If you already have iRedAdmin open source edition installed, you can migrate from iRedAdmin open source edition to iRedAdmin-Pro with just few steps: * [[Migrate/iRedAdm…&amp;#39;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__TOC__&lt;br /&gt;
&lt;br /&gt;
If you already have iRedAdmin open source edition installed, you can migrate from iRedAdmin open source edition to iRedAdmin-Pro with just few steps:&lt;br /&gt;
* [[Migrate/iRedAdmin-Pro/OSE-Pro |Migrate from iRedAdmin open source edition to iRedAdmin-Pro]]&lt;br /&gt;
&lt;br /&gt;
= Summary =&lt;br /&gt;
* This installation guide is used to install iRedAdmin-Pro-PGSQL on Red Hat Enterprise Linux, CentOS, Scientific Linux. Both 5.x and 6.x are supported.&lt;br /&gt;
* iRedAdmin-Pro is official web-based admin panel for iRedMail. There're three editions available:&lt;br /&gt;
** '''iRedAdmin-Pro-LDAP''': works with OpenLDAP backend.&lt;br /&gt;
** '''iRedAdmin-Pro-MySQL''': works with MySQL backend.&lt;br /&gt;
** '''iRedAdmin-Pro-PGSQL''': works with PostgreSQL backend.&lt;br /&gt;
&lt;br /&gt;
= System requirements =&lt;br /&gt;
* iRedMail-0.8.0 or later releases.&lt;br /&gt;
* iRedAdmin-Pro-PGSQL-1.0 or later releases.&lt;br /&gt;
&lt;br /&gt;
* Required Packages. They all are installed automatically during iRedMail installation.&lt;br /&gt;
** '''Apache''', 2.2+. Web server.&lt;br /&gt;
*** '''mod_wsgi''' 2.1+. Apache module used to host Python application which supports the Python WSGI interface.&lt;br /&gt;
** '''Python''' 2.4+, core programming language. Warning: Python 3.x is not supported yet.&lt;br /&gt;
** '''Web.py''', 0.32+. A python-powered web framework.&lt;br /&gt;
*** '''psycopg2'''. A interface to the popular PostgreSQL database server that provides the Python database API.&lt;br /&gt;
&lt;br /&gt;
iRedAdmin will run with a low-privileged system user: iredadmin, which is created automatically during iRedMail installation, too.&lt;br /&gt;
&lt;br /&gt;
= Download iRedAdmin and configure Apache web server =&lt;br /&gt;
* Get iRedAdmin:&lt;br /&gt;
** If you purchased iRedAdmin-Pro-PGSQL, you should already have it. If not, please mail to '''support@ iredmail.org''' to get a download link.&lt;br /&gt;
** If you didn't purchase iRedAdmin-Pro-PGSQL, download iRedAdmin open source edition from [http://www.iredmail.org/download.html#iredadmin download page].&lt;br /&gt;
&lt;br /&gt;
* Copy iRedAdmin to /var/www/, set correct file permissions, and create symbol link.&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;&lt;br /&gt;
# tar xjf iRedAdmin-x.y.z.tar.bz2 -C /var/www/&lt;br /&gt;
# cd /var/www/&lt;br /&gt;
# chown -R iredadmin:iredadmin iRedAdmin-x.y.z&lt;br /&gt;
# chmod -R 0755 iRedAdmin-x.y.z&lt;br /&gt;
# ln -s iRedAdmin-x.y.z iredadmin&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Add apache configure file: /etc/httpd/conf.d/iredadmin.conf.&lt;br /&gt;
{{cfg|/etc/httpd/conf.d/iredadmin.conf|&amp;lt;pre&amp;gt;&lt;br /&gt;
WSGISocketPrefix /var/run/wsgi&lt;br /&gt;
WSGIDaemonProcess iredadmin user=iredadmin threads=15&lt;br /&gt;
WSGIProcessGroup iredadmin&lt;br /&gt;
&lt;br /&gt;
AddType text/html .py&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Directory /var/www/iredadmin/&amp;gt;&lt;br /&gt;
    Order deny,allow&lt;br /&gt;
    Allow from all&lt;br /&gt;
&amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Edit /etc/httpd/conf.d/ssl.conf, make iredadmin accessable via HTTPS. Add below lines before &amp;lt;/VirtualHost&amp;gt;:&lt;br /&gt;
{{cfg|/etc/httpd/conf.d/ssl.conf|&amp;lt;pre&amp;gt;&lt;br /&gt;
WSGIScriptAlias /iredadmin /var/www/iredadmin/iredadmin.py/&lt;br /&gt;
Alias /iredadmin/static /var/www/iredadmin/static/&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Restart apache to enable mod_wsgi:&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;&lt;br /&gt;
# /etc/init.d/httpd restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Create necessary PostgreSQL database and grant privileges =&lt;br /&gt;
&lt;br /&gt;
* Create MySQL database: iredadmin. Used to store sessions, admin operation logs, etc.&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;&lt;br /&gt;
# mysql -uroot -p&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE iredadmin DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;&lt;br /&gt;
mysql&amp;gt; USE iredadmin;&lt;br /&gt;
mysql&amp;gt; SOURCE /var/www/iredadmin/docs/samples/iredadmin.pgsql;&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Grant privileges to iredadmin user and set password for it.&lt;br /&gt;
&lt;br /&gt;
'''WARNING''': Here we use 'plain_passwd' as password of iredadmin user, please replace it with your own password.&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;&lt;br /&gt;
# mysql -uroot -p&lt;br /&gt;
mysql&amp;gt; GRANT SELECT,INSERT,UPDATE,DELETE ON iredadmin.* TO iredadmin@localhost IDENTIFIED BY 'plain_passwd';&lt;br /&gt;
mysql&amp;gt; FLUSH PRIVILEGES;&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Configure iRedAdmin =&lt;br /&gt;
&lt;br /&gt;
The major config file of iRedAdmin is file '''/var/www/iredadmin/settings.ini'''.&lt;br /&gt;
&lt;br /&gt;
* Copy example config file, and set correct file permission.&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;&lt;br /&gt;
# cd /var/www/iredadmin/&lt;br /&gt;
# cp settings.ini.mysql.sample settings.ini&lt;br /&gt;
# chown iredadmin:iredadmin settings.ini&lt;br /&gt;
# chmod 0400 settings.ini&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''NOTE''': If you are installing iRedAdmin-Pro, and have iRedAdmin open source edition installed, you can simply copy '''settings.ini''' from open source edition. Don't forget to set correct file owner and permission after copied.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Edit '''settings.ini'''.&lt;br /&gt;
&lt;br /&gt;
'''NOTE''':&lt;br /&gt;
** All required usernames/passwords are stored in '''iRedMail.tips''' which generated during iRedMail installation, placed under iRedMail directory. e.g. /root/iRedMail-0.8.0/iRedMail.tips.&lt;br /&gt;
** For more inforamtion, please open '''settings.ini''', it's self-documented.&lt;br /&gt;
{{cfg|settings.ini|&amp;lt;pre&amp;gt;&lt;br /&gt;
[general]&lt;br /&gt;
# General settings ...&lt;br /&gt;
&lt;br /&gt;
[iredadmin]&lt;br /&gt;
# Database &amp;quot;iredadmin&amp;quot;. required by iRedAdmin.&lt;br /&gt;
&lt;br /&gt;
[vmaildb]&lt;br /&gt;
# Database &amp;quot;vmail&amp;quot;, stored all mail accounts.&lt;br /&gt;
&lt;br /&gt;
[policyd]&lt;br /&gt;
# Database &amp;quot;policyd&amp;quot;. Required for policyd integration.&lt;br /&gt;
&lt;br /&gt;
[amavisd]&lt;br /&gt;
# Database &amp;quot;amavisd&amp;quot;. Required for Amavisd-New integration. includes spam quarantining/releasing.&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Restart apache web server.&lt;br /&gt;
{{cmd|&amp;lt;pre&amp;gt;&lt;br /&gt;
# /etc/init.d/httpd restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
* Open your web browser to access iRedAdmin: https://your_server_ip_address/iredadmin/&lt;br /&gt;
** '''NOTE''': Make sure you use HTTPS:// instead of HTTP://.&lt;br /&gt;
&lt;br /&gt;
= Troubleshooting =&lt;br /&gt;
If iRedAdmin doesn't work as expected, you can set '''debug = True''' in settings.ini to turn on debug mode, restart apache web server, use your favourite web browser to access it again, create a new forum topic and paste error message in forum topic.&lt;br /&gt;
{{cfg|settings.ini|&amp;lt;pre&amp;gt;&lt;br /&gt;
[general]&lt;br /&gt;
debug = True&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;/div&gt;</description>
			<pubDate>Sun, 06 May 2012 03:44:33 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://iredmail.org/wiki/index.php?title=Talk:Install/iRedAdmin-Pro/PGSQL/RHEL</comments>		</item>
	</channel>
</rss>