Page 1 of 1

Strange Apache error file missing on httpd start

Posted: 23 Nov 2016, 14:06
by verdonv
Hello,

When httpd starts, I see the following error in my logs

Code: Select all

httpd: Syntax error on line 223 of /etc/apache2/conf/httpd.conf: Syntax error on line 32 of /etc/apache2/conf.d/modsec2.conf: Syntax error on line 55 of /etc/apache2/conf.d/modsec/modsec2.cpanel.conf: Could not open configuration file /etc/apache2/conf.d/modsec_vendor_configs/configserver/00_configserver.conf: No such file or directory
and yet, the file '/etc/apache2/conf.d/modsec_vendor_configs/configserver/00_configserver.conf' is definitely there, owned by root, and chmod 644

Any idea why I am getting that error? Would I be better to ask this at cPanel forums?

Thanks,
v

Re: Strange Apache error CMC file missing on httpd start

Posted: 15 Mar 2017, 00:42
by johnjohn
Same problem .. any update on this thread ? Thanks :confused:

Re: Strange Apache error CMC file missing on httpd start

Posted: 16 Mar 2017, 22:25
by verdonv
I think I tracked this down. If I recall, it was a permission error on /etc/apache2/conf.d/modsec_vendor_configs/configserver/. I think it was set to rwx------ (700) and needed to be set to rwxr-xr-x (755). Have a look and see if that is the case for you.

Re: Strange Apache error CMC file missing on httpd start

Posted: 21 Mar 2017, 23:59
by bestau
I got the same issue.
Checked folder permission, all good.
Any idea? Thanks.

Re: Strange Apache error CMC file missing on httpd start

Posted: 22 Mar 2017, 13:27
by verdonv
You're right and I was wrong. I thought it was folder permissions, and service httpd configtest reported OK when I made that change, but in the startup log from last night, when httpd failed and restarted on me, I can see the same error there again.

httpd: Syntax error on line 229 of /etc/apache2/conf/httpd.conf: Syntax error on line 32 of /etc/apache2/conf.d/modsec2.conf: Syntax error on line 55 of /etc/apache2/conf.d/modsec/modsec2.cpanel.conf: Could not open configuration file /etc/apache2/conf.d/modsec_vendor_configs/configserver/00_configserver.conf: No such file or directory

Re: Strange Apache error file missing on httpd start

Posted: 22 Mar 2017, 16:07
by ForumAdmin
This is nothing to do with cmc.

This is an issue with cPanel's ModSecurity vendor implementation when updating the ConfigServer cxs vendor rules. You need to take the issue up with cPanel as it is their update mechanism that is causing this during upcp, not the cxs rules. I believe that they are aware of the issue, so will hopefully be fixing it.