Fix wordpress file permssions

  • fennng 
I put wordpress files in dropbox and mount it to the docker
I noticed the permissions are not quite right.
Run these commands in the docker’s /var/www/html folder to fix the permissions.
Run these commands in the docker’s /var/www/html folder to fix the permissions.
chown www-data:www-data  -R * # Let Apache be owner
find . -type d -exec chmod 755 {} \;  # Change directory permissions rwxr-xr-x
find . -type f -exec chmod 644 {} \;  # Change file permissions rw-r--r--
chown <username>:<username>  -R * # Let your useraccount be owner
chown www-data:www-data wp-content # Let apache be owner of wp-content

ref: https://stackoverflow.com/questions/18352682/correct-file-permissions-for-wordpress

Check the permissions again.

Now, looks better

标签:

发表评论

您的电子邮箱地址不会被公开。