I have installed LAMP stack and WordPress on a local apache2 server using the tutorials here-
But when I try to upload a media file (image/sound) I get the error-
The uploaded file could not be moved to wp-content/uploads/2015/01.
What might be wrong? I have added my user to www-data group and chown'd the directory /var/www/ as well.
Best Answer
You can use this script to fix wordpress permission:
save it to a file and run it and pass it your wp installation directory:
https://gist.github.com/Adirael/3383404