VpsAdd tutorial: How to coexist between ioncube and ZendGuard in php under LNMP environment

888u

Last update at :2024-01-05,Edit by888u

VpsAdd tutorial: PHP in LNMP environment ioncube and ZendGuard coexistDO

ioncube and ZendGuard are all PHP encryption methods with different effects. I have been messing with whmcs recently. This guy needs the component support of ioncube. The components of the previous server already had zend. I found a conflict and now I am trying to find a solution.

Local environment lnmp php5.4+mysql+nginx server is debian7 64-bit

I tried installing it on my own VPS, but got the message: Site error: the file /home/test/whmcs/index.php requires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

p>

According to the above tips, it seems that ionCube is not installed. (Note: If you have installed the lnmp one-click installation package, you can execute ./ionCube.sh in the directory where lnmp is decompressed to install it.)

First, execute uname -a to check whether the system is 32-bit or 64-bit,

For 32-bit system Linux VPS, please execute the following command:

cd /usr/local/ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz tar xvfz ioncube_loaders_lin_x86.tar.gz

For 64-bit system Linux VPS, please execute the following command:

cd /usr/local/ wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvfz ioncube_loaders_lin_x86-64.tar.gz

Modify /usr/local/php/etc/php.ini and add the following code at the end of the file:

[ionCube Loader] zend_extension=”/usr/local/ioncube/ioncube_loader_lin_5.4.so”

If Zend Optimizer was previously installed, installing ionCube will conflict with Zend Optimizer, and the following error will occur when executing /usr/local/php/php-fpm reload: The Loader must appear as the first entry in the php. ini file in Unknown on line 0

The Zend Optimizer code must be placed behind ionCube. For example, the code in LNMP is as follows. After the modification is completed, execute /usr/local/php/php-fpm restart.

[Zend Optimizer] zend_optimizer.optimization_level=1 zend_extension=”/usr/local/zend/ZendOptimizer.so”

The modification is completed, remember to /usr/local/php/php-fpm reload to reload the configuration and check phpinfo.

If that doesn't work, it is recommended to change to the following code:

[ionCube Loader] zend_extension=”/usr/local/ioncube/ioncube_loader_lin_5.4.so” [Zend Optimizer] zend_optimizer.optimization_level=1 zend_extension=/usr/local/zend/ZendGuardLoader.so

Because the local test found that zendoptimizer.so could not be found, use zendguardloader.so directly

Finally, you can /root/lnmp restart to restart them all and find phpinfo, as shown below

Success.

Recommended site searches: me domain name, virtual space host, free virtual host, Chinese domain name registration, ftp space, how to query domain name registration number, foreign server vps, website registration number query, php space rental, Guangdong server rental,

VpsAdd tutorial: How to coexist between ioncube and ZendGuard in php under LNMP environment

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码