Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: Nagataka on October 31, 2021, 07:16:27 PM
-
Hi All,
(Sorry posted this before in CentOS 6 problems, while i am running centOS 7)
After not have used my server for a while, i tried to start it and update it.
I started ./update_cwp from the script folder.
The next error appeared:
[root@server01 scripts]# ./cwp_api
PHP Fatal error:
The encoded file /usr/local/cwpsrv/htdocs/resources/scripts/cwp_api has expired.
in Unknown on line 0
So of course i started to google.
I saw a few related problemens including this:
https://forum.centos-webpanel.com/index.php?topic=9136.0
Alright that one didn't work.
So i thought encoded... could be some ioncube shit.
Did upgrade ioncude without any result.
Someone has a solution for this issue without reinstalling the whole server?
Thanks in advance!
[edit]
[root@server01 scripts]# cat /etc/centos-release
CentOS Linux release 7.9.2009 (Core)
[root@server01 scripts]# cat /usr/local/cwpsrv/htdocs/resources/admin/include/version.php
<?php
$webpanel_version = "0.9.8.961";
?>
[root@server01 scripts]# php -v
PHP 7.2.23 (cli) (built: Oct 11 2019 19:17:26) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Because i was like.. well. The system is already f******, i might as well upgrade to centOS 8
Tried todo it with this manual: https://www.tecmint.com/upgrade-centos-7-to-centos-8/
Also didn't work :)
-
if you have centos 7/8
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.1147.zip
unzip -o -q cwp-el7-0.9.8.1147.zip
rm -f cwp-el7-0.9.8.1147.zip
also make sure your automatic updates works as this is caused but not working update
-
Thanks for your quick reply.
Pretty sure i did already something like that (found in another topic).
But will try again later and will let you know the results!