Author Topic: Unable to Access CWP Panel : 500 Error  (Read 385 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Unable to Access CWP Panel : 500 Error
« on: June 25, 2025, 12:25:49 PM »
Hi All,

We are unable to access the CWP panel suddenly and its showing 500 error in browser. While checking the logs, we are able to locate the following error.

Code: [Select]
[error] 918#0: *33 FastCGI sent in stderr: "PHP message: PHP Fatal error:  <br>The encoded file <b>/usr/local/cwpsrv/htdocs/admin/index.php</b> has expired. in Unknown on line 0" while reading response header from upstream, client: x.x.x.x, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host:
This is an old server with CentOS 7 OS and was running fine. Any possible reasons for this error and how to fix this?

Thanks in advance.

Offline
*****
Re: Unable to Access CWP Panel : 500 Error
« Reply #1 on: June 25, 2025, 01:05:45 PM »
You need to update your CWP version. Older files that are IonCube encoded will expire and throw these kinds of errors.
Code: [Select]
yum -y update
yum clean all
yum check-update
yum update
sh /scripts/update_cwp

Offline
*
Re: Unable to Access CWP Panel : 500 Error
« Reply #2 on: Today at 05:41:08 PM »
same error here

update_cwp return:

update_cwp: line 1: /usr/local/cwp/php71/bin/php: No such file or directory

Offline
*****
Re: Unable to Access CWP Panel : 500 Error
« Reply #3 on: Today at 06:39:57 PM »
https://wiki.centos-webpanel.com/cwp-expired-error-500

Current version is 0.9.8.1222 so use that in the directions.
Code: [Select]
cd /usr/local/cwpsrv/htdocs
chattr -i -R /usr/local/cwpsrv/htdocs/admin
wget static.cdn-cwp.com/files/cwp/el7/cwp-el7-0.9.8.1222.zip
unzip -o -q cwp-el7-0.9.8.1222.zip
rm -f cwp-el7-0.9.8.1222.zip

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