[GH-ISSUE #1791] how to modify default configurations #1413

Closed
opened 2026-02-27 11:16:58 +03:00 by kerem · 3 comments
Owner

Originally created by @XiaotianZha on GitHub (Nov 21, 2019).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1791

Impacted versions

Latest Modoboa installer on Centos 7.

  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

Install Modoboa on Centos 7 following install directions.

git clone https://github.com/modoboa/modoboa-installer
cd modoboa-installer/
./run.py mytestdomain.xyz

Current behavior

After installing there is a tips :
Congratulations! You can enjoy Modoboa at https://xxxx (admin:password)
And Modoboa is running now. but the configurations of Modoboa are using default .
I have noticed that there is a file named settings.py, but I'm new to python ,I don't know to make modification be effective.(Restart the server or something like?)

Originally created by @XiaotianZha on GitHub (Nov 21, 2019). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1791 # Impacted versions Latest Modoboa installer on Centos 7. * installer used: Yes * Webserver: Nginx # Steps to reproduce Install Modoboa on Centos 7 following install directions. git clone https://github.com/modoboa/modoboa-installer cd modoboa-installer/ ./run.py mytestdomain.xyz # Current behavior After installing there is a tips : Congratulations! You can enjoy Modoboa at https://xxxx (admin:password) And Modoboa is running now. but the configurations of Modoboa are using default . I have noticed that there is a file named settings.py, but I'm new to python ,I don't know to make modification be effective.(Restart the server or something like?)
kerem closed this issue 2026-02-27 11:16:58 +03:00
Author
Owner

@tonioo commented on GitHub (Nov 22, 2019):

@XiaotianZha You must reload uwsgi every time you update the settings.py file.

<!-- gh-comment-id:557541935 --> @tonioo commented on GitHub (Nov 22, 2019): @XiaotianZha You must reload uwsgi every time you update the settings.py file.
Author
Owner

@XiaotianZha commented on GitHub (Nov 24, 2019):

@XiaotianZha You must reload uwsgi every time you update the settings.py file.

I modified the condfiguration of db to a mysql server , after reload uwsgi , there is a Internal Server Error when I access the webmail.
And there is an error log in var/spool/mail/root

"django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb.
Did you install mysqlclient or MySQL-python?"

I have already use the pip install mysqlclient MySQL-python, but it seems not in install into the write path

<!-- gh-comment-id:557868403 --> @XiaotianZha commented on GitHub (Nov 24, 2019): > @XiaotianZha You must reload uwsgi every time you update the settings.py file. I modified the condfiguration of db to a mysql server , after reload uwsgi , there is a Internal Server Error when I access the webmail. And there is an error log in var/spool/mail/root ``` "django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb. Did you install mysqlclient or MySQL-python?" ``` I have already use the pip install mysqlclient MySQL-python, but it seems not in install into the write path
Author
Owner

@XiaotianZha commented on GitHub (Nov 24, 2019):

@XiaotianZha You must reload uwsgi every time you update the settings.py file.

I modified the condfiguration of db to a mysql server , after reload uwsgi , there is a Internal Server Error when I access the webmail.
And there is an error log in var/spool/mail/root

"django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb.
Did you install mysqlclient or MySQL-python?"

I have already use the pip install mysqlclient MySQL-python, but it seems not in install into the write path

I have solved this problem after learning the python virtualenv , now it seems I need to re-built table in the new db

<!-- gh-comment-id:557872024 --> @XiaotianZha commented on GitHub (Nov 24, 2019): > > @XiaotianZha You must reload uwsgi every time you update the settings.py file. > > I modified the condfiguration of db to a mysql server , after reload uwsgi , there is a Internal Server Error when I access the webmail. > And there is an error log in var/spool/mail/root > > ``` > "django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb. > Did you install mysqlclient or MySQL-python?" > ``` > > I have already use the pip install mysqlclient MySQL-python, but it seems not in install into the write path I have solved this problem after learning the python virtualenv , now it seems I need to re-built table in the new db
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1413
No description provided.