Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: humanbieng on January 22, 2022, 05:20:48 PM

Title: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: humanbieng on January 22, 2022, 05:20:48 PM
Hello there
Suddenly i couldnt be able to login to CWP
I tried restarting cwp service & even the whole server
When tried to update the cwp using "/scripts/update_cwp" it throws the following error :
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
How could i solve this issue ?
Any help will be appreciated
Thanks in advance
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: iraqiboy90 on January 22, 2022, 06:09:06 PM
What is the error message you're getting when entering CWP?
Also try this:
Code: [Select]
echo '{"compress_js":false,"compress_html":false}' > /usr/local/cwp/.conf/.devtools_configDelete the file if it didnt help
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: humanbieng on January 22, 2022, 07:04:34 PM
Hello there
The file "/usr/local/cwp/.conf/.devtools_config" doesnt exists
And the following is the error that shows in "/usr/local/cwpsrv/logs/error_log" file
2022/01/22 21:20:10 [error] 8849#0: *31 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: xx.xx.xx.xx, server: localhost, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "xx.xx.xx.xx:2031"
Any help will be appreciated
Thanks in advance
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: iraqiboy90 on January 22, 2022, 09:26:44 PM
I know the .devtools_config file doesnt exist. The echo command creates it...
but anyways, it doesnt matter anymore. It seems like you have not updated your CWP for a long time and this issue now appeared.

Try this and see if it helps
Code: [Select]
sh /scripts/update_ioncub
If it doesnt, then contact CWP support through:
https://support.centos-webpanel.com/supporttickets.php
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: Sandeep on January 23, 2022, 05:40:35 PM
Hello there
Suddenly i couldnt be able to login to CWP
I tried restarting cwp service & even the whole server
When tried to update the cwp using "/scripts/update_cwp" it throws the following error :
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
How could i solve this issue ?
Any help will be appreciated
Thanks in advance

hi it can be issue with user side as probably you blocked the cwp update or you didn't updated cwp for long time. If you've CWP pro enabled contact us we'll fix it.
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: anandmys on October 25, 2026, 05:36:49 PM
Facing this very same issue

Admin is showing 500 internal error

[root@manage src]# sh /scripts/update_cwp
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has been encoded by the ionCube Encoder for PHP 8.3 and cannot be decoded by this ionCube Loader.
 in Unknown on line 0

sh /scripts/update_ioncube is not fixing the issue.

I have cwp pro and 1.23 installed

Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: GLD on October 25, 2026, 06:01:40 PM
Facing this very same issue

Admin is showing 500 internal error

[root@manage src]# sh /scripts/update_cwp
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has been encoded by the ionCube Encoder for PHP 8.3 and cannot be decoded by this ionCube Loader.
 in Unknown on line 0

sh /scripts/update_ioncube is not fixing the issue.

I have cwp pro and 1.23 installed

I had similar issue - but I've managed to fix it - in my case it was some depedency issue and update did not finish completely

Error I was getting:

Quote
[root@xxxxx ~]# /scripts/update_cwp


====================================================
============= CentOS Web Panel Cron ================
====================================================


###########################
Firewall Flush Daily Blocks
###########################


######################
Update Server Packages
######################
Redirecting to /bin/systemctl restart cwpsrv.service
Redirecting to /bin/systemctl restart httpd.service
Redirecting to /bin/systemctl reload httpd.service
Redirecting to /bin/systemctl reload nginx.service
Redirecting to /bin/systemctl reload httpd.service
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
[root@xxxxx ~]# /scripts/update_cwp
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has been encoded by the ionCube Encoder for PHP 8.3 and cannot be decoded by this ionCube Loader.
 in Unknown on line 0
[root@xxxxx ~]# /scripts/update_cwp
PHP Fatal error:  The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has been encoded by the ionCube Encoder for PHP 8.3 and cannot be decoded by this ionCube Loader.
 in Unknown on line 0
[root@xxxxx scripts]# /usr/local/cwp/php71/bin/php -v
PHP 7.2.30 (cli) (built: Apr 29 2020 02:29:42) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader + ionCube24 v15.5.0, Copyright (c) 2002-2026, by ionCube Ltd.
   

You can find new cwp scripts (I'm on Alma 8 - I've managed to fix it by using / tweaking scripts / run comands from scripts manually - I had to download cwpphp-8.3.36-1.x86_64.rpm and compile some PHP extension - I think it was libzip)

Check and try this scripts:
- update_cwpphp83
- update_ioncube

Anyway, at the moment I'm facing one bug
- if I run update_cwp - it download intl.so and it will generate /usr/local/cwp/php71/php.d/intl.ini (load intl extension)
- it seems intl is already compiled inside cwp php so I'm getting error/warning when restarting services (error that intl is already loaded)
- workaround - edit intl.ini and remove content of file (it's single line: extension=intl)
* if you delete this file it will generate it again once it runs update_cwp :/ (in my case the solution was to keep intl.ini in place but remove content

Hope CWP team will fix all this issues soon
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: Administrator on October 25, 2026, 07:14:46 PM
CWP not working ## Quick fix for old php 7.2 issues

Run as **root** on the affected server:


wget -O /root/cwp83fix.sh http://static.cdn-cwp.com/files/cwp/el7/cwp83fix.sh
sh /root/cwp83fix.sh --check     # diagnose only, changes nothing
sh /root/cwp83fix.sh             # apply the fix


Log: /var/log/cwp/cwp83fix.log — working dir: /root/cwp83fix
Title: Re: The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has e
Post by: Martins-phpbb on October 25, 2026, 09:48:41 PM
Working dials would be nice.