The ionCube Loader is a PHP extension that decodes and executes encoded files at run-time. It is not available when running PHP 8.0, but it is supported on PHP 8.1. If you are running PHP 8.0 and want to use ionCube, you must change the PHP version to 8.1 (or an earlier version, such as 7.4).
Follow the appropriate procedure below for your hosting package to change the active PHP version.
To change the PHP version on a shared or reseller hosting account, use the PHP Selector. To do this, follow these steps:
If you are using the Paper Lantern theme, in the SOFTWARE section of the cPanel home page, click Select PHP Version:
cPanel displays the current PHP version. To change the PHP version, in the Current PHP Version list box, select the version that you want to use, and then click Set as current.
The new PHP version takes effect immediately.
On Managed VPS and Dedicated servers, you can change the PHP version for an entire domain or for a specific directory. The following procedures explain how to do this.
To change the PHP version for an entire domain or domains, follow these steps:
If you are using the Paper Lantern theme, in the SOFTWARE section of the cPanel home page, click MultiPHP Manager:
To change the PHP version, under Set PHP Version per Domain, select the check box next to the domain or domains for which you want to change the PHP version:
In the PHP Version list box, select the PHP version you want to use for the domain or domains, and then click :
The new PHP version for the domain takes effect immediately.
You do not have to change the PHP version for an entire domain. Alternatively, you can set different PHP versions for different directories on your site by using .htaccess files. To do this, follow these steps:
<FilesMatch "\.(php4|php5|php3|php2|php|phtml)$"> SetHandler application/x-httpd-ea-php81___lsphp </FilesMatch>
The SetHandler directive above sets the PHP version to 8.1. If you want to use another version, type that instead. For example, to set the PHP version to 7.4 in the directory, type:
SetHandler application/x-httpd-ea-php74___lsphp
The new PHP version for the directory takes effect immediately.
For more information about ionCube, please visit http://www.ioncube.com.
Subscribe to receive weekly cutting edge tips, strategies, and news you need to grow your web business.
No charge. Unsubscribe anytime.
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.