Install/iRedAdmin-Pro/MySQL/Debian

From iRedMail

(Difference between revisions)
Jump to: navigation, search
(Install necessary packages)
(Install necessary packages)
Line 15: Line 15:
= Install necessary packages =
= Install necessary packages =
-
Install binary packages as dependences, used for building python modules.
+
* Install binary packages as dependences, used for building python modules.
{{cmd|<pre>
{{cmd|<pre>
$ sudo apt-get install gcc python-setuptools python-dev \
$ sudo apt-get install gcc python-setuptools python-dev \
Line 22: Line 22:
                         libapache2-mod-wsgi \
                         libapache2-mod-wsgi \
                         python-mysqldb
                         python-mysqldb
 +
</pre>}}
 +
 +
* Install required python modules.
 +
{{cmd|<pre>
 +
$ sudo easy_install web.py Jinja2 netifaces DBUtils
</pre>}}
</pre>}}

Revision as of 03:05, 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 -m -s /sbin/nologin -d /home/iredadmin iredadmin

Install necessary packages

  • Install binary packages as dependences, used for building python modules.
Terminal:
$ sudo apt-get install gcc python-setuptools python-dev \
                        libldap2-dev libmysqlclient15-dev \
                        libsasl2-dev libssl-dev \
                        libapache2-mod-wsgi \
                        python-mysqldb
  • Install required python modules.
Terminal:
$ sudo easy_install web.py Jinja2 netifaces DBUtils

Download iRedAdmin and configure Apache web server

Create necessary MySQL database and grant privileges

Configure iRedAdmin

Troubleshooting

Personal tools