Solution:
Try to give www-data permission in wordpress directory:
cd /yourwordpressdirectory/ sudo chown -R www-data:www-data *