Lnmp How to install Cache Acceleration Class extensions, ImageMagick, Ioncube

Source: Internet
Author: User
Tags imagemagick memcached php script redis ioncube install redis

This tutorial is only available for LNMP1.2 or higher versions, Eaccelerator, XCache, memcached, ImageMagick, Ioncube, Redis, Opcache These PHP caching, accelerated class extensions are not available to everyone, We can choose the installation we need, and the same kind of extension does not recommend installing multiple, worrying about causing errors. Please see below for details:

These extensions and components are installed using./addons.sh.
Basic usage Description:./addons.sh {Install|uninstall} {Eaccelerator|xcache|memcached|opcache|redis|imagemagick|ioncube}

1, Eaccelerator
Eaccelerator is a free and open source PHP accelerator, optimized and dynamic content caching, improve the caching performance of PHP scripts, so that PHP script in the state of compilation, the cost of the server almost completely eliminated. It also optimizes the script to accelerate its execution efficiency.

Installation
After entering the LNMP unpacked directory, execute:./addons.sh install eaccelerator After running the following prompts:

Eaccelerator 0.9.5.3 supports PHP 5.2, and if you need this version, enter 1 back to the car.
Eaccelerator 0.9.6.1 supports PHP 5.2, 5.3, and if you want this version, enter 2 back.
Eaccelerator 1.0-dev Support PHP 5.2, 5.3, 5.4, if you need this version of 3 back to the car.

Prompt "Press any key to Install...or press CTRL + C to cancel" after carriage return confirmation, the script will automatically install Eaccelerator.

Unloading

Execution:./addons.sh Uninstall Eaccelerator

2, XCache
XCache is a fast and stable php opcode buffer developed by the people of the ROC. It is well tested and runs stably on a large flow/high load production machine, supporting the latest release of all existing PHP branches.

Installation

After entering the LNMP unpacked directory, execute:./addons.sh install XCache After running the following prompts:

You need to set the password for the Admin user of the XCache Admin page.

Appear "Press any key to Install...or press CTRL + C to cancel", return to confirm to start the installation.

Unloading

Execution:./addons.sh Uninstall XCache

3, memcached
Memcached is a high-performance distributed memory object caching system for dynamic Web applications to reduce database load. It reduces the number of read databases by caching data and objects in memory, providing the speed of dynamic, database-driven Web sites.

Installation
Enter LNMP unpacked directory, execute:./addons.sh install memcached

You can choose Php-memcache or php-memcached expansion according to your own needs, Discuz X is the former, the function is more powerful php-memcached.
Enter the corresponding ordinal number, return, confirm the carriage return to start the installation.

Unloading
Execution:./addons.sh uninstall memcached

4, ImageMagick
ImageMagick is an open source software suite for viewing, editing bitmap files, and converting image formats. It can read and edit over 100 image formats. Can be used to replace the GD library.

Installation
Enter LNMP unpacked directory, execute:./addons.sh install ImageMagick
The ImageMagick will be installed automatically when the carriage return is confirmed.

Settings: For example, in the DISCUZX set when the path needs to be filled in:/usr/local/imagemagick/bin/and disable the function of the exec to be removed before normal use.

Unloading
Execution:./addons.sh uninstall ImageMagick

5, Ioncube
This script is used to install Ioncube loader, Ioncube loader is used to decrypt ioncube encrypted PHP scripts, such as Whmcs encrypted ioncube.

Installation
Enter LNMP unpacked directory, execute:./addons.sh Install Ioncube
The Ioncube loader is automatically installed when the carriage return is confirmed.

Unloading
Execution:./addons.sh Uninstall Ioncube

6, Redis
This script is used to install Redis,redis is an open source, support network, memory based, key value pair storage database.

Installation
Enter LNMP unpacked directory, execute:./addons.sh Install Redis
After running, there are the following prompts:

Install stable version Redis 2.8.8 input: s carriage, install beta Redis 3.0.0 input: b carriage; install legacy Redis 2.6.17 input: o carriage return.

7, Opcache
This script is used to install Opcache, is a closed source Zend developed but can be used for free PHP optimization acceleration components. PHP 5.5 or later installed under LNMP 1.2 does not require an additional installation of Opcache, which is installed by default.

Install
Enter LNMP unpacked directory, execute:./addons.sh install Opcache
Opcache and eaccelerator are conflicting, The script unloads the eaccelerator and then installs the Opcache, and the Opcache is automatically installed when the carriage return is confirmed.

Uninstall
Execute:./addons.sh Uninstall Opcache

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.