I put together a quick WordPress site locally using MAMP, then checked it into an SVN repo. I then checked it out on to my development server.
I didn\'t change anything
I faced same problem after I restore backup from other server , it was promising issue I solve it this way .
chown -R www-data:www-data /var/www
chmod -R g+rwx /var/www
Where /var/www the place to store website files , replace it with suitable path according to your configuration , e.g /usr/share/nginx/www << default Nginx