uwsgi+nginx prbolem : chdir() Permission denied

view story

http://stackoverflow.com – I try to use the django to create a website, but occurs some problem. the environment: Ubuntu12.04 + Django1.4+ nginx1.2.6+ uwsgi I found the Nginx is work well. the problem may occurred at the uwsgi. here is my uwsgi.file [uwsgi] socket = chmod-socket = 666 python = /myuser/website/ chdir = /myuser/website/website/ wsgi-file = /myuser/webiste/webiste/wsgi.py when I try to start the uwsgi ,but it failed. and visit the site occured " 502 bad gateway". sudo service uwsgi start I searched the Internet, but not found the right answer. (HowTos)