New in CWP Edge / LTSFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers. Available now in the Edge-Latest and LTS-Stable versions. Discuss in the forum

LSPHP / Cache ›
CWP Secure KernelKernel-level protectionEvery site in its own sandbox

Every PHP site, cron job and SSH session runs in its own profile that the kernel enforces. A hacked WordPress cannot read other accounts’ files, and crypto miners and unexpected processes are stopped. Discuss in the forum

Secure Kernel ›
CWP DataCenter PanelFree for CWPpro serversAll your servers on one screen

Manage all your CWP servers from one panel: live health, every hosting account, CWP and OS updates on many servers at once, backups, SSL, firewall and Telegram alerts. Discuss in the forum

DataCenter Panel ›
CWP Backup ServerFree for CWPpro serversBackups that ransomware cannot reach

Protected backups of all your CWP servers on a separate machine. Snapshots a hosting server cannot delete, and restore of files, databases, mail and whole accounts in the admin and user panel. Discuss in the forum

Backup Server ›
WordPress ManagerIncluded & freeWordPress managed from the panel

Install, secure, update, back up and clone WordPress sites without FTP. Updates are tested on a staging clone first and applied to the live site only when they pass, with a backup taken first. Discuss in the forum

WordPress Manager ›
CWP CageIsolationEvery account in its own cage

Per-account isolation built from Linux namespaces and cgroups. A break-in or a runaway script on one site cannot reach another account, the panel or the rest of the server; resource limits per hosting package. Discuss in the forum

CWP Cage ›
Script InstallerOne-click appsWordPress, Joomla, Moodle and more in one click

CWP’s own script installer in the user panel: pick an app, choose the domain and folder, and it is live in seconds with its database and admin login created automatically. Ready for LSPHP and LSAPI-Cache. Discuss in the forum

Script Installer ›
DNS ClusterFor every control panelOne DNS cluster for all your servers

Your servers keep creating domains as usual; the zones are collected into one authoritative PowerDNS cluster you control, with DNSSEC, roles and a full activity trail. Accepts CWP, cPanel, Plesk, DirectAdmin and BIND. Discuss in the forum

DNS Cluster ›
CWP BillingFree to useBilling and support system for hosting providers

Clients, services, invoices, payments, domains, server provisioning and support tickets in one place. All gateways, server modules and registrars are free, with free migration from WHMCS, ClientExec and Blesta. Discuss in the forum

CWP Billing ›
CWPproFrom $1.49 per monthEvery CWP feature unlocked

CWPpro is the professional version of Control Web Panel: all features, unlimited accounts, the latest CWP version and security fixes first. $1.49 per month or $11.99 per year. Discuss in the forum

Get CWPpro ›

/htdocs/resources/admin/include/cron.php has expired. in Unknown on line 0

Started by franckdonald, June 04, 2020, 02:57:43 PM

Previous topic - Next topic

franckdonald

Hello,
I can't reach my cwp pannel dashboard, its blank

Log error : [error] 2074#0: *74 FastCGI sent in stderr: "PHP message: PHP Fatal error:  <br>The encoded file <b>/usr/local/cwpsrv/htdocs/admin/admin/index.php</b> has expired. in Unknown on line 0" while reading response header from upstream, client: 160.155.60.61, server: localhost, request: "GET /cwp_447952aa40421b3f7663d7f09429ad87/admin/index.php?module=fast_login HTTP/1.1", upstream: "fastcgi://unix:/usr/local/cwp/php71/var/sockets/cwpsrv.sock:", host: "137.74.44.189:2031

when I run  sh /scripts/update_cwp
Cannot load the ionCube PHP Loader - it was already loaded
PHP Fatal error: 
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
in Unknown on line 0

Apache PHP info:
PHP 7.2.9 (cli) (built: Feb 26 2019 09:36:06) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies

Apache start script check:
httpd=${HTTPD-/usr/local/apache/bin/httpd}

CWP Admin check:
/usr/local/cwpsrv/htdocs/admin

CWP version:
Cannot load the ionCube PHP Loader - it was already loaded
PHP Fatal error: 
The encoded file /usr/local/cwpsrv/htdocs/resources/scripts/cwp_version has expired.
in Unknown on line 0


please Help


rcschaff

Follow the Manual Update steps below.  Please pay special attention to whether you are using CentOS 6 or 7, as it DOES matter.

