I am running Virtualmin GPL with one virtual site. My site was running with FCGId but I had to change it to mod_php (running with apache user). After the change the website can no longer write to directories in public_html. Currently in Virtualmin the user and group of the virtual site are admin/admin:
Administration username admin
Administration group admin
The home directory including public_html are also set to admin/admin.
What is the right way to make directories writable to the website? Do I have to change the home/public_html directory permissions to apache/apache? If I change it with chown will Virtual min overwrite the change and revert to admin/admin?