Install/iRedAdmin-Pro/MySQL/RHEL

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(Install necessary packages)
Line 14: Line 14:
= Install necessary packages =
= Install necessary packages =
 +
 +
* Make sure you have iRedMail yum repository configured: /etc/yum.repos.d/iRedMail.repo.
 +
{{cfg|/etc/yum.repos.d/iRedMail.repo|<pre>
 +
[iRedMail]
 +
name=iRedMail
 +
baseurl=http://iredmail.org/yum/rpms/5/
 +
enabled=1
 +
gpgcheck=0
 +
priority=1
 +
</pre>}}
 +
 +
* Install necessary packages.
 +
{{cmd|<pre>
 +
# ---- For i386 ----
 +
# yum install python-webpy python-jinja2 MySQL-python mod_wsgi
 +
 +
# ---- For x86_64 ----
 +
# yum install MySQL-python.x86_64 python-webpy.noarch python-jinja2.x86_64 mod_wsgi.x86_64
 +
</pre>}}
 +
= Download iRedAdmin and configure Apache web server =
= Download iRedAdmin and configure Apache web server =
= Create necessary MySQL database and grant privileges =
= Create necessary MySQL database and grant privileges =
= Configure iRedAdmin =
= Configure iRedAdmin =
= Troubleshooting =
= Troubleshooting =

Revision as of 02:52, 29 January 2011

Contents

System requirements

  • Apache, 2.2+. Web server. Already shipped within RHEL/CentOS 5.x.
    • mod_wsgi 2.1+. Apache module used to host Python application which supports the Python WSGI interface.
  • Python 2.4+, core programming language. Already shipped within RHEL/CentOS 5.x. Warning: Python 3.x is not supported yet.
  • Web.py, 0.32+. A python-powered web framework.
    • MySQLdb. A thread-compatible interface to the popular MySQL database server that provides the Python database API.

Add new system account: iredadmin

We will make iRedAdmin run with Apache web server, but as non-apache, low privilege user: iredadmin.

Terminal:
# useradd -s /sbin/nologin -m -d /home/iredadmin iredadmin

Install necessary packages

  • Make sure you have iRedMail yum repository configured: /etc/yum.repos.d/iRedMail.repo.
File: /etc/yum.repos.d/iRedMail.repo
[iRedMail]
name=iRedMail
baseurl=http://iredmail.org/yum/rpms/5/
enabled=1
gpgcheck=0
priority=1
  • Install necessary packages.
Terminal:
# ---- For i386 ----
# yum install python-webpy python-jinja2 MySQL-python mod_wsgi

# ---- For x86_64 ----
# yum install MySQL-python.x86_64 python-webpy.noarch python-jinja2.x86_64 mod_wsgi.x86_64

Download iRedAdmin and configure Apache web server

Create necessary MySQL database and grant privileges

Configure iRedAdmin

Troubleshooting

Personal tools