[Flask] [Deploying Flask with apache-wsgi] Problem

Ziirish ziirish at ziirish.info
Fri Jul 1 06:21:28 EDT 2016


Hi,

What is the exact error message?

I guess your Apache server is running as www-data (or apache) user.
Does this user have rights on the files/folders managed by your application?


* On Friday, July 01, 2016 at 03:33 PM +0530, taushif khan <taushifkhan at gmail.com> wrote:
> Hi,
> I am trying to put my flask-application to the web by deploying it with
> apache2-wsgi. But there is a problem of permissions to read a file from the
> root user.
> 
> My appliaction takes a input from the user. the input is a 3D coordinate
> file. Then my codes in the backend compiles the results and writes them ia
> a json file. The flask application then reades the json file and gives
> result.
> 
> During the development it was smooth and both upload and download by the
> server was performed with out any issues. But once I but the app in the
> deployment its giving a pain.
> 
> Any suggestion to fix the permission issue during deployment in production
> server. Wll be helpful.
> 
> -- 
> With regards,
> 
> Taushif Khan
> Ph.D.
> PostDoc Research
> Interuniversity Institute of Bioinformatics in Brussels
> <http://ibsquare.be/>
> Brussels, Belgium
> 
> 
> *The true sign of intelligence is not knowledge but imagination.
> <http://www.brainyquote.com/quotes/quotes/a/alberteins148802.html> *[*Einstein
> <http://www.brainyquote.com/quotes/quotes/a/alberteins148802.html> A]*


More information about the Flask mailing list