We have a few Wordpress sites which were installed using the install script. Each was installed into a virtual server which was running with the FCGI PHP exec.
Due to some memory issues, and FCGI seeming to keep old processes lingering around, I had to switch those sites to using the mod_php exec mode instead. This works fine for executing PHP code on behalf of Apache, but when it comes to modyfing anything through Wordpress, it's now not possible due to file permission errors. There is no write access for Apache within /home/domain/public_html/.
The issue here is that all files & folders inside public_html belong to site1:site1, whereas mod_php would seem to prefer if the files belonged to site1:apache (assuming a 664 file permission and 775 directory permission).
Is there a foolproof way to switch execution modes for virtual servers without running into file permission issues like this?
We have Virtualmin Pro on CentOS 5.
Thanks, in anticipation...