Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
litespeed_wiki:php:apt [2017/05/05 20:24]
Johathan Kagan [Installation]
litespeed_wiki:php:apt [2018/08/06 13:07]
Jackson Zhang
Line 1: Line 1:
 ====== Installing PHP From The LiteSpeed Debian/​Ubuntu Repository ====== ====== Installing PHP From The LiteSpeed Debian/​Ubuntu Repository ======
  
-Installing PHP with LiteSpeed SAPI from our repository is much faster and easier than compiling it yourself. If you are not used to compiling PHP you will likely find this method more comfortable. We currently maintain LiteSpeed PHP (LSPHP) for Debian 8 (Jessie), Debian 7 (Wheezy), Ubuntu 12.04 (Precise Pangolin), Ubuntu 14.04 (Trusty Tahr), ​and Ubuntu 16.04 (Xenial Xerus) in this repository.+Installing PHP with LiteSpeed SAPI from our repository is much faster and easier than compiling it yourself. If you are not used to compiling PHP you will likely find this method more comfortable. We currently maintain LiteSpeed PHP (LSPHP) for Debian 8 (Jessie), Debian 7 (Wheezy), Ubuntu 12.04 (Precise Pangolin), Ubuntu 14.04 (Trusty Tahr), Ubuntu 16.04 (Xenial Xerus) and Ubuntu 18.04 (Bionic Beaver) in this repository.
  
 ===== Important Update for Debian Repository ===== ===== Important Update for Debian Repository =====
Line 36: Line 36:
  
   - Add the LiteSpeed Debian Repository with the following command: (You must have **wget** installed ) \\ \\  <​code>​wget -O - http://​rpms.litespeedtech.com/​debian/​enable_lst_debain_repo.sh | bash</​code>​   - Add the LiteSpeed Debian Repository with the following command: (You must have **wget** installed ) \\ \\  <​code>​wget -O - http://​rpms.litespeedtech.com/​debian/​enable_lst_debain_repo.sh | bash</​code>​
-  - Install LiteSpeed PHP with apt-get: \\ \\ <​code>​apt-get install lsphpXX (XX can be 54,​55,​56,​70,​71)</​code>​+  - Install LiteSpeed PHP with apt-get: \\ \\ <​code>​apt-get install lsphpXX (XX can be 54,​55,​56,​70,​71,72)</​code>​
  
 To install other php packages for lsphpXX: To install other php packages for lsphpXX:
Line 48: Line 48:
 Available packages can be checked using the following command: Available packages can be checked using the following command:
  
-  apt-cache search lsphpXX (XX can be 54,​55,​56,​70,​71)+  apt-cache search lsphpXX (XX can be 54,​55,​56,​70,​71, 72)
 ===== About enable_lst_debain_repo.sh ===== ===== About enable_lst_debain_repo.sh =====
  
Line 66: Line 66:
   * A "​php.ini"​ file will have been installed to ''/​usr/​local/​lsws/​lsphpXX/​etc/​php.ini''​. You may modify and otherwise tailor this file to suit your needs.   * A "​php.ini"​ file will have been installed to ''/​usr/​local/​lsws/​lsphpXX/​etc/​php.ini''​. You may modify and otherwise tailor this file to suit your needs.
   * Packages in the apt repo are usually only built for Long Term Support (LTS) releases due to the fact that regular releases have too short of a life span before End of Life (EOL). In most cases, non-LTS releases will still work with packages from the prior LTS release.   * Packages in the apt repo are usually only built for Long Term Support (LTS) releases due to the fact that regular releases have too short of a life span before End of Life (EOL). In most cases, non-LTS releases will still work with packages from the prior LTS release.
 +  * For opcache module, you won't find separate packages such as lsphp5x-opcache,​ but it has been included in the main package. The module location is /​usr/​local/​lsws/​lsphp55/​lib/​php/​20121212/​opcache.so. ​ By default, it is not enabled in php.ini. You should modify the main php.ini such as /​usr/​local/​lsws/​lsphp55/​etc/​php.ini by adding the following:
 +
 +  zend_extension=opcache.so
 +  opcache.enable=1
  • Admin
  • Last modified: 2021/02/04 13:33
  • by Lisa Clarke