I'm getting a 403 Forbidden error when visiting my subdomain Apache/2.4.48 (Ubuntu) Server at Port 80
Hey there
I'm getting a 403 Forbidden error when visiting Ip Apache/2.4.48 (Ubuntu) Server at Port 80
================================
this is what I got in var/log/apache2 error.log
[Thu Feb 24 13:37:45.324904 2022] [mpm_event:notice] [pid 55946:tid
140102817245056] AH00489: Apache/2.4.48 (Ubuntu) mod_wsgi/4.7.1
Python/3.9 configured -- resuming normal operations [Thu Feb 24 13:37:45.325128
2022] [core:notice] [pid 55946:tid 140102817245056]
AH00094: Command line: '/usr/sbin/apache2' [Thu Feb 24 13:37:45.330851 2022]
[wsgi:warn] [pid 55947:tid 140102817245056] (13)Permission
denied: mod_wsgi (pid=55947): Unable to stat Python home /home/coreyms/tailor/venv.
Python interpreter may not be able to be
initialized correctly. Verify the supplied path and access permissions for whole of
the path. Python path configuration:
=== and ===
Fatal Python error: init_fs_encoding: failed to get the Python codec of the
filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named 'encodings'
================================
/etc/apache2/sites-available/django_project.conf
<VirtualHost *:80>
Alias /static /home/coreyms/tailor/static
<Directory /home/coreyms/tailor/static>
Require all granted
</Directory>
Alias /media /home/coreyms/tailor/media
<Directory /home/coreyms/tailor/static>
Require all granted
</Directory>
<Directory /home/coreyms/tailor/tailor>
<Files wsgi.py>
Require all granted
</Files>
</Directory>
WSGIDaemonProcess tailor python-home=/home/coreyms/tailor/venv python-
path=/home/coreyms/tailor
WSGIProcessGroup tailor
WSGIScriptAlias / /home/coreyms/tailor/tailor/wsgi.py
any help would be greatly appreciated
1 Reply
ModuleNotFoundError: No module named 'encodings'
This is probably the source of your problem. You should find/fix this.
I don't know anything about Python/Django so I'm not the right person to try to help you do that…
Also, it's not a very good idea to publish your IP address (or domain name either for that matter). A zillion Chinese spammers/hackers have it now…
-- sw