jessepeterson / margarita

Web frontend for reposado
The Unlicense
244 stars 40 forks source link

No updates show when run in mod_wsgi in apache. #55

Closed OmniBlade closed 6 years ago

OmniBlade commented 6 years ago

I'm trying to run Margarita under Apache on a Centos 7, but I can't seem to get it to list any updates, I just get "{"branches": [], "products": []}" shown if I browse to /products. If I run this under the apache user in the flask web server the updates are populated correctly.

Anyone any ideas how I might track down what is going wrong?

jessepeterson commented 6 years ago

I don't have experience with mod_wsgi, sorry. :( Might want to try this: https://denisonmac.wordpress.com/2013/02/28/running-margarita-in-apache/

OmniBlade commented 6 years ago

Thanks, I had followed that guide but it seems the issue I had was with SELinux file contexts. After relabelling the reposado content and meta data directories to httpd_sys_content_t the problem is resolved. I guess flask ignores selinux enforcements for web content.

jessepeterson commented 6 years ago

Interesting! Good to know! :)