I have a development server running wordpress. The wordpress files are owned by www-data:www-data.

I wanted a quick way to be able to upload so I added my user to the www-data group and then did a chmod 775 -R for the plugins and themes folder.

I am still unable to upload files. PHPStorm gives me a "permission denied" error. The directory has rwx for group so why can't I write files?

1 Answer 1


Have you tested this from a shell prompt? Because I just did exactly what you said and it works fine for me. Why is PHPStorm trying to write with your user id? Wouldn't it use the web server's user id?

If it is using your user id, try restarting it to pickup the changes.

  • I just realised. Some folders were owned by root which was causing the issue.
    – Guerrilla
    Aug 13, 2016 at 20:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .