Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: techs on June 25, 2025, 12:25:49 PM

Title: Unable to Access CWP Panel : 500 Error
Post 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.

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.
Title: Re: Unable to Access CWP Panel : 500 Error
Post by: overseer 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
Title: Re: Unable to Access CWP Panel : 500 Error
Post by: koala04 on February 25, 2026, 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
Title: Re: Unable to Access CWP Panel : 500 Error
Post by: overseer on February 25, 2026, 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
Title: Re: Unable to Access CWP Panel : 500 Error
Post by: koala04 on February 26, 2026, 08:22:46 AM
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
Title: Re: Unable to Access CWP Panel : 500 Error
Post by: cyberspace on February 28, 2026, 09:53:31 AM
try

Code: [Select]
chattr -a -i -R /usr/local/cwpsrv/htdocs/admin
instead of

Code: [Select]
chattr -i -R /usr/local/cwpsrv/htdocs/admin
If it doesn't help then run:

Code: [Select]
df -T /usr/local/cwpsrv/htdocs/admin/admin/design
and show output.

Title: Re: Unable to Access CWP Panel : 500 Error
Post by: koala04 on March 04, 2026, 02:24:35 PM
[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% /
Title: Re: Unable to Access CWP Panel : 500 Error
Post by: cyberspace on March 04, 2026, 02:41:46 PM
EXT4 supports the attribute "immutable".

Run:

Code: [Select]
rpm -qa | grep cwpphp

ls -l  /usr/local/cwp/php71/bin/php

yum search cwpphp

and show output again.