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.
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-wordpressCheck the permissions again.
Feng
没有评论:
发表评论