http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php:opcode_cacheSo my VPS is running LiteSpeed, should I setup the standard Zend Core caching or should I use a tool like APC?
I would like to suggest that running an opcode cache like APC in conjunction with LiteSpeed will likely have minimal benefit on the performance of your server. LiteSpeed is already configured "out of the box" for enhanced speed when running in conjunction with SuPHP. Especially, if you are planning on running many sites on this server, it would be more beneficial to keep LiteSpeed running with SuPHP, which wraps incoming PHP requests with the permissions of the user that owns the PHP files. This enhances the security of your system because a PHP security exploit cannot be propagated across the system using the permissions of a shared user, such as 'nobody'.
It is certainly possible to change to DSO mode via cPanel's Web Host Manager at any time, and, if you are planning on running a single site that you want to optimize for speed, you may find some benefit in running an opcode cache without incurring much risk in having a common user account or the headache of creating one in the first place.
Would I still be using suPHP handler, or would I be switching to a different php library?That's not quite right what they wrote there. You will defintly benefit from opcache/+data cache sine Litespeed doesn't coach PHP pages. I would suggest xCache, which is supported by cPanel (v. 3.03).
You can also cache sessions with it (if you have enough RAM).
Since you're on a VPS environment, you don't need anything except LSPHP. xCache won't work with suPHP. If to be more accurate, suEXEC is faster, but has also potential problems with opcaches, so it's better to disable it under non shared hosting environment (VSP/Dedi). LSPHP is secure enough in a single user environment, so tell your host to stop with the BS.Would I still be using suPHP handler, or would I be switching to a different php library?
If your are not on LSPHP already, then your host has not idea what he's/they're doing:so, @Moshe1010 I should switch my DSO to using LSPHP and add xCache?
If your are not on LSPHP already, then your host has not idea what he's/they're doing:
LSWS uses its own LSPHP (LSAPI + PHP) to execute PHP requests. If you've been on DSO so far, then you missed the entire Litespeed performance boost (OK, not entire, but a major part of it).
So, I disabled suEXEC and got into the litespeed control panel. Real-time stats shows lsphp5.
Now running 5.4.20
rebuilt easyapache with xcache, but I can't seem to figure out how to find or configure xCache control panel, and the settings on litespeed have atorestart on, but I don't see a setting for restarting every 2 hours anywhere.
LSAPI PHP > FastCGIMemcache with FastCGI is the way to go with LiteSpeed.
We use essential cookies to make this site work, and optional cookies to enhance your experience.