<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://www.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/MySQL/Gentoo - Revision history</title>
		<link>http://www.iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/MySQL/Gentoo&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 08:09:53 GMT</lastBuildDate>
		<item>
			<title>ZhangHuangbin:&amp;#32;/* Summary */</title>
			<link>http://www.iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/MySQL/Gentoo&amp;diff=2020&amp;oldid=prev</link>
			<description>&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Summary&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 00:50, 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 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;= Summary =&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;= Summary =&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;* This installation guide is used to install iRedAdmin-Pro-MySQL on &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Red Hat Enterprise &lt;/del&gt;Linux&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;, CentOS, Scientific Linux. Both 5.x and 6.x are supported&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;* This installation guide is used to install iRedAdmin-Pro-MySQL on &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Gentoo &lt;/ins&gt;Linux.&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;* iRedAdmin-Pro is official web-based admin panel for iRedMail. There're three editions available:&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;* iRedAdmin-Pro is official web-based admin panel for iRedMail. There're three editions available:&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;** '''iRedAdmin-Pro-LDAP''': works with OpenLDAP backend.&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;** '''iRedAdmin-Pro-LDAP''': works with OpenLDAP backend.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff generator: internal 2013-05-24 08:09:53 --&gt;
&lt;/table&gt;</description>
			<pubDate>Sun, 06 May 2012 00:50:28 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:Install/iRedAdmin-Pro/MySQL/Gentoo</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://www.iredmail.org/wiki/index.php?title=Install/iRedAdmin-Pro/MySQL/Gentoo&amp;diff=2019&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-MySQL 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-MySQL-1.3.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;
*** '''MySQLdb'''. A thread-compatible interface to the popular MySQL 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-MySQL, 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-MySQL, 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/apache2/modules.d/iredadmin.conf.&lt;br /&gt;
{{cfg|/etc/apache2/modules.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/apache2/vhosts.d/00_default_ssl_vhost.conf, make iredadmin accessible via HTTPS. Add below lines before &amp;lt;/VirtualHost&amp;gt;:&lt;br /&gt;
{{cfg|/etc/apache2/vhosts.d/00_default_ssl_vhost.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/apache2 restart&lt;br /&gt;
&amp;lt;/pre&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
= Create necessary MySQL 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.sql;&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/apache2 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 00:49:20 GMT</pubDate>			<dc:creator>ZhangHuangbin</dc:creator>			<comments>http://www.iredmail.org/wiki/index.php?title=Talk:Install/iRedAdmin-Pro/MySQL/Gentoo</comments>		</item>
	</channel>
</rss>