Ispconfig rebuilds the group file on change which overwrites the file. So I need to have ispconfig add apache user along with admispconfig user.
User add/edit after new website Adding PHP: $mod->system->add_user_to_group("web".$doc_id,"apache"); to /ispconfig/scripts/lib/config.lib.php adds the user apache when the initial website is added to ispconfig. But when a user is added to a website then this is overwritten under a different function. I cannot locate the function.
I think you can do this in the make_docroot() function in /root/ispconfig/scripts/lib/config.lib.php.
I tried that (see previous thread). This seems to only work when the website/domain is first created but when a user is added or deleted later it does not add apache therefore it makes me think there is a separate function.