502 Bad Gateway

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

Previous topic - Next topic

johnny09

[root@host ~]# /sbin/service cwpsrv status
cwpsrv (pid  29955) is running...
[root@host ~]#
[root@host ~]# /sbin/service cwp-phpfpm status
cwp-phpfpm (pid  30138) is running...

Now it seems ok....

zienos

my server is centos release 6.10 final 32 bit

admin panel not work and apache logs

2018/08/11 14:45:36 [crit] 1843#0: *2029 connect() to unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock failed (2: No such file or directory) while connecting to upstream, client: 85.96.203.95, server: localhost, request: "GET / HTTP/1.$
2018/08/11 14:45:36 [error] 1843#0: *2029 open() "/usr/local/cwpsrv/htdocs/admin/favicon.ico" failed (2: No such file or directory), client: 85.96.203.95, server: localhost, request: "GET /favicon.ico HTTP/1.1", host: "ziyasuzen.com:203$




and services status



[root@svr1 scripts]# service cwpsrv status
service cwp-phpfpm statuscwpsrv (pid  14706) is running...
[root@svr1 scripts]# service cwp-phpfpm status
cwp-phpfpm: unrecognized service

[root@svr1 scripts]# service php-fpm start
php-fpm: unrecognized service




what happen?


i want to update my php versiyon php7


now my admin panel not open please help

bullten

The below command will fix issue for you

yum install cwp-phpfpm -y
sh /scripts/cwpsrv_rebuild_user_conf

nguyentrunghoa

I have done as you told and get this:

[root@vps ~]# sh /scripts/cwpsrv_rebuild_user_conf
Reloading cwpsrv:
Reloading cwp-phpfpm: [19-Aug-2019 10:52:50] NOTICE: configuration file /usr/local/cwp/php71/etc/php-fpm.conf test is successful

                                                           [FAILED]

Please tell me how to do now?

hacspectrum

On 3 different servers
same problems help me

CentOS release 6.10 (Final)
------
service cwp-phpfpm status
cwp-phpfpm (pid  14037) is running...
------
[root@server users]# service cwpsrv status
cwpsrv (pid  2963) is running...
------
[05-Sep-2019 11:37:11] NOTICE: fpm is running, pid 14037
[05-Sep-2019 11:37:11] NOTICE: ready to handle connections
[05-Sep-2019 11:44:04] NOTICE: Terminating ...
[05-Sep-2019 11:44:04] NOTICE: exiting, bye-bye!
[05-Sep-2019 11:44:04] NOTICE: fpm is running, pid 16268
[05-Sep-2019 11:44:04] NOTICE: ready to handle connections
--------
$webpanel_version = "0.9.8.683";
--------
sh /scripts/restart_cwpsrv  #no work
sh /scripts/cwpsrv_rebuild_user_conf  #no work




randyproxz

Try to using this command in ssh :

First rebuild user conf :

sh /scripts/cwpsrv_rebuild_user_conf


And update the CWP :

sh /scripts/update_cwp


Then restart the cwpsrv :

service cwpsrv restart
service cwpsrv-phpfpm restart