Bug: default Wordpress deploys uploads folder owned by root #56

Closed
opened 2026-05-26 12:58:32 +00:00 by kawaiipunk · 1 comment
Owner

We're finding that we're seeing this on new deploys:

root@144f17f3106e:/var/www/html/wp-content# ls -la
total 36
drwxr-xr-x 8 www-data www-data 4096 Dec  1 06:11 .
drwxr-xr-x 5 www-data www-data 4096 May 26 12:53 ..
drwxrwxrwt 2 www-data www-data 4096 May 20 00:20 cache
-rw-r--r-- 1 www-data www-data   28 Jan  8  2012 index.php
drwxr-xr-x 4 www-data www-data 4096 Nov 12  2025 plugins
drwxr-xr-x 5 www-data www-data 4096 Dec  1 06:11 themes
drwxr-xr-x 2 www-data www-data 4096 May 21 14:07 upgrade
drwxr-xr-x 3 www-data www-data 4096 May 21 14:04 upgrade-temp-backup
drwxr-xr-x 2 root     root     4096 May 21 14:00 uploads

wp-content/uploads folder isn't writable by www-data and is instead owned by root breaking uploads in the GUI.

Fix is to go in the containers

abra app run foo.bar app bash

and run

chown -R www-data:www-data uploads/

Any idea on the cause?

We're finding that we're seeing this on new deploys: ``` root@144f17f3106e:/var/www/html/wp-content# ls -la total 36 drwxr-xr-x 8 www-data www-data 4096 Dec 1 06:11 . drwxr-xr-x 5 www-data www-data 4096 May 26 12:53 .. drwxrwxrwt 2 www-data www-data 4096 May 20 00:20 cache -rw-r--r-- 1 www-data www-data 28 Jan 8 2012 index.php drwxr-xr-x 4 www-data www-data 4096 Nov 12 2025 plugins drwxr-xr-x 5 www-data www-data 4096 Dec 1 06:11 themes drwxr-xr-x 2 www-data www-data 4096 May 21 14:07 upgrade drwxr-xr-x 3 www-data www-data 4096 May 21 14:04 upgrade-temp-backup drwxr-xr-x 2 root root 4096 May 21 14:00 uploads ``` `wp-content/uploads` folder isn't writable by `www-data` and is instead owned by `root` breaking uploads in the GUI. Fix is to go in the containers ``` abra app run foo.bar app bash ``` and run ``` chown -R www-data:www-data uploads/ ``` Any idea on the cause?
Author
Owner
Here's some LLM output on the cause: https://kagi.com/assistant/d1257e76-261a-4c4f-b1dc-5b43a05284ce
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: coop-cloud/wordpress#56
No description provided.