Author Topic: Apach fails when I add a new domain  (Read 7363 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Apach fails when I add a new domain
« on: August 28, 2018, 04:35:31 AM »
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.

Code: [Select]
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?

Offline
***
Re: Apach fails when I add a new domain
« Reply #1 on: August 28, 2018, 05:36:08 AM »
it has to do something with mod_security

Offline
*
Re: Apach fails when I add a new domain
« Reply #2 on: August 28, 2018, 03:02:54 PM »
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.  :-\

Offline
**
Re: Apach fails when I add a new domain
« Reply #3 on: August 28, 2018, 03:25:47 PM »
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...

Offline
***
Re: Apach fails when I add a new domain
« Reply #4 on: August 28, 2018, 04:59:20 PM »
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