MESSENGERV2 needs to regenerate csf.messenger.conf on SSL changes
Posted: 02 Aug 2017, 21:52
With MESSENGERV2 and MESSENGER_HTTPS enabled, any time a SSL certificate path changes (which with AutoSSL could be any time the AutoSSL process runs), the csf.messenger.conf file is then pointing to a non-existant file, which causes Apache to throw a syntax error and not start.
Unfortunately, it seems like there isn't currently a cPanel hook that will always catch every instance of an SSL certificate being installed/removed/modified. This is a challenge that's overcome in a rather kludgey way by other software I've seen by monitoring for changes of the /var/cpanel/userdata/*/*_SSL files and regenerating on those. A working, but not ideal solution.
For now, I am going to disable HTTPS for MESSENGERV2 by setting MESSENGER_HTTPS_IN to "", but I think the first step in a solution here is the ability to call just the MESSENGERV2 subroutine from the command line, which could then be connected to a cPanel hook (should an appropriate one become available), or integrated with another solution.
Thanks,
Sam
Unfortunately, it seems like there isn't currently a cPanel hook that will always catch every instance of an SSL certificate being installed/removed/modified. This is a challenge that's overcome in a rather kludgey way by other software I've seen by monitoring for changes of the /var/cpanel/userdata/*/*_SSL files and regenerating on those. A working, but not ideal solution.
For now, I am going to disable HTTPS for MESSENGERV2 by setting MESSENGER_HTTPS_IN to "", but I think the first step in a solution here is the ability to call just the MESSENGERV2 subroutine from the command line, which could then be connected to a cPanel hook (should an appropriate one become available), or integrated with another solution.
Thanks,
Sam