Khandaker Toihidul Islam
Front-end Developer
React Js | Javascript | HTML | CSS | Bootstrap | Wordpress | PHP | Mysql

WordPress – directory permission

  1. Connect to server by ssh
sss root@<your servier ip>

Navigate to cd public_html/wp-content

sudo mkdir uploads

Change the owner and group of the uploads folder to www-data by executing this command:

chmod 755 -R uploads 
chown -R www-data:www-data uploads

Done, now try to upload file again.

For plugin and theme install or updates

sudo chown -R www-data:www-data /var/www/html/

You may also like...

Leave a Reply