install.sh no longer offers to install PHP cache

brrr

Well-Known Member
#1
The latest versions of LSWS no longer have the option to install a PHP cache enabled in install.sh - it is commented out in the source now.

Why is that?

Does this also mean that when an existing LSWS installation is upgraded to a newer version, any PHP cache (eg APC) will no longer be upgraded (or even installed again)?

You should probably update the documentation to talk about this, if it is a permanent change in the way the install script works.
 

mistwang

LiteSpeed Staff
#2
You can install PHP opcode cache by building PHP binary from the web console.

We turn it off from the installer because we do not offer opcode cache binary for PHP5 while most user will use PHP5 and need to build their own from the web console.
 

brrr

Well-Known Member
#3
You can install PHP opcode cache by building PHP binary from the web console.

We turn it off from the installer because we do not offer opcode cache binary for PHP5 while most user will use PHP5 and need to build their own from the web console.
Aha.

Some users will be happy with using PHP 4.4.9 though, for its speed, for quite a while :)

A suggestion: the old setup process that built a fully functioning PHP environment for you (including a cache) in one simple step should be retained.

It was a *great* feature that meant you could have a fully-functioning LSWS cached PHP web server up in about 2 minutes flat.

Without it you are forcing users who want PHP + cache (even for the built-in PHP) into the relatively complex process of doing their own build.

In the installer, maybe you could retain the old setup step to build in the opcode cache for PHP 4, but with a note that perhaps alerted users that the installer was only setting up an opcode cache for the built-in PHP v4.4.9, and if they needed to update to PHP5 (via the web console or otherwise) they would need to attach an opcode cache themselves.
 

mistwang

LiteSpeed Staff
#4
Thanks for the suggestion, forgot to mention that you can always enable PHP opcode cache by running script

lsws/admin/misc/enable_phpa.sh
 
Top