Solved Wordpress keeps saying "filesystem not writable" while everything is 755/644

AutiCodes

Verified User
Joined
Jun 9, 2024
Messages
39
Hi. So i migrated one Wordpress site from DirectAdmin to mine DirectAdmin.

Now i checked that everything has the ownership of the domain. Also runned these commands in public_html:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
Automatic updates/plugins installs fails and the Redis plugin says "Filesystem not writable".
Now. I checked the perms/ownership from the base directory "/home/".
The domain is trmc.

The perms/ownerships:
- /home/trmc: drwx--x--- 17 trmc access 4096 Jul 6 18:05
- /home/trmc/domains: drwx--x--x 6 trmc trmc 4096 Jun 24 10:40
- /home/trmc/trmc.nl: drwx--x--x 8 trmc trmc 4096 Jul 3 20:09
- /home/trmc/trmc.nl/public_html: drwxr-xr-x 8 trmc trmc 4096 Jul 6 18:41
- /home/trmc/trmc/nl/public_html/ (all the WP directorysinside): drwxr-xr-x 13 trmc trmc

Al the directorys/files in /home/trmc/trmc/nl/public_html/ are 755 (dir) and 644 (files).
How can i fix this? Im out of guesses
 
Hi. So i migrated one Wordpress site from DirectAdmin to mine DirectAdmin.

Now i checked that everything has the ownership of the domain. Also runned these commands in public_html:
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
Automatic updates/plugins installs fails and the Redis plugin says "Filesystem not writable".
Now. I checked the perms/ownership from the base directory "/home/".
The domain is trmc.

The perms/ownerships:
- /home/trmc: drwx--x--- 17 trmc access 4096 Jul 6 18:05
- /home/trmc/domains: drwx--x--x 6 trmc trmc 4096 Jun 24 10:40
- /home/trmc/trmc.nl: drwx--x--x 8 trmc trmc 4096 Jul 3 20:09
- /home/trmc/trmc.nl/public_html: drwxr-xr-x 8 trmc trmc 4096 Jul 6 18:41
- /home/trmc/trmc/nl/public_html/ (all the WP directorysinside): drwxr-xr-x 13 trmc trmc

Al the directorys/files in /home/trmc/trmc/nl/public_html/ are 755 (dir) and 644 (files).
How can i fix this? Im out of guesses

It should be /home/trmc/domains/trmc.nl/

You should not have /home/trmc/trmc.nl/ At least I have never seen it done that way.
 
You should not have /home/trmc/trmc.nl/ At least I have never seen it done that way.
Correct, the /domains/ directory needs to be in between too.

And this one too.
- /home/trmc/trmc/nl/public_html/ (all the WP directorysinside):
But I guess this is a typo.
Wordpress should be either in:
/home/trmc/domains/trmc.nl/public_html
or
/home/trmc/domains/trmc.nl/public_html/nl
if you want that nl there.

Maybe @KelvinCodes can explain which is correct or was a typo.
So exactly in which directory do you have issues (watchfor typo's).

Did you already try to fix permissions, just to be sure?
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes
 
I'd double check that WordPress or some plugin hasn't stored it's own interpretation of the current running path (from the old machine) into a configuration file somewhere (or worse, the database).

So possibly try `grep -R <path on old server>'` inside the public_html folder on the new server. For database, you can use phpMyAdmin or `wp` with the search-and-replace option (but only doing the search).
 
Correct, the /domains/ directory needs to be in between too.

And this one too.

But I guess this is a typo.
Wordpress should be either in:
/home/trmc/domains/trmc.nl/public_html
or
/home/trmc/domains/trmc.nl/public_html/nl
if you want that nl there.

Maybe @KelvinCodes can explain which is correct or was a typo.
So exactly in which directory do you have issues (watchfor typo's).

Did you already try to fix permissions, just to be sure?
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh user_homes
Hi, my bad. It was indeed an typo. It's "/home/trmc/domains/trmc.nl/public_html" and also for the other file paths.
 
Oh wait... seems I've overseen something important.

"Filesystem not writable".
That's a whole other ballgame.

That is an issue with the redis cache plugin of Wordpress.
Maybe this helps:
 
If it is the entire file system that is not writeable then it may need to be unmounted, run fsck, and mount it again. This something for the server admin to do or provider. Can you upload anything to the domain currently?
 
Oh wait... seems I've overseen something important.


That's a whole other ballgame.

That is an issue with the redis cache plugin of Wordpress.
Maybe this helps:
Basicly no, because Wordpress update fails to. Als wordpress plugin install fails to. So it aint a single plugin sadly
 
Basicly no, because Wordpress update fails to. Als wordpress plugin install fails to. So it aint a single plugin sadly

That is why I say the whole filesystem may be read only. Can you upload any files to that domain?
 
That is why I say the whole filesystem may be read only. Can you upload any files to that domain?
Hi, i just checked to be sure. I can write files to that domain on multiply ways:

- From DA file manager
- From media inside Wordpress
- From CLI with the `touch` command
 
So it aint a single plugin sadly
I only see 1 error and that's with that plugin. You might be true but that can easily be tested.
Can you disable the redis plugin and then try again to update the other plugins? Which error is occuring then?
Because I'm almost 100% sure it's not an owner/permission issue.
 
I only see 1 error and that's with that plugin. You might be true but that can easily be tested.
Can you disable the redis plugin and then try again to update the other plugins? Which error is occuring then?
Because I'm almost 100% sure it's not an owner/permission issue.
Hi Same issue. Now there is again an automated WP update failed.
The issue was already before the Redis plugin was installed (which failed but still installed?)
 
Just for clarification, is this from a WP Manager installation or a manual (FTP upload) installation?
An WP manager installation. Tho manual upgrading WP does work.
With installing plugins it says "Cannot delete old translation".
 
Still can't imagine it's a permission issue from DA.
Maybe you can try this, just to be sure:
Code:
cd /usr/local/directadmin/scripts
./set_permissions.sh all

As you can see it's a little different, but should fix all permissions.
Same problem after this, then I would suggest to send in a ticket.

I can also have a quick look for you if you want, ik ben ook Nederlands, you can pm me if you want.
 
Did you try only setting permissions for the domain or user home?

Code:
cd /usr/local/directadmin/scripts
./set_permissions domaindir trmc.nl
or
./set_permissions set_user_home trmc

Is this a new install or a restore or moved install? Maybe check config file for settings with wrong path names. Maybe wordpress reads from a wrong path that is set in the config or database somewhere
 
Back
Top