Strange Apache error file missing on httpd start

Community forum to discuss cxs.
If you believe that there is a problem with your cxs installation and want support then, as a paid product, you should use the helpdesk after having consulted the documentation.
Post Reply
verdonv
Junior Member
Posts: 20
Joined: 18 Nov 2014, 18:54

Strange Apache error file missing on httpd start

Post 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
johnjohn
Junior Member
Posts: 2
Joined: 15 Mar 2017, 00:37

Re: Strange Apache error CMC file missing on httpd start

Post by johnjohn »

Same problem .. any update on this thread ? Thanks :confused:
verdonv
Junior Member
Posts: 20
Joined: 18 Nov 2014, 18:54

Re: Strange Apache error CMC file missing on httpd start

Post 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.
bestau
Junior Member
Posts: 1
Joined: 21 Mar 2017, 23:57

Re: Strange Apache error CMC file missing on httpd start

Post by bestau »

I got the same issue.
Checked folder permission, all good.
Any idea? Thanks.
verdonv
Junior Member
Posts: 20
Joined: 18 Nov 2014, 18:54

Re: Strange Apache error CMC file missing on httpd start

Post 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
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Strange Apache error file missing on httpd start

Post 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.
Post Reply