Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: dgnzcn on October 18, 2018, 06:09:55 AM

Title: cwp not working after server restart
Post by: dgnzcn on October 18, 2018, 06:09:55 AM
Hello,
if i restart my server centos web panel ui, httpd always become stopped, then i run following commands from ssh and cwp is working again, how can i fix this issue.


csf -x
iptables -F
service iptables save
sh /scripts/restart_cwpsrv
Title: Re: cwp not working after server restart
Post by: studio4host on October 18, 2018, 06:39:02 AM
try checking what is the exact issue and what service is not autostarted, on restart try this

service cwpsrv status
service cwp-phpfpm status

also are you sure that you need to disable csf and clean iptables ?
Title: Re: cwp not working after server restart
Post by: dgnzcn on October 18, 2018, 07:19:50 AM
Hello,
i restart server again than i run following commands

[root@server ~]# service cwpsrv status
cwpsrv is stopped
[root@server ~]# service cwp-phpfpm status
cwp-phpfpm is stopped
[root@server ~]#


than

[root@server ~]# service cwp-phpfpm start
Starting cwp-phpfpm:                                       [  OK  ]
[root@server ~]# service cwpsrv start
Starting cwpsrv:                                           [  OK  ]
[root@server ~]#

i can login to cwp now.


how can i fix that  this issue every reboot after?
Title: Re: cwp not working after server restart
Post by: dgnzcn on October 18, 2018, 04:58:34 PM
following services not autostart after reboot and reload the server, is there a fix for this issue?

cwp-phpfpm
cwpsrv
Title: Re: cwp not working after server restart
Post by: studio4host on October 18, 2018, 11:49:13 PM
On centos 7
Code: [Select]
systemctl enable cwpsrv
systemctl enable cwp-phpfpm

On centos 6
Code: [Select]
chkconfig cwpsrv on
chkconfig cwp-phpfpm on
Title: Re: cwp not working after server restart
Post by: dgnzcn on October 19, 2018, 07:14:29 AM
On centos 7
Code: [Select]
systemctl enable cwpsrv
systemctl enable cwp-phpfpm

On centos 6
Code: [Select]
chkconfig cwpsrv on
chkconfig cwp-phpfpm on

it is already set on.