update_server.sh
script that I'm using on PythonAnywhere (which uses the "workon" command).pip install mod_wsgi
.mod_wsgi-express module-config"
(as described here) to output two config lines (seen below) that I then needed to put into the wsgi.load
file (path listed below), replacing the existing line that was in that file.File path:
/etc/apache2/mods-enabled/wsgi.load
mod_wsgi-express module-config
" / new contents of wsgi.load
:LoadModule wsgi_module "/home/nathan/.virtualenvs/rhymecraft/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so"
WSGIPythonHome "/home/nathan/.virtualenvs/rhymecraft"
encoding='utf-8'
to a .readlines()
call that was raising a UnicodeDecodeError
/root/.ssh/authorized_keys
(that's a file, not a folder).