Advertisements
First you install php, compilers and Apache
yum install php php-common httpd php-devel gcc make
Go to the desired directory and download the xcache source package.
cd /opt/
You can download the latest one from xcache.lighttpd.net
wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
Extract the files.
tar -zxvf xcache-3.1.0.tar.gz
Go to the extracted directory
cd xcache-3.1.0
Start the installation. You can refer the INSTALL file which will be in the extracted directory
less INSTALL
Prepare xcache as a PHP extension.
phpize --clean && phpize
Configure
./configure --enable-xcache
Compile the package
make
Install the package.
make install
Save the xcache parameters in mail php configuration file.
cat xcache.ini >> /etc/php.ini
Restart the web server
service httpd restart
That's it. You are done.
You can check whether it is enabled by running
#php -v
Or create phpinfo.php and run from the browser.
No comments:
Post a Comment
Be nice. That's all.