title: Apache showing Permission denied: flask_session error
body: <p>Im trying to get flask with virtual environment and wsgi configured to work but Apache keeps giving me this error: </p>
  
  <blockquote>
    <p>[Tue Nov 13 13:23:55.179153 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]     app.session_interface = self._get_interface(app)</p>
    
    <p>[Tue Nov 13 13:23:55.179160 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]   File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/<strong>init</strong>.py",
    line 93, in _get_interface</p>
    
    <p>[Tue Nov 13 13:23:55.179163 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]     config['SESSION_USE_SIGNER'], config['SESSION_PERMANENT'])</p>
    
    <p>[Tue Nov 13 13:23:55.179169 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]   File "/var/www/html/project/python/lib/python3.6/site-packages/flask_session/sessions.py",
    line 314, in <strong>init</strong></p>
    
    <p>[Tue Nov 13 13:23:55.179172 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]     self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)</p>
    
    <p>[Tue Nov 13 13:23:55.179177 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]   File "/var/www/html/project/python/lib/python3.6/site-packages/werkzeug/contrib/cache.py",
    line 717, in <strong>init</strong></p>
    
    <p>[Tue Nov 13 13:23:55.179180 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]     os.makedirs(self._path)</p>
    
    <p>[Tue Nov 13 13:23:55.179185 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]   File "/lib64/python3.6/os.py", line 220, in makedirs</p>
    
    <p>[Tue Nov 13 13:23:55.179188 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx]     mkdir(name, mode)</p>
    
    <p>[Tue Nov 13 13:23:55.179215 2018] [wsgi:error] [pid 11819] [x.x.x.x:xxxx] PermissionError: [Errno 13] Permission denied: '/flask_session'</p>
  </blockquote>
  
  <p>I tried giving the project different permissions but nothing worked</p>