[MacBook Pro 2014, Mac OS 10.13.3]
I have my apache install setup to use mod_fcgid. However, when I restart my Mac, or after it restarts from sleeping, /usr/sbin/apachectl does not create /var/run/mod_fcgid, which is needed along with correct permissions.
Since I cannot modify /usr/sbin/apachectl, due to SIP, so I'm wondering where can I add the necessary commands to create the folder?
apachectlshouldn't be modified to get modules loaded (this is why it's protected by SIP). From a quick cursory search, this Q/A seems to indicate the problem is withmod_fcgidand not with anything on Apache or macOS – Allan Feb 24 '18 at 10:38apachectldoesn't take into account that mod_fcgid needs the/var/run/mod_fcgidfolder setup. So, my question is; where is the best place, given that I can't editapachectl, to put the required commands so that when Apache is started up, the folders are ready. – gone Feb 24 '18 at 15:58