PermissionError: [Errno 13] Permission denied: error when creating a second site

I think the solution is to grant yourself (User) access to the files using the chown or chmod command.


Try this,
chmod -R o+rx /home/erp
and :
sudo nano /etc/supervisor/supervisord.conf

(Add these lines under [unix_http_server])
chmod=0760
chown=erp:erp

you might also need to restart supervisor
sudo -A systemctl restart supervisor

4 Likes