I was trying my best to make a Django website on Webuzo. But there isn't an official page to tell me how to do so, https://www.webuzo.com/docs/endusers/how-to-configure-django#create-a-django-web-project wasn't helpful as it doesn't say anything about deploying it with Mod_wsgi on Apache 2.4
I followed a guide on Digitalocean. I created a domain app.anime5s.com with Webuzo, in the domain path, I created a virtual host (python 3.6), installed Django and I created a brand new django project with django-admin command, and when I run manage.py runserver everything worked fine, and modified /usr/local/apps/apache2/etc/conf.d/webuzoVH.conf
<VirtualHost 62.171.142.251:80>
<Directory /home/admin/public_html/app.anime5s.com/cgi-bin>
RMode stat
RUidGid admin admin
</Directory>
I restarted Apache, no error was seen. But when I access the website I got a 500 error. Here's what I get in the error log file:
[Wed Feb 26 12:21:06.159875 2020] [wsgi:error] [pid 27670] [client xxx.xxx.xxx.xxx:13850] Truncated or oversized response headers received from daemon process 'app.anime5s.com_http': /home/admin/public_html/app.anime5s.com/anime5s_app/anime5s_app/wsgi.py
I was suggested to put WSGIApplicationGroup %{GLOBAL}
in httpd.conf but when I add the line in Webuzo Apache Settings and did
service httpd restart
but it still doesn't work. All the steps above worked smoothly when I did on a server without Webuzo installed (LAMP stack with python and Django)
Did I do anything wrong or there is a specific way to deploy Django on Webuzo?
Please help!
Thanks for your time and efforts involved in solving this for me!