Jump to content

How do I install Memchached, APC, and Xcache ?


Recommended Posts

From my dashboard ... under ... Configuration checklist
I show "Browser cache & compression" and "Combine, Compress & Cache" in red and yellow colors and there are 3 warnings.

 

To use Memcached, you must install the Memcache PECL extension on your server. http://www.php.net

/manual/en/memcache.installation.php

 

To use APC, you must install the APC PECL extension on your server. http://php.net/manual/en/apc.installation.php

 

To use Xcache, you must install the Xcache extension on your server. http://xcache.lighttpd.net

My server company does not install these for me. How can I install them? Perhaps via FTP?
 

post-707132-0-77128800-1379256280_thumb.jpg

  • Like 1
Link to comment
Share on other sites

  • 1 month later...

actually there is a way of having APC on a shared account..

use ssh..

 

cd ~

mkdir modules apc

cd apc

with these commands you create (and get in) a folder "apc"

_________

 

wget http://pecl.php.net/get/APC-3.1.9.tgz

now you're getting the apc from repository

_________

 

tar -xzvf APC-3.1.9.tgz

cd APC-3.1.9

it unzips it and you get in the unzipped folder

________

phpize

./configure --enable-apc --enable-apc-mmap --with-apxs --with-php-config=/usr/bin/php-config

make

with this you're compiling APC to the proper version of PHP

_______

cd modules

mv apc.so /home/YOUR-USERNAME/modules

move the newly compiled-module (apc.so) to an accessible directory which we will define in our php.ini file.

__________

 

 

Use FTP-client to register the APC in php.ini (that's in your root------ please backup before doing something you might regreat)

 

change

extension_dir = "/usr/php/../.."

 

to

extension_dir = "/home/YOUR-USERNAME/modules"

 

-----

just before

; Windows Extensions

add:

extension=apc.so
apc.enabled=1
apc.ttl="7200"
apc.user_ttl="7200"
apc.shm_size="64"

---

 

Finally find “Process Manager” under the “Advanced” header, and kill off any /ramdisk/bin/fcgiphp5 processes. Once they’re dead, navigate back to your site (this will automatically “restart” the FastCGI process and incorporate APC into the engine).

 

hope this helps

Edited by maio (see edit history)
  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...