Today I’m explaining the steps to enable/disable “Xcache” via cPanel for a specific account. To manage this feature via cPanel the following directives must be there in “/etc/cl.selector/php.conf” file on the server . Directives are:
xcache.cacher on/Off xcache.size --value-- xcache.stat on/Off
If those directives aren’t there on my cPanel , that means the above directives are missing in “/etc/cl.selector/php.conf” file.
Add the following directives in “/etc/cl.selector/php.conf.”
Directive = xcache.cacher Default = On Type = bool Comment = Enable or disable opcode cacher. Not available if xcache.size is 0.
Directive = xcache.size Default = 50M Type = value Range = 0 50M 100M Comment = Total amount of memory used for opcode (*.php) caching. If set to 0 - opcode caching is disabled.
Directive = xcache.stat Default = On Type = bool Comment = Do stat() to check if xcache setting updated.