Redhat / CentOS / Fedora Linux Install XCache for PHP 5

https://w‮tual.ww‬turi.com
Redhat / CentOS / Fedora Linux Install XCache for PHP 5

To install XCache for PHP 5 on a Red Hat, CentOS, or Fedora Linux system, you will need to follow these steps:

  1. Install the php-devel package: XCache requires the php-devel package to be installed in order to build and install. You can install the php-devel package using the package manager on your system. For example, if you are using yum, you can use the following command:
sudo yum install php-devel

If you are using dnf, you can use the following command:

sudo dnf install php-devel
  1. Download and extract the XCache source code: Next, you will need to download the XCache source code from the project's website (http://xcache.lighttpd.net/) and extract it to a directory on your system.

For example, you can download the latest version of XCache using wget and extract it using tar:

wget http://xcache.lighttpd.net/pub/Releases/3.2.0/xcache-3.2.0.tar.gz
tar -xzf xcache-3.2.0.tar.gz

This will extract the XCache source code to a directory named xcache-3.2.0.

  1. Compile and install XCache: Next, you will need to compile and install XCache. To do this, navigate to the XCache source code directory and run the phpize command:
cd xcache-3.2.0
phpize

This will configure the XCache source code for building.

Next, run the ./configure command to configure the build process:

./configure

Finally, run the make and make install commands to compile and install XCache:

make
sudo make install

This will install XCache on your system.

  1. Configure PHP to use XCache: Finally, you will need to configure PHP to use XCache.
Created Time:2017-10-30 14:27:15  Author:lautturi