QuoteTest what is the cwp PHP version and if it is updated to 7.2

/usr/local/cwp/php71/bin/php -v
PHP 7.2.30

if PHP was not updated to 7.2 then try manually
yum update cwpphp --enablerepo=cwp

**Manual update CentOS 7 (ignore if you have CentOS 6)**
```
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.961.zip
unzip -o -q cwp-el7-0.9.8.961.zip
rm -f cwp-el7-0.9.8.961.zip
```

**Manual update CentOS 6 (ignore if you have CentOS 7)**
```
chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget dl1.centos-webpanel.com/files/cwp/cwp2-0.9.8.765.zip
unzip -o cwp2-0.9.8.765.zip
rm -f cwp2-0.9.8.765.zip
```


**Manual update for services (This steep must be done for CentOS 6 and 7)**
```
chattr -R -i /usr/local/cwpsrv/var/services/
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
```

Test if all is ok, it should run update without errors
```
sh /scripts/update_cwp
```

If you get error like:
> Cannot load the ionCube PHP Loader - it was built with configuration API320151012,NTS, whereas running engine is API320170718,NTS

then run this:

```
sed -i "s/ioncube_loader_lin_7.0/ioncube_loader_lin_7.2/g" /usr/local/cwp/php71/php.ini
sh /scripts/restart_cwpsrv
Google Hangouts:  rcschaff82@gmail.com

ktsourdinis

Quote
if PHP was not updated to 7.2 then try manually

How exactly to do that without to harm webapp php version?

Namaste

I have had the same problem in the past.  It usually happened when I had not updated in a few months.  I learned to keep cwp up to date.

Check your version of cwp.
Listen to everything Pixelpadre says.

ktsourdinis

Can't update. I receive error after sh /scripts/update_cwp

QuotePHP Fatal error:
The file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php was encoded with the Encoder for PHP 7.2 and can only run on PHP 7.2 or later.
If you are the administrator of this site then please upgrade to PHP 7.2 or later and install the corresponding ionCube Loader. in Unknown on line 0

bfs


If you're on CentOs 6 and /usr/local/cwp/php71/bin/php -v returns PHP 7.2,  the steps above WILL NOT WORK, and will brick your admin panel if it wasn't already. cwp2-0.9.8.763.zip is the LAST version that will work with CWP and 7.0.x versions of PHP. Anything newer will give you the "...was encoded with the Encoder for PHP 7.2 and can only run on PHP 7.2 or later." message, anything older will give you the expired file error.

An email response I received from support earlier lead me to believe that CWP on 32-bit Centos 6 machines had reached EOL, but I see no indication of the anywhere else, and the product page still lists CWP on 32-bot Centos 6 as a current product. So, who knows...?

-B

Igor S.

CentOS 6 does not support by CWP and has no any updates. I would recommend moving your data to CentOS 8.



You can ask me to solve any problem with your server for some money in pm  ;)






Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions

Get Fast Support Here
http://centos-webpanel.com/support-services

Robert57

We are on Centos 6 and cannot access CWP. I followed the manual update procedure as outlined in this post. First checked PHP version:

root@app services]# /usr/local/cwp/php71/bin/php -v
PHP 7.2.30 (cli) (built: Apr 29 2020 05:07:56) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v10.2.5, Copyright (c) 2002-2018, by ionCube Ltd.

Then:

chattr -i -R /usr/local/cwpsrv/htdocs
cd /usr/local/cwpsrv/htdocs
wget dl1.centos-webpanel.com/files/cwp/cwp2-0.9.8.765.zip
unzip -o cwp2-0.9.8.765.zip
rm -f cwp2-0.9.8.765.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

sh /scripts/update_cwp

-----------------------------
The update_cwp fails:

[root@app services]# sh /scripts/update_cwp
PHP Fatal error:
The encoded file /usr/local/cwpsrv/htdocs/resources/admin/include/cron.php has expired.
in Unknown on line 0
-----------------------------

I read the post by bfs stating that if /usr/local/cwp/php71/bin/php -v returns PHP 7.2,  the steps above WILL NOT WORK.

Too late. How do I get php 7.0.x installed with cwp2-0.9.8.763.zip so that CWP will become usable again on Centos 6?

overseer

Is it untenable for you to update to CentOS 7? CentOS 6 was EOL in Nov 2020.