Author Topic: cwpsrv not starting also apachectl not starting  (Read 575 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
cwpsrv not starting also apachectl not starting
« on: July 10, 2017, 02:06:34 PM »
HI , i am on scalaway have issue with Centos Web Panel ,i have two domain hosted on it (domain1.com, domain2.com) i had issue with mailserver , i change hostname to domain1.com then it didn't work , so i changed again to **.scalaway.com but that stoped cwpsrv , after vps rebooted cwpsrv is not starting neither apachectl i got errors :
Code: [Select]
cwpsrv.service - CentOS Web Panel service (daemon)
   Loaded: loaded (/usr/lib/systemd/system/cwpsrv.service; enabled; vendor preset: disabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2017-07-10 14:03:58 UTC; 3s ago
  Process: 11620 ExecStartPre=/usr/local/cwpsrv/bin/cwpsrv -t (code=exited, status=1/FAILURE)

Jul 10 14:03:58 51.15.141.45 systemd[1]: cwpsrv.service: control process exited, code=exited status=1
Jul 10 14:03:58 51.15.141.45 systemd[1]: Failed to start CentOS Web Panel service (daemon).
Jul 10 14:03:58 51.15.141.45 systemd[1]: Unit cwpsrv.service entered failed state.
Jul 10 14:03:58 51.15.141.45 systemd[1]: cwpsrv.service failed
after i run this " /usr/local/cwpsrv/bin/cwpsrv -t  "  i got :
Code: [Select]
cwpsrv: [emerg] EM_read_bio_X509_AUX("/etc/pki/tls/certs/hostname.crt") failed (SSL: error:0906D06C:PEM routines:PEM_read_bio:no start line:Expecting: TRUSTED CERTIFICATE)
cwpsrv:configuration file /usr/local/cwpsrv/conf/cwpsrv.conf test failed
« Last Edit: July 10, 2017, 02:34:26 PM by sdx »

Offline
*
Re: cwpsrv not starting also apachectl not starting
« Reply #1 on: July 11, 2017, 06:10:18 PM »
 i fixed the issue by generating a new hostname.key and hostname.crt and replaced the old ones ,finally used command systemctl start cwpsrv worked like charm ;).

Offline
**
Re: cwpsrv not starting also apachectl not starting
« Reply #2 on: July 12, 2017, 07:23:27 AM »
How did you generate the new key.? Please share.

Offline
*
Re: cwpsrv not starting also apachectl not starting
« Reply #3 on: July 15, 2017, 05:46:59 AM »
you can use this script
Code: [Select]
sh /scripts/generate_hostname_ssl
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services