Apach fails when I add a new domain

Started by edur, August 28, 2018, 04:35:31 AM

Previous topic - Next topic

edur

Hi peopel,

I have a lot of domain in my VPS and it was working fine, but now, when I add a new domain it is doesn't work.

And when I try to restart APACHE, it fails.


Aug 28 06:27:34 vps525***.ovh.net apachectl[10855]: httpd: Syntax error on line 509 of /usr/local/apache/conf/httpd.conf: Syntax error on line 2399 of /usr/local/apache/conf.d/vhosts.conf: Could not open config directory /usr/local/apache/conf/userdata/jlvalera/guia*******.com: No such file or directory
Aug 28 06:27:34 vps525***.ovh.net systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 28 06:27:34 vps525***.ovh.net systemd[1]: Reload failed for Web server Apache.


( The problem is not the domains, I have test with a lot of diferents domains and APACHE goes down ever). :-\

Any solution?

bullten

it has to do something with mod_security

edur

Quote from: bullten on August 28, 2018, 05:36:08 AM
it has to do something with mod_security

You are right ! Thanks !!

If I disabled the mod_security, it works.

But I dont know what is the real problem and I don't like to have mod_security desactivated.  :-\

ring_c

I just experienced the same! I thought I'm dreaming.
I've added a domain and suddenly I see the apache is down.
Have you opened a support ticket for that? They should know about it...

bullten

Well that's how CWP manages rules. May be they will fix the issue in next release. If you want to Comodo WAF to manage rules just like you may have used in cpanel, plesk or webmin then you can follow tutorial below. Before using it disable mod_security completely

https://panel.bullten.net/knowledgebase/64/Install-Comodo-WAF-With-GUI-in-CWP.html