I'm trying to set up flask with mod_wsgi but I keep getting following error

(13)Permission denied: access to /test denied (filesystem path 
'/home/ec2-user/myapp') because search permissions are missing on a component 
of the path

test is a valid route in the flask app.
This is my myapp.conf file in the /etc/httpd/conf.d folder

WSGIRestrictStdout Off<VirtualHost *>
    ServerName somewhere.compute-1.amazonaws.com

    WSGIDaemonProcess flaskapp user=ec2-user group=ec2-user threads=5
    WSGIScriptAlias / /home/ec2-user/myapp/start_wsgi.py

    <Directory /home/ec2-user/myapp>
        WSGIProcessGroup flaskapp
        WSGIApplicationGroup %{GLOBAL}
        Order deny,allow
        Allow from all
    </Directory>
    LogLevel notice</VirtualHost>

This is Apache/2.2.26 with python 2.6.8
I am not using virtualenv.

When i start apache i see this as notice in the error_log

[Mon Feb 10 14:33:00 2014] [notice] Apache/2.2.26 (Unix) DAV/2 mod_wsgi/3.2 
Python/2.6.8 configured -- resuming normal operations

This is my start_wsgi.py file

from wsgi import application

Where application is the flask application that works in development with 
application.run

The error seems to tell me i should change some permissions on some folder, 
but I have no idea what folder. What folder should I adjust ?

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to