1

Topic: installation iredadmin

Hi All

I do my iredadmin installation on redhat enterprise linux with the link below, but iredadmin doesn't work.
http://www.iredmail.org/admin_installation_rhel.html

I need Help

Best regard
roger

Errors Messages:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache Server at spike.fr.ats.com Port 443

2

Re: installation iredadmin

Could you please post error message in apache log file (/var/log/httpd/ssl_error_log)?

3

Re: installation iredadmin

ZhangHuangbin wrote:

Could you please post error message in apache log file (/var/log/httpd/ssl_error_log)?


/var/log/httpd/ssl_error_log:


[Wed Mar 03 12:38:34 2010] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Mar 03 12:38:34 2010] [error] [client 127.0.0.1]   File "/var/www/iredadmin/iredadmin.py", line 28, in ?
[Wed Mar 03 12:38:34 2010] [error] [client 127.0.0.1]     import web
[Wed Mar 03 12:38:34 2010] [error] [client 127.0.0.1] ImportError: No module named web
[Wed Mar 03 12:38:38 2010] [error] [client 127.0.0.1] mod_wsgi (pid=8392): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Mar 03 12:38:38 2010] [error] [client 127.0.0.1] mod_wsgi (pid=8392): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Wed Mar 03 12:38:38 2010] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Mar 03 12:38:38 2010] [error] [client 127.0.0.1]   File "/var/www/iredadmin/iredadmin.py", line 28, in ?
[Wed Mar 03 12:38:38 2010] [error] [client 127.0.0.1]     import web
[Wed Mar 03 12:38:38 2010] [error] [client 127.0.0.1] ImportError: No module named web
[Wed Mar 03 12:54:17 2010] [error] [client 127.0.0.1] mod_wsgi (pid=8393): Target WSGI script '/var/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
[Wed Mar 03 12:54:17 2010] [error] [client 127.0.0.1] mod_wsgi (pid=8393): Exception occurred processing WSGI script '/var/www/iredadmin/iredadmin.py'.
[Wed Mar 03 12:54:17 2010] [error] [client 127.0.0.1] Traceback (most recent call last):
[Wed Mar 03 12:54:17 2010] [error] [client 127.0.0.1]   File "/var/www/iredadmin/iredadmin.py", line 28, in ?
[Wed Mar 03 12:54:17 2010] [error] [client 127.0.0.1]     import web
[Wed Mar 03 12:54:17 2010] [error] [client 127.0.0.1] ImportError: No module named web
~

4

Re: installation iredadmin

roger kanga wrote:

ImportError: No module named web

You didn't have python-web module installed. Refer to this section:
http://www.iredmail.org/admin_installat … on-modules

5

Re: installation iredadmin

How to get and install this modules.

sudo easy_install web.py Jinja2 python-ldap==2.3.11 netifaces commande not work

6 (edited by shake 2010-03-19 11:02:18)

Re: installation iredadmin

you need first install

# ---- For i386 ----
$ sudo yum install python-setuptools.noarch MySQL-python.i386 \
                   gcc.i386 gcc-c++.i386 \
                   openssl-devel.i386 python-devel.i386 \
                   openldap-devel.i386

# ---- For x86_64 ----
$ sudo yum install python-setuptools.noarch MySQL-python.x86_64 \
                   gcc.x86_64 gcc-c++.x86_64 \
                   openssl-devel.x86_64 python-devel.x86_64 \
                   openldap-devel.x86_64

then

[root@centos54 ~]# easy_install web.py Jinja2 python-ldap==2.3.11 netifaces
Searching for web.py
Reading http://cheeseshop.python.org/pypi/web.py/
Reading http://webpy.org/
Reading http://cheeseshop.python.org/pypi/web.py/0.33
Best match: web.py 0.33
Downloading http://webpy.org/static/web.py-0.33.tar.gz
Processing web.py-0.33.tar.gz
Running web.py-0.33/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jBgqIl/web.py-0.33/egg-dist-tmp-1Z07FW
zip_safe flag not set; analyzing archive contents...
web.debugerror: module references __file__
web.application: module references __file__
Adding web.py 0.33 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/web.py-0.33-py2.4.egg
Processing dependencies for web.py
Searching for Jinja2
Reading http://cheeseshop.python.org/pypi/Jinja2/
Reading http://jinja.pocoo.org/
Reading http://cheeseshop.python.org/pypi/Jinja2/"{{
Reading http://cheeseshop.python.org/pypi/Jinja2/2.3.1
Best match: Jinja2 2.3.1
Downloading http://pypi.python.org/packages/source/J/Jinja2/Jinja2-2.3.1.tar.gz#md5=391c7dd06c62dfe7e30ebaad7af0a401
Processing Jinja2-2.3.1.tar.gz
Running Jinja2-2.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ufIhiY/Jinja2-2.3.1/egg-dist-tmp-sExEQQ
warning: no previously-included files matching '*' found under directory 'docs/_build/doctrees'
Adding Jinja2 2.3.1 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/Jinja2-2.3.1-py2.4.egg
Processing dependencies for Jinja2
Searching for python-ldap==2.3.11
Reading http://cheeseshop.python.org/pypi/python-ldap/
Reading http://www.python-ldap.org/
Reading http://cheeseshop.python.org/pypi/python-ldap/2.3.11
Best match: python-ldap 2.3.11
Downloading http://pypi.python.org/packages/source/p/python-ldap/python-ldap-2.3.11.tar.gz#md5=d23f95d497fe180be4ffc90a7f9b42ed
Processing python-ldap-2.3.11.tar.gz
Running python-ldap-2.3.11/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ub3nqM/python-ldap-2.3.11/egg-dist-tmp--5Y-s9
extra_compile_args:
extra_objects:
include_dirs: /opt/openldap-RE24/include /usr/include/sasl
library_dirs: /opt/openldap-RE24/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
Adding python-ldap 2.3.11 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/python_ldap-2.3.11-py2.4-linux-i686.egg
Processing dependencies for python-ldap==2.3.11
Searching for netifaces
Reading http://cheeseshop.python.org/pypi/netifaces/
Reading http://alastairs-place.net/netifaces
Reading http://cheeseshop.python.org/pypi/netifaces/0.5
Best match: netifaces 0.5
Downloading http://alastairs-place.net/2007/03/netifaces/netifaces-0.5.tar.gz
Processing netifaces-0.5.tar.gz
Running netifaces-0.5/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ZMerVJ/netifaces-0.5/egg-dist-tmp-43_aLx
checking for getifaddrs... found.
checking for getnameinfo... found.
checking for optional header files... netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h linux/llc.h linux/tipc.h.
checking whether struct sockaddr has a length field... no.
checking which sockaddr_xxx structs are defined... at ax25 in in6 ipx un ash ec ll llc.
zip_safe flag not set; analyzing archive contents...
Adding netifaces 0.5 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/netifaces-0.5-py2.4-linux-i686.egg
Processing dependencies for netifaces
[root@centos54 ~]#