Last update at :2024-05-29,Edit by888u
Tutorial: PHP in LNMP environmentioncube and ZendGuard coexistDO
ioncube and ZendGuard are all PHP encryption methods with different effects. I have been tossing whmcs recently. This guy needs The components of ioncube are supported, but the components of the previous server already had zend. A conflict was found and a solution is now being found.
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 search: website registration process, domain name registration query, domain name error correction system, vps host, latest free proxy IP, in domain name, ftp free space Sichuan server rental, website IP address query, free windows10 cloud host,
p>
发表评论