Ive used the same process for the last few projects, worked without a 
hitch.  Basically create a new venv in project, pip3 install requirements 
(mod-wsgi included) then

sudo nano /etc/apache2/mods-available/wsgi.load

LoadModule wsgi_module 
/usr/lib/apache2/modules/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so
WSGIRestrictEmbedded On

sudo a2enmod wsgi


    then 

sudo nano /etc/apache2/sites-available/sld.conf

VHOST ETC

a2ensite sld

On Wednesday, January 4, 2017 at 2:37:09 AM UTC-7, Graham Dumpleton wrote:
>
>
> > On 4 Jan 2017, at 8:08 PM, Jaqen Nki <[email protected] <javascript:>> 
> wrote: 
> > 
> > hey setting up new server, first time ran into this error after creating 
> wsgi.load and enabling, flabbergasted as to why, it has worked every time 
> in the past: 
> > 
> > apache2: Syntax error on line 140 of /etc/apache2/apache2.conf: Syntax 
> error on line 1 of /etc/apache2/mods-enabled/wsgi.load: Cannot load 
> /usr/lib/apache2/modules/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so 
> into server: /usr/lib/apache2/modules/
> mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so: cannot open shared object 
> file: No such file or directory 
>
> So the file doesn't exist. How did you install mod_wsgi? 
>
> Where did you get the value to use with the LoadModule line from? 
>
> Graham

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to