selloween / docker-multi-wordpress

Run multiple WordPress Docker containers with NGINX Proxy, LetsEncrypt and PHP Composer
GNU General Public License v3.0
75 stars 18 forks source link

Permissions on wp-content directory #3

Closed bobey6 closed 5 years ago

bobey6 commented 5 years ago

Hello,

When trying to upload a custom theme or plugin, I noticed that the 'root' user owns the wp-content directory and Wordpress is not able to read/write. If I change the directory ownership to www-data you are able to upload files. I'm not sure if this is a bug or intentional. The fix is below:

docker exec wp chown -R www-data:www-data wp-content

selloween commented 5 years ago

Hi! Yeah, I forgot mentioning that in the README. Thanks for bringing it up.