New answers tagged


If the file owner is allowed to run a shell I find that su-ing to that user works fine. I'm running suPHP so each site has its own user which can login. I don't know if the default Apache user is more restricted. I wouldn't follow the advice to chown the files as your web server might then choke.


I think the error is very clear. The owner of public_html is www-data, you don't have any permisson to write to that folder. You can use whatever user you want as long as that user have permission to read, write and execute your DOCUMENT_ROOT folder. But you shouldn't use root user. So, to solve that error, try: sudo chown -R `whoami`:www-data /var/www/...

Top 50 recent answers are included