[Answered ]-Permission denied issue on uWSGI

2👍

Your chdir, home, socket directives all use /root/ as their base, which is root user’svhome directory and therefore other users don’t have access there. Also there might be some SELinux limitations.

Try to create a separate folder for your project, i.e. in /home/ (/home/www-data), make sure your www-data user has access to it and rights, and move your project and venv there, then change the settings (including socket) and try again.

👤Nikita

0👍

This can be solved easily by adding a 0 (0www-data) before the user name.
If you don’t care about safety, cause it grants root.

👤Viktor

Leave a comment