How to install ionCube in centosng.pdf + PHP environment

Source: Internet
Author: User
Try it on your own VPS, but the prompt is: Siteerror: thefile/home/test/whmcs/index. phprequirestheionCubePHPLoaderioncube_loader_lin_5.2.sotobeinstalledbythesiteadministrator.

Install it on your own VPS, but the prompt is: Site error: the file/Home/test/whmcs/index. phpRequires the ionCube PHP Loader ioncube_loader_lin_5.2.so to be installed by the site administrator.

According to the above prompt, the reason is that ionCube is not installed. (Note: If the one-click installation package of lnmp is installed, run./ionCube. sh in the directory after lnmp is decompressed .)

First, execute uname-a to check whether the system is 32-bit or 64-bit, open fuse/usr/local, download the wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz, and then execute tar zxvf ioncube_loaders_lin_x86.tar.gz to decompress the package.

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.2.so"

If Zend Optimizer is installed before, the installation of ionCube conflicts with Zend Optimizer, and the following error occurs when/usr/local/php-fpm reload is executed: 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 following code is used in LNMP. after modification, run/usr/local/php-fpm restart.

[Zend Optimizer]
Zend_optimizer.optimization_level = 1
Zend_extension = "/usr/local/zend/ZendOptimizer. so"

After the modification is complete, remember/usr/local/php-fpm reload to reload the configuration and view phpinfo.

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies
With eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
With the ionCube PHP Loader v3.3.10, Copyright (c) 2002-2009, by ionCube Ltd.
> Reprinted please indicate the source: VPS detective link address: http://www.vpser.net/build/ioncube-howto.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.