Hey graham, have a quick issue.
tested out flaskbb forums, with the docs command runserver I can get it to
run on localhost 8080, but Im trying to set it up to run like all my other
virtualhosts, permanently at forum1.me. The guys at flaskbb admit they
havent tried apache wsgi config, but I dont see why it shouldnt, as the
wsgi.py looks similar to django config. Heres the vhost config, wsgi.py
and apache errors.
# vhost forum1.conf
<VirtualHost *:80>
ServerName forum1.me
WSGIDaemonProcess forum1
python-home=/var/www/forum1/flaskbb-master/venv
WSGIProcessGroup forum1
WSGIApplicationGroup %{GLOBAL}
WSGIScriptAlias / /var/www/forum1/flaskbb-master/wsgi.py
<Directory /var/www/forum1/flaskbb-master/>
Order allow,deny
Allow from all
</Directory>
Alias /static /var/www/forum1/flaskbb-master/flaskbb/static
<Directory /var/www/forum1/flaskbb-master/flaskbb/static/>
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/www/forum1/logs/error.log
LogLevel warn
CustomLog /var/www/forum1/logs/access.log combined
</VirtualHost>
# wsgi.py
from flaskbb import create_app
from flaskbb.configs.production import ProductionConfig
flaskbb = create_app(config=ProductionConfig())
# First apache error :
ImportError: No module named 'flaskbb'
[Thu Nov 10 22:36:41.807983 2016] [wsgi:error] [pid 29935:tid
139908161734400] [remote 192.168.1.6:51168] mod_wsgi (pid=29935): Target
WSGI script '/var/www/forum1/flaskbb-master/wsgi.py' cannot be loaded as
Python module.
# 2nd error, after trying relative imports:
from .flaskbb import create_app
[Thu Nov 10 22:53:23.638380 2016] [wsgi:error] [pid 1153:tid
139996606498560] [remote 192.168.1.6:32637] SystemError: Parent module ''
not loaded, cannot perform relative import
[Thu Nov 10 22:53:24.827499 2016] [wsgi:error] [pid 1153:tid
139996690425600] [remote 192.168.1.6:32637] mod_wsgi (pid=1153): Target
WSGI script '/var/www/forum1/flaskbb-master/wsgi.py' cannot be loaded as
Python module.
--
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.