How to use memcached as much as possible on WHM server
Hello,
i installed memcached on my WHM centos server according to this tutorial and so i believe its enabled properly, i see it in phpinfo.
Now i want to ask how i can now enable memcache everywhere for all php scripts, because i have bunch of free ram and CPU is overloaded.
thx for ideas
-
Hello :) Most of the installation instructions are covered in your thread from 2012: Memcached Installation I'm not sure of your exact question here. Are you expecting it to function like Mod_Rewrite where you enable rules in the .htaccess file, or do you have additional questions? Please clarify. Thank you. 0 -
thx, so from the information in topic you linked, it means, that currently when i used EasyApache to enable memcache/d? it is automatically applied to all websites globally? So any php script uses it? thx PS: in my case same questions applies to eAccelerator (i enabled thru EasyApache too), can u advice pls? 0 -
More information about this Apache module is available here: Apache Module: MemCache Please ensure you read that full document to understand how it functions and what's compatible with it. Assuming you are using Apache 2.2, please also read: Apache Mod_Mem_Cache Here is a sample configuration from the Mod_Cache documentation you could use under "Pre Main Include" in "WHM Home " Service Configuration " Apache Configuration " Include Editor" to utilize the module for your accounts: CacheRoot c:/cacheroot CacheEnable disk / CacheDirLevels 5 CacheDirLength 3
Naturally, this is just a sample configuration, so you would have to modify it for your own system. Please ensure you open a separate thread for any questions about eAccelerator. Thank you.0 -
Why should i use this disk cache? I asked about global usage of eaccelerator and memcached. Moreower wordpress sites i host already have disk cache option so i dont know what this should do 0 -
Found here crybit.com/easy-way-to-install-memcached-and-memcache-in-a-cpanel-server/ the easiest way to install memcache/memcached. Hope it helps. 0
Please sign in to leave a comment.
Comments
5 comments