yep, after running into the problem I went back and ran:
sudo
/var/www/SkylineDevelopment/FlaskApp/FlaskApp/venv/bin/mod_wsgi-express
install-module
(Output:)
LoadModule wsgi_module
/usr/lib/apache2/modules/mod_wsgi-py35.cpython-35m-x86_64-linux-gnu.so
WSGIPythonHome /var/www/SkylineDevelopment/FlaskApp/FlaskApp/venv
a2enmod wsgi
the module is there
On Wednesday, January 4, 2017 at 2:44:14 AM UTC-7, Graham Dumpleton wrote:
>
>
> On 4 Jan 2017, at 8:40 PM, Jaqen Nki <[email protected] <javascript:>>
> wrote:
>
> 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
>
>
> If you are using pip install method, after you have installed mod_wsgi,
> you need to run either:
>
> sudo mod_wsgi-express install-module
>
> which installs the module in modules directory of Apache, with it
> outputting what you then need to add to Apache configuration to load it.
>
> Alternatively run:
>
> mod_wsgi-express module-config
>
> and it will leave mod_wsgi module in the Python virtual environment, and
> output the configuration you need to load it from there.
>
> Are you doing one of those?
>
> Graham
>
> 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]> 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] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>
> .
> Visit this group at https://groups.google.com/group/modwsgi.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
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.