Author Topic: Urgent! can't access cwp panel error 500  (Read 20540 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Urgent! can't access cwp panel error 500
« on: April 24, 2020, 10:17:07 PM »
Hi guys,

still few hours i'm facing strange issues again. After a simple reboot i cannot access cwp on any port(2030,..31?..83..). All my websites working :o

Saw yesterday a update but don't care about. and today after a simple reboot i cannot access cwp.

here my logs:
Code: [Select]
2020/04/24 18:18:36 [error] 1053#0: *115 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/loca
l/cwpsrv/htdocs/admin/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or late
r.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0" while reading response header from upstream, client: 185.13.106.219, server: localhost, request: "GET
/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "foxtrot.exemple.co
m:2031"
2020/04/24 20:14:29 [error] 1053#0: *218 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/loca
l/cwpsrv/var/services/users/login/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP
 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0" while reading response header from upstream, client: 144.202.68.196, server: localhost, request: "GET
/ HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "35.195.171.255:2083"
2020/04/24 20:38:46 [error] 1053#0: *239 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/loca
l/cwpsrv/var/services/users/login/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP
 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0" while reading response header from upstream, client: 76.354.35.171, server: localhost, request: "GET /
 HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/login.sock:", host: "35.195.171.255:2083"
2020/04/24 20:47:35 [error] 1054#0: *246 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/loca
l/cwpsrv/htdocs/admin/login/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 o
r later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0" while reading response header from upstream, client: 76.354.35.171, server: localhost, request: "GET /
login/index.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "foxtrot
.exemple.com:2031"
2020/04/24 21:26:31 [error] 1053#0: *266 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/loca
l/cwpsrv/htdocs/admin/login/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 o
r later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0" while reading response header from upstream, client: 76.354.35.171, server: localhost, request: "GET /
login/index.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "foxtrot
.exemple.com:2031"
2020/04/24 21:49:00 [error] 1054#0: *284 FastCGI sent in stderr: "PHP message: PHP Fatal error:  The file /usr/loca
l/cwpsrv/htdocs/admin/login/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 o
r later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0" while reading response header from upstream, client: 76.354.35.171, server: localhost, request: "GET /
login/index.php HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "foxtrot
.exemple.com:2031"


my php version:
Code: [Select]
[root@foxtrot logs]# php -v
PHP 7.2.0 (cli) (built: Mar 30 2020 01:51:09) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
[root@foxtrot logs]#

csf are disabled. Everything was working fine before that.

any idea??

Offline
*****
Re: Urgent! can't access cwp panel error 500
« Reply #1 on: April 24, 2020, 10:50:47 PM »
Please

You can update to the latest version of cwp and this will solve this problem

Offline
*
Re: Urgent! can't access cwp panel error 500
« Reply #2 on: April 24, 2020, 10:59:54 PM »
Please

You can update to the latest version of cwp and this will solve this problem


How?

Code: [Select]
[root@foxtrot logs]# sh /usr/local/cwpsrv/htdocs/resources/scripts/update_cwp
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php was encoded by the ionCube Enc
oder for PHP 5.6 and cannot run under PHP 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0
[root@foxtrot logs]#

not working....ioncube issues??

Offline
*****
Re: Urgent! can't access cwp panel error 500
« Reply #3 on: April 24, 2020, 11:01:51 PM »
Code: [Select]
sh /scripts/update_cwp

Offline
*
Re: Urgent! can't access cwp panel error 500
« Reply #4 on: April 24, 2020, 11:09:25 PM »
Code: [Select]
sh /scripts/update_cwp

Code: [Select]
[root@foxtrot /]# sh /scripts/update_cwp
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php was encoded by the ionCube Enc
oder for PHP 5.6 and cannot run under PHP 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknow
n on line 0
[root@foxtrot /]#


Same issue..

Offline
*
Re: Urgent! can't access cwp panel error 500
« Reply #5 on: April 25, 2020, 06:59:08 AM »
Same here

Offline
****
Re: Urgent! can't access cwp panel error 500
« Reply #6 on: April 25, 2020, 07:09:57 AM »
Solution...

http://forum.centos-webpanel.com/index.php?topic=8782.msg30572#msg30572

You need to follow the directions to Manually update the files for your servers.
Google Hangouts:  rcschaff82@gmail.com

