SOLVED One user can't write to /tmp

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
36
4
58
This happens only in one cPanel account. It all started with wordpress complaining about unable to write to temp folder right after a clean installation.

I checked other accounts and everything is fine. Then I made a simple CLI (SSH) test to try to write to /tmp folder. This user can't write to it, all the rest can.

This just happened out of nowhere for this account.

Any ideas what I should check?
 

vs-fam

Active Member
PartnerNOC
Mar 18, 2010
36
4
58
Hello! Without giving away the real cPanel username, can you confirm the file path to the tmp directory your Wordpress site is using? Can you "stat" it and provide the results?

stat /path/to/tmpdir

The following article may help.

Fixed! Many thanks. Solution was to disable and enable cagefs for that user. Doing cagefsctl --force-update did not work.

For the record, in a proper configured environment, WordPress does not need to have a temp directory set, it defaults to PHP temp directory.

I tried setting a temp directory for wordpress and it did not work for uploading media, just for upgrading things.

I knew it was something beyond wordpress when I tried to write directly into the OS /tmp directory with this user and got "No such file or directory". It worked with any other user it works.

Code:
$ touch /tmp/test
touch: cannot touch ‘/tmp/test’: No such file or directory