Hi @gongomgra
Thank you for your help
I tried the code you wrote to me
sudo chown -R bitnami:daemon /opt/bitnami/apps/django/django_projects/lewhdk
sudo /opt/bitnami/ctlscript.sh restart apache
Rebooted the instance
/opt/bitnami/apache2/logs/error_log
I still get "Permission denied"
I could access the error_log file using Filezilla
Here is what I receive every time I try to access the website
[Fri Apr 17 13:45:17.871421 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] mod_wsgi (pid=2191): Failed to exec Python script file '/opt/bitnami/apps/django/django_projects/lewhdk/lewhdk/wsgi.py'.
[Fri Apr 17 13:45:17.871474 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] mod_wsgi (pid=2191): Exception occurred processing WSGI script '/opt/bitnami/apps/django/django_projects/lewhdk/lewhdk/wsgi.py'.
[Fri Apr 17 13:45:17.871586 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] Traceback (most recent call last):
[Fri Apr 17 13:45:17.871621 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] File "/opt/bitnami/apps/django/django_projects/lewhdk/lewhdk/wsgi.py", line 7, in
[Fri Apr 17 13:45:17.871626 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] application = get_wsgi_application()
[Fri Apr 17 13:45:17.871633 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] File "/opt/bitnami/apps/django/lib/python3.7/site-packages/Django-2.2.9-py3.7.egg/django/core/wsgi.py", line 12, in get_wsgi_application
[Fri Apr 17 13:45:17.871637 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] django.setup(set_prefix=False)
[Fri Apr 17 13:45:17.871642 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] File "/opt/bitnami/apps/django/lib/python3.7/site-packages/Django-2.2.9-py3.7.egg/django/__init__.py", line 24, in setup
[Fri Apr 17 13:45:17.871646 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] apps.populate(settings.INSTALLED_APPS)
[Fri Apr 17 13:45:17.871652 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] File "/opt/bitnami/apps/django/lib/python3.7/site-packages/Django-2.2.9-py3.7.egg/django/apps/registry.py", line 83, in populate
[Fri Apr 17 13:45:17.871656 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] raise RuntimeError("populate() isn't reentrant")
[Fri Apr 17 13:45:17.871683 2020] [wsgi:error] [pid 2191] [client 5.101.0.209:43444] RuntimeError: populate() isn't reentrant
[Fri Apr 17 13:51:14.454765 2020] [mpm_prefork:notice] [pid 2181] AH00169: caught SIGTERM, shutting down
[Fri Apr 17 13:51:18.329469 2020] [ssl:warn] [pid 2975] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Apr 17 13:51:18.351131 2020] [mpm_prefork:notice] [pid 2975] AH00163: Apache/2.4.41 (Unix) OpenSSL/1.1.1d mod_wsgi/4.6.7 Python/3.7 configured -- resuming normal operations
[Fri Apr 17 13:51:18.351161 2020] [core:notice] [pid 2975] AH00094: Command line: '/opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf'
[Fri Apr 17 13:51:30.899440 2020] [mpm_prefork:notice] [pid 2975] AH00169: caught SIGTERM, shutting down
[Fri Apr 17 13:52:50.750753 2020] [ssl:warn] [pid 1966] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Fri Apr 17 13:52:50.767790 2020] [mpm_prefork:notice] [pid 1966] AH00163: Apache/2.4.41 (Unix) OpenSSL/1.1.1d mod_wsgi/4.6.7 Python/3.7 configured -- resuming normal operations
[Fri Apr 17 13:52:50.767819 2020] [core:notice] [pid 1966] AH00094: Command line: '/opt/bitnami/apache2/bin/httpd.bin -f /opt/bitnami/apache2/conf/httpd.conf'
Here is the code of wsgi.py file
import os
import sys
sys.path.append('/opt/bitnami/apps/django/django_projects/lewhdk')
os.environ.setdefault("PYTHON_EGG_CACHE", "/opt/bitnami/apps/django/django_projects/lewhdk/egg_cache")
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lewhdk.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
And here is the code of httpd-app.cof file
Define IS_DJANGOSTACK_LOADED
WSGIDaemonProcess wsgi-djangostack processes=2 threads=15 display-name=%{GROUP}
Options +MultiViews
AllowOverride All
= 2.3>
Require all granted
WSGIProcessGroup wsgi-djangostack
WSGIApplicationGroup %{GLOBAL}
Alias /lewhdk/static "/opt/bitnami/apps/django/lib/python3.7/site-packages/Django-2.2.9-py3.7.egg/django/contrib/admin/static"
WSGIScriptAlias /lewhdk '/opt/bitnami/apps/django/django_projects/lewhdk/lewhdk/wsgi.py'
I do not know what I'm doing wrong