Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: techs 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.
[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.
-
You need to update your CWP version. Older files that are IonCube encoded will expire and throw these kinds of errors.
yum -y update
yum clean all
yum check-update
yum update
sh /scripts/update_cwp
-
same error here
update_cwp return:
update_cwp: line 1: /usr/local/cwp/php71/bin/php: No such file or directory
-
https://wiki.centos-webpanel.com/cwp-expired-error-500
Current version is 0.9.8.1222 so use that in the directions.
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
-
done, but i have always error 500
all commands run fine exept:
chattr -i -R /usr/local/cwpsrv/htdocs/admin
chattr: Operation not supported while reading flags on /usr/local/cwpsrv/htdocs/admin/admin/design
-
try
chattr -a -i -R /usr/local/cwpsrv/htdocs/admin
instead of
chattr -i -R /usr/local/cwpsrv/htdocs/admin
If it doesn't help then run:
df -T /usr/local/cwpsrv/htdocs/admin/admin/design
and show output.
-
[root@srv1 htdocs]# df -T /usr/local/cwpsrv/htdocs/admin/admin/design
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/sda3 ext4 1441774144 694852724 673609628 51% /
-
EXT4 supports the attribute "immutable".
Run:
rpm -qa | grep cwpphp
ls -l /usr/local/cwp/php71/bin/php
yum search cwpphp
and show output again.