Weirdo issue with Wordpress install!

Hi

Does someone encounter the same weirdo issue with new Wordpress installation done by Virtualmin ? It’s 2 customers I create a new website in Virtualmin and then install WP using Web apps feature in Virtualmin.
Installation goes fine and wordpress works but when I want to install or update a plugin it fails stating it doesn’t have write access in upgrade folder. I double checked both accounts with other accounts with wordpress and rights are all good and similar.
I can’t find anything in Apache or PHP logs.
Someone else has seen that problem before ?

Webmin: 2.402
Virtualmin: 7.30.8 Pro
Debian 12
Wordpress: 6.8.3

Thanks

Vincèn

I have had this issue recently with a WordPress installation done by softaculous. I was having several plugins saying they could not write to disk.

My provider said he corrected the owner and file permissions.

If you login to wordpress and got to Tools --> Site Health is it giving any warnings about not being able to write files.

I have Divi and Wordfence installed which also give this information.

Yeah it states that it can’t write in the wp-content/upgrade directory but I already checked and it has the proper permissions (based on other WP running on that same Virtualmin servers). I have added the option in wp-config define('FS_METHOD', 'direct'); but no changes.
I’m quite lost here as I have a bunch of other WP installed in virtual hosts in that virtualmin server and never had such problem :frowning:

In Virtualmin, you could change the folder, archive permissions in Virtualmin > Limits and Validation > Validate Virtual Servers > Fix Permissions.

I’ll give it a try but I don’t think it’ll fix anytihng as WP has been installed by Virtualmin so it’s supposed to have proper rights and I have already checked folders of the WP and they have the proper owner and rights !

when i looked at mine, everything showed as 755 and 644 but still WordPress could not write.

I also have an issue with the PHP function ob_flush() could not execute.

As soon as the guy comes in at my provider (on holiday) i have asked he tell me what he did.

And the user of these files is the same one who owns the virtual server?

yep as it has been installed automatically using Web apps feature in Virtualmin and checked in the system, everything good for that (it’s in a sub server whose main virtual server is also hosting a wp that has no issue at all !

I found out the issue is linked with PHP in FCGI mode. Once switched the virtual web server in FPM mode, no more problem at all :wink:

Vincèn

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.