Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: luizcsilva on August 24, 2018, 04:59:48 AM

Title: error starting apache
Post by: luizcsilva 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.
Title: Re: error starting apache
Post by: studio4host 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
Title: Re: error starting apache
Post by: luizcsilva 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
Title: Re: error starting apache
Post by: bullten on August 24, 2018, 06:33:20 AM
It looks like to be caused by modsecurity isnt it? Try disabling it
Title: Re: error starting apache
Post by: offshore 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