cPanel & WHM Version 92 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

load xcache configuration

Liroy van Hoewijk shared this idea 7 years ago
Open Discussion

Hi,Might help to, when choosing "XCache" in EasyApache, to actually make it write the relevant configuration to php.ini that makes it work for OpCache and VarCache. Right now it doesn't do that and sets everything to 0, effectively making XCache do nothing at all until you add some lines and change a couple existing lines.

It only takes a few lines of extra php.ini stuff to be written, but that will actually enable it properly rather than having it sit and basically not do much at all :) Just for resource sake, I'd not set the cache size values too high so it's compatible with low-end machines as well. Just provide the basics, then it's easier for people to find it in their php.ini and can instantly see what values they would have to change.

Best Answer
photo

XCache's configurations are set to 0 by design. Since XCache is utilized on a variety of systems we leave the configuration details up to the system admin. Please read our PHP Options documentation to learn more about XCache's initial setup.

Comments (3)

photo
1

XCache's configurations are set to 0 by design. Since XCache is utilized on a variety of systems we leave the configuration details up to the system admin. Please read our PHP Options documentation to learn more about XCache's initial setup.

photo
1

Hi Scott,


Setting a bare minimum would be recommended. Even a small cache will be potentially more helpful than XCache not working at all. And loading in the examples is easier to customize it for people.


cPanel should, imho, either make EasyApache give a warning that XCache is absolutely useless unless you modify php.ini manually later, or add an option where users can give their variable input (like in the Apache or PHP configuration editor...); and easyapache offers them to go there afterwards.


But the way it is now, some folks will think XCache is installed and working; especially as major software scripts out there *do* detect XCache after its been installed and therefore think it works... Despite it not working at all.

You have to know XCache first to know what you have to do to make it work, what to set; what not to set. What to avoid to ensure the world won't burn.

... At least telling them they have to read some documentation when using XCache would be helpful; give 'em one of those fancy popups when selecting XCache at the bare minimum. :P

photo
1

Liroy van Hoewijk wrote:

Hi Scott,


Setting a bare minimum would be recommended. Even a small cache will be potentially more helpful than XCache not working at all. And loading in the examples is easier to customize it for people.


cPanel should, imho, either make EasyApache give a warning that XCache is absolutely useless unless you modify php.ini manually later, or add an option where users can give their variable input (like in the Apache or PHP configuration editor...); and easyapache offers them to go there afterwards.


But the way it is now, some folks will think XCache is installed and working; especially as major software scripts out there *do* detect XCache after its been installed and therefore think it works... Despite it not working at all.

You have to know XCache first to know what you have to do to make it work, what to set; what not to set. What to avoid to ensure the world won't burn.

... At least telling them they have to read some documentation when using XCache would be helpful; give 'em one of those fancy popups when selecting XCache at the bare minimum. :P

Thank you for the great recommendations. They are certainly worth considering and I will keep an eye on the feature request to hear from other administrators in case they had the same assumptions about XCache being preconfigured.