Author Topic: error starting apache  (Read 6525 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
error starting apache
« on: August 24, 2018, 04:59:48 AM »
I was with the 502 Bad Gateway error in admin access, however after executing the command cd / scripts ./restart_cwpsrv, it returned to work, however when I was inserting a new user my apache stopped working as you can see below:



Code: [Select]
httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Fri 2018-08-24 01:49:59 -03; 11s ago
  Process: 21887 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Aug 24 01:49:59 srv1.luizsilva.com.br systemd[1]: Starting Web server Apache...
Aug 24 01:49:59 srv1.luizsilva.com.br apachectl[21887]: httpd: Syntax error on line 3 of /usr/local/apache/conf/httpd.conf: Syntax error on line 10 of /usr/local/apache/conf.d/vhosts.conf: Could not open config directory /usr/local/apache/conf/userdata/lendasde/lendasdeazeroth.com.br: No such file or directory
Aug 24 01:49:59 srv1.luizsilva.com.br systemd[1]: httpd.service: control process exited, code=exited status=1
Aug 24 01:49:59 srv1.luizsilva.com.br systemd[1]: Failed to start Web server Apache.
Aug 24 01:49:59 srv1.luizsilva.com.br systemd[1]: Unit httpd.service entered failed state.
Aug 24 01:49:59 srv1.luizsilva.com.br systemd[1]: httpd.service failed.

Offline
*
Re: error starting apache
« Reply #1 on: August 24, 2018, 05:57:29 AM »
simples solution is to go to WebServers and click on save& build it will make  a new config
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
*
Re: error starting apache
« Reply #2 on: August 24, 2018, 06:17:34 AM »
simples solution is to go to WebServers and click on save& build it will make  a new config


I have already done this anyway, I still have apache failure, I have re-built in another version but in the panel it still shows the old version

Offline
***
Re: error starting apache
« Reply #3 on: August 24, 2018, 06:33:20 AM »
It looks like to be caused by modsecurity isnt it? Try disabling it

Offline
*
Re: error starting apache
« Reply #4 on: August 27, 2018, 06:51:23 PM »
go here http://ur-ip:2030/admin/index.php?module=apache_builder

rebuild old config first ,then new one