502 Bad Gateway

Started by johnny09, August 03, 2018, 04:57:13 PM

Previous topic - Next topic

johnny09

Hi,

need help, cant login to cwp panel, not loccaly or from IP, restarted server, no ideas.

locall ip:2030 redirects to 2087
locall ip 2031 Your connection is not secure after certificate approval get 502 Bad Gateway

Running centos 6.10, cwp pro... help???

johnny09

Dose not help

[root@host ~]# cd /scripts
[root@host scripts]# ./restart_cwpsrv
Stopping cwpsrv:                                           [  OK  ]
Starting cwpsrv:                                           [  OK  ]
cwp-phpfpm: unrecognized service

Yun

I am using CENTOS 7. I think someting went wrong today while auto updating.
I have same problem.. No solution yet...

maxwellins

Quote from: Yun on August 03, 2018, 05:26:29 PM
I am using CENTOS 7. I think someting went wrong today while auto updating.
I have same problem.. No solution yet...

Yes i have same problem. centos 7 auto update ruined everything

johnny09

Some help from support???

josemnunez

Try running the following script in this same order


sh /scripts/cwpsrv_rebuild_user_conf
sh /scripts/restart_cwpsrv

Please let me know how it went

johnny09

I have tried that, did not work:

[root@host ~]# sh /scripts/cwpsrv_rebuild_user_conf
Reloading cwpsrv:
cwp-phpfpm: unrecognized service
[root@host ~]# sh /scripts/restart_cwpsr
sh: /scripts/restart_cwpsr: No such file or directory

bullten

Try this

sudo yum reinstall cwpphp -y
service cwp-phpfpm restart
service cwpsrv restart

johnny09

Nope

[root@host ~]# sudo yum reinstall cwpphp -y
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Reinstall Process
No Match for argument: cwpphp
Loading mirror speeds from cached hostfile
* base: centos.koyanet.lv
* extras: centos.koyanet.lv
* updates: centos.koyanet.lv
Package(s) cwpphp available, but not installed.
Error: Nothing to do
[root@host ~]# service cwp-phpfpm restart
cwp-phpfpm: unrecognized service
[root@host ~]# service cwpsrv restart
Stopping cwpsrv:                                           [  OK  ]
Starting cwpsrv:                                           [  OK  ]
[root@host ~]#

bullten

#9
cwpphp is not installed.

You need to run

sudo yum install cwpphp -y
sh /scripts/cwpsrv_rebuild_user_conf


This should fix your issue.

johnny09

Thank you, now everything seems ok. loged in CWP. Works.

What happened?

johnny09

Stooped working, cant connect.... any one?

bullten

what are output of

service cwpsrv status
service cwp-phpfpm status

johnny09

[root@host ~]# service cwpsrv status
bash: service: command not found
[root@host ~]# service cwp-phpfpm status
bash: service: command not found
[root@host ~]#

bullten

This command

/sbin/service cwpsrv status
/sbin/service cwp-phpfpm status