Topic: ImportError: No module named settings
======== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 MYSQL edition
- Linux/BSD distribution name and version: Ubuntu 16.04.3 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache2
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
mod_wsgi (pid=19601, process='', application='mail.---.com|/iredadmin'): Loading WSGI script '/opt/www/iredadmin/iredadmin.py'.
mod_wsgi (pid=19601): Target WSGI script '/opt/www/iredadmin/iredadmin.py' cannot be loaded as Python module.
mod_wsgi (pid=19601): Exception occurred processing WSGI script '/opt/www/iredadmin/iredadmin.py'.
Traceback (most recent call last):
File "/opt/www/iredadmin/iredadmin.py", line 9, in <module>
from libs import iredbase
File "/opt/www/iredadmin/libs/iredbase.py", line 18, in <module>
import iredutils
File "/opt/www/iredadmin/libs/iredutils.py", line 14, in <module>
import settings
ImportError: No module named settings
settings.py is in /opt/www/iredadmin/
Update:
I've installed this on a web server, virtual hosting a few sites and after fixing the changes iRedMail make to my conf, I had to manually wire up the mail.xyz.com address to point to /opt/www/iredadmin/
Update 2:
So I've found a found another post and this is the result of the command for me:
$ sudo grep -i 'iredadmin' /etc/apache2/sites-enabled/xyz.com
Alias /iredadmin/static "/opt/www/iredadmin/static/"
WSGIScriptAlias /iredadmin "/opt/www/iredadmin/iredadmin.py/"
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.