I created a flask application which runs a selenium script. Within flask it works just fine, however when I transfer it to apache using wsgi I get this error from the apache.log. The templates load but the selenium script doesn't run. I will attach the relevant error.log lines as well as the config files. Any help will be greatly appreciated!
[Sun Nov 20 00:37:28.995529 2016] [wsgi:error] [pid 7492:tid 1954542640] File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/service.py", line 45, in __init__
[Sun Nov 20 00:37:28.995545 2016] [wsgi:error] [pid 7492:tid 1954542640] log_file = open(log_path, "a+")
[Sun Nov 20 00:37:28.995560 2016] [wsgi:error] [pid 7492:tid 1954542640] IOError: [Errno 13] Permission denied: 'geckodriver.log'
webroombooker.config
<VirtualHost *:80>
ServerName localhost
WSGIScriptAlias / /home/pi/Website/webroombooker.wsgi
<Directory /home/pi/Website/>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
000-default.config
<Directory /home/pi/Website/>
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
webroombooker.wsgi
#!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/home/pi/Website")
from webroombooker import app as application
Thank you in advanced! I'm pretty new to this!