What i like about WordPress is the ability to install and update directly from the dashboard without using other software like FTP. But sometimes the function would not work.
The problem? File ownership or permission. Here some tips on how to fix it.
1. Confirm the file belong to Nginx.
On Apache, all the file should be own by www-data user. On some distribution that come with Nginx, “nginx” is the user. So to make sure all our web data belong to Nginx, we need to do this command.
sudo chown -R nginx:nginx /var/www/*
The location varies on platform. For mine it’s on /var/www