Reputation: 950
I get this error when I try to enter my Flask app running on WSGI and Apaceh2:
The problem is, when I just run the Flask app and stop apache2, the error doesn't occur. But when I open Apache2, the error occurs. The file is located at /var/www/html/meondashboard/configs
. This is how my 000-default.conf
file look like:
This is how I access the file:
How can I fix this? Do I need to restart my VPS? I would appreciate any type of help, thanks in advance.
Upvotes: 2
Views: 525
Reputation: 557
Give app.config['SQLALCHEMY_DATABASE_URI']
full path. Then give .db
file ownership to www-data.
Upvotes: 4