Closed ewg118 closed 3 years ago
It may be related to #435, but not really sure... What I always had to do on Debian is to tweak loris.wsgi this way:
#!/usr/bin/env python
#from loris.webapp import create_app
# Uncomment and configure below if you are using virtualenv
import site
site.addsitedir('/opt/virtualenvs/py3.7/lib/python3.7/site-packages')
from loris.webapp import create_app
application = create_app(config_file_path='/opt/virtualenvs/py3.7/lib/python3.7/site-packages/Loris-3.2.1-py3.7.egg/loris/data/loris.conf')
Hope that will help!
I've followed instructions on creating a virtual environment in Ubuntu 20.04, but it doesn't seem to have done anything.
No other idea... Are you using libapache2-mod-wsgi-py3?
That's it. Only libapache2-mod-wsgi was installed for Python 2.x, as per the instructions on the Apache wiki page. Thanks
I am installing the latest Loris release in Ubuntu 20.04, running Python 3.8 and Apache 2.4.46. I am getting a 500 Internal Server error. The Apache error log is as follows:
The loris.wsgi file is present in /var/www/loris, and Apache should have execute permissions. The contents of the file are:
The loris.conf exists, and looks fine to me. I've installed Loris 2 on Python 2.7 on another server years ago, and didn't have any errors at the time. The Apache error seems pretty non-specific. I'm not sure why it can't find loris.webapp.
Thanks for your help.