昨天,今天,明天,每天的每天,你是否都多懂得一点点...

星期三, 七月 11, 2018

Fix wordpress file permssions

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-wordpress


Check the permissions again.





Now, looks better



--
Feng

没有评论:

其它博客地址

此博客的同步博客地址: http://fengnz.wordpress.com
这里进入我的MSN SPACE.