I am new to web development so I do not know what exactly causes the problem: apache2 or ubuntu or something else. Yesterday I followed this tutorial ([https://www.digitalocean.com/community/tutorials/how-to-deploy-a-flask-application-on-an-ubuntu-vps) and deployed my fist app online(Ubuntu 14.04 and apache2). It is written in Flask/Python. My app writes some data to a text file which is used later for generation of a pdf file which is displayed to the user using PDF.js extension. Unfortunately, a pdf is not displayed because either a text file was not generated or pdf is blocked from displaying. Everything works great on my local server. So, I am wondering how to give permission for writing a file and displaying a pdf. Any suggestions are highly appreciated!
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.