Hello,

My colleague would like to get a Python Flask app running on our new sever. 
I've been scratching my head for several days and doing lots of googling to 
help me get just a simple hello world wsgi app to run on my FreeBSD 11.2 
server. I've followed some online tutorials to make a .py file, a .wsgi 
file and modify the http.conf file to add a virtual host.

When I navigate to our site, I get a 403 forbidden error.

I'm getting lost... but I've gone back to this checklist I found 
(https://modwsgi.readthedocs.io/en/develop/user-guides/checking-your-installation.html)
 
to see what I might be missing.

I see that in Apache (version 2.4) the wsgi_module is installed when I run 
httpd -M

but when I attempt ldd mod_wsgi.so I get the following:

ldd: mod_wsgi.so: No such file or directory

At this point, I think that Python and mod_wsgi are not linked, but I am 
unsure. I have two versions of Python installed, 2.7 and 3.6 and I 
installed and updated everything using pkg with the exception of the 
wsgi_module, which I installed using pip2.7.

I'm not sure what I'm missing and if I should go back and try to uninstall, 
then reinstall everything from scratch, or if there's something simple I'm 
missing. Anyone have a similar experience or any insight on this? Also, the 
various tutorials I've read on deploying Dash/Flask/mod_wsgi apps seem to 
vary in approach and can be somewhat vague on some of the steps. I'm not 
sure which is the best for me. One area that's not super clear to me is 
whether virtual host directives for Apache2.4 should be added directly to 
the httpd.conf virtual hosts section, or if it should be in a separate 
virtual hosts file.

Any help anyone could offer me would be greatly appreciated!!! Thanks!

-- 
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 modwsgi+unsubscr...@googlegroups.com.
To post to this group, send email to modwsgi@googlegroups.com.
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to