Offline
*****
Re: Urgent! can't access cwp panel error 500
« Reply #7 on: April 25, 2020, 09:16:36 AM »
Hello,

Test what is the cwp PHP version and if it is updated to 7.2

/usr/local/cwp/php71/bin/php -v
PHP 7.2.30

if PHP was not updated to 7.2 then try manually
yum update cwpphp --enablerepo=cwp

**Manual update CentOS 7 (ignore if you have CentOS 6)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.961.zip
unzip -o -q cwp-el7-0.9.8.961.zip
rm -f cwp-el7-0.9.8.961.zip
```

**Manual update CentOS 6 (ignore if you have CentOS 7)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget dl1.centos-webpanel.com/files/cwp/cwp2-0.9.8.765.zip
unzip -o cwp2-0.9.8.765.zip
rm -f cwp2-0.9.8.765.zip
```


**Manual update for services (This steep must be done for CentOS 6 and 7)**
```
cd /usr/local/cwpsrv/var/services/
wget static.cdn-cwp.com/files/cwp/el7/cwp-services.zip
unzip -o -q cwp-services.zip
rm -f cwp-services.zip
```

Test if all is ok, it should run update without errors
```
sh /scripts/update_cwp
```

If you get error like:
> Cannot load the ionCube PHP Loader - it was built with configuration API320151012,NTS, whereas running engine is API320170718,NTS

then run this:

```
sed -i "s/ioncube_loader_lin_7.0/ioncube_loader_lin_7.2/g" /usr/local/cwp/php71/php.ini
sh /scripts/restart_cwpsrv
```

Offline
*
Re: Urgent! can't access cwp panel error 500
« Reply #8 on: April 25, 2020, 11:13:48 AM »
Hello,

Test what is the cwp PHP version and if it is updated to 7.2

/usr/local/cwp/php71/bin/php -v
PHP 7.2.30

if PHP was not updated to 7.2 then try manually
yum update cwpphp --enablerepo=cwp

**Manual update CentOS 7 (ignore if you have CentOS 6)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.961.zip
unzip -o -q cwp-el7-0.9.8.961.zip
rm -f cwp-el7-0.9.8.961.zip
```

**Manual update CentOS 6 (ignore if you have CentOS 7)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget dl1.centos-webpanel.com/files/cwp/cwp2-0.9.8.765.zip
unzip -o cwp2-0.9.8.765.zip
rm -f cwp2-0.9.8.765.zip
```


**Manual update for services (This steep must be done for CentOS 6 and 7)**
```
cd /usr/local/cwpsrv/var/services/
wget static.cdn-cwp.com/files/cwp/el7/cwp-services.zip
unzip -o -q cwp-services.zip
rm -f cwp-services.zip
```

Test if all is ok, it should run update without errors
```
sh /scripts/update_cwp
```

If you get error like:
> Cannot load the ionCube PHP Loader - it was built with configuration API320151012,NTS, whereas running engine is API320170718,NTS

then run this:

```
sed -i "s/ioncube_loader_lin_7.0/ioncube_loader_lin_7.2/g" /usr/local/cwp/php71/php.ini
sh /scripts/restart_cwpsrv
```

Hi,

here the output from "chattr":
Code: [Select]
[root@foxtrot ~]# chattr -i -R /usr/local/cwpsrv/htdocs
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/resources/admin/addons/3rdparty/php
seclib/vendor/bin/sami.php
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/resources/admin/addons/3rdparty/php
seclib/vendor/bin/phing
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/resources/admin/addons/3rdparty/php
seclib/vendor/bin/phpcs
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/resources/admin/addons/3rdparty/php
seclib/vendor/bin/phpcbf
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/resources/admin/addons/3rdparty/php
seclib/vendor/bin/phpunit
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/admin/login/design
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/admin/user/design
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/admin/admin/design


and the output for "sh /scripts/update_cwp":
Code: [Select]
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart cwp-phpfpm.service
Redirecting to /bin/systemctl reload cwpsrv.service
Redirecting to /bin/systemctl reload cwp-phpfpm.service
chmod: cannot access ‘/opt/alt/php*/usr/sbin/*’: No such file or directory
chmod: cannot access ‘/opt/alt/php*/usr/bin/*’: No such file or directory
ls: cannot access php-fpm*: No such file or directory
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
[root@foxtrot services]#


I can access cwp panel thanks to you guys

Big thanks for help, this was the solution for me