Author Topic: Admin error 500  (Read 4243 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Admin error 500
« on: April 24, 2020, 11:25:11 AM »
Hello,

We have 2 servers of the CWP Panel that we were unable to access the Control Panel, accuses the error 500.

In the logs, we have the error:

2020/04/24 08:21:06 [error] 6790#0: *534 FastCGI sent in stderr: "PHP message: PHP Fatal error:  <br/>The file <b>/usr/local/cwpsrv/var/services/user_api/v1/index.php</b> was encoded with the Encoder for PHP 7.2 and can only run on PHP 7.2 or later.<br/> If you are the administrator of this site then please upgrade to PHP 7.2 or later and install the corresponding ionCube Loader. in Unknown on line 0" while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "POST /v1/loginfail/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "127.0.0.1:2302"
2020/04/24 08:21:06 [info] 6790#0: *534 client 127.0.0.1 closed keepalive connection
2020/04/24 08:21:06 [error] 6790#0: *532 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: intended in /usr/local/cwpsrv/var/services/users/login/index.php on line 0

---

2020/04/24 08:30:12 [error] 19311#0: *22 FastCGI sent in stderr: "PHP message: PHP Fatal error:  <br/>The file <b>/usr/local/cwpsrv/htdocs/admin/index.php</b> was encoded with the Encoder for PHP 7.2 and can only run on PHP 7.2 or later.<br/> If you are the administrator of this site then please upgrade to PHP 7.2 or later and install the corresponding ionCube Loader. in Unknown on line 0" while reading response header from upstream, client: 189.47.76.19, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "server3.nae.com.br:2031"

----


The version of the Panel looks like: "0.9.8.961"

The files appear to have been altered last night, as shown below:
CT-45775 admin# ll
total 32
drwxr-x---  2 root root 4096 Apr 24 03:30 admin
drwxr-x---  2 root root 4096 Apr 24 03:30 api
drwxr-x--- 16 root root 4096 Feb 25 21:44 design
drwxr-x---  2 root root 4096 Apr 24 03:30 error_pages
-rw-r-----  1 root root 6728 Jul  1  2019 index.php
drwxr-x---  2 root root 4096 Apr 24 03:30 login
drwxr-x---  2 root root 4096 Apr 24 03:30 user
CT-45775 admin# pwd
/usr/local/cwpsrv/htdocs/admin

Can you help us?

« Last Edit: April 24, 2020, 11:31:04 AM by SaveinCloud »

Offline
*
Re: Admin error 500
« Reply #1 on: April 24, 2020, 12:32:23 PM »
Hello,

We were able to correct it using the commands:

sh /scripts/cwpsrv_rebuild_user_conf
sh /scripts/update_cwp
service cwpsrv restart
service cwpsrv-phpfpm restart

Tnanks