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
litespeed_wiki:php:apt [2019/07/25 19:25]
Jonathan Kagan [Installation]
litespeed_wiki:php:apt [2021/02/04 13:33] (current)
Lisa Clarke [What the Script Does] clarified that distro name is an example
Line 1: Line 1:
 ====== Installing PHP From The LiteSpeed Debian/​Ubuntu Repository ====== ====== Installing PHP From The LiteSpeed Debian/​Ubuntu Repository ======
  
-For LSWS native and OpenLiteSpeed,​ 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 10 (Buster), Debian 9 (Stretch), 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. As the Debian/​Ubuntu Operating Systems become EOL (End of Life) we will stop updating packages for those Operating Systems in this repository without notice.+For LSWS native and OpenLiteSpeed,​ 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 10 (Buster), Debian 9 (Stretch), Debian 8 (Jessie), Debian 7 (Wheezy), Ubuntu 12.04 (Precise Pangolin), Ubuntu 14.04 (Trusty Tahr), Ubuntu 16.04 (Xenial Xerus)Ubuntu 18.04 (Bionic Beaver) and Ubuntu 20.04 (Focal Fossa) in this repository. As the Debian/​Ubuntu Operating Systems become EOL (End of Life) we will stop updating packages for those Operating Systems in this repository without notice.
  
 ===== 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_debian_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_debian_repo.sh | bash</​code>​
-  - Install LiteSpeed PHP with apt-get: \\ \\ <​code>​apt-get install lsphpXX (XX can be 54,​55,​56,​70,​71,​72)</​code>​+  - Install LiteSpeed PHP with apt-get: \\ \\ <​code>​apt-get install lsphpXX (XX can be 54,​55,​56,​70,​71,​72,73,74)</​code>​
  
 To install other php packages for lsphpXX: To install other php packages for lsphpXX:
Line 44: Line 44:
 For example: ​ For example: ​
  
-  apt-get install ​lsphp56-gd lsphp56-mysql ​lsphp56-mcrypt lsphp56-imap+  apt-get install ​lsphp73 lsphp73-mysql ​lsphp73-pdo lsphp73-opcache
  
 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,​72) +  apt-cache search lsphpXX (XX can be 54,​55,​56,​70,​71,​72,73,74) 
-===== About enable_lst_debain_repo.sh =====+ 
 +==== What the Script Does ==== 
 + 
 +When you run the ''​enable_lst_debian_repo.sh''​ script, it will automatically execute these lines of code: 
 + 
 +<​code>​ 
 +echo "deb http://​rpms.litespeedtech.com/​debian/​ demo main" > /​etc/​apt/​sources.list.d/​lst_debian_repo.list 
 +</​code>​ 
 + 
 +This detects your OS Ubuntu/​Debian distro (''​demo''​ in this example) and adds associated LiteSpeed Debian/​Ubuntu Repository info to Debian'​s source list folder. 
 + 
 +<​code>​ 
 +wget -O /​etc/​apt/​trusted.gpg.d/​lst_repo.gpg http://​rpms.litespeedtech.com/​debian/​lst_repo.gpg  
 +</​code>​ 
 + 
 +This fetches LiteSpeed Tech's GPG public key and adds it to APT's trusted key zone.
  
-This is the script run in step 1. It will do the following things: ​ 
-  * Add the LiteSpeed Debian Repository to Debian'​s source list folder 
-<​code>​echo "deb http://​rpms.litespeedtech.com/​debian/​ jessie main" > /​etc/​apt/​sources.list.d/​lst_debian_repo.list </​code>​ 
-  * Fetch LiteSpeed Tech's gpg public key and add it to APT's trusted key zone 
-<​code>​wget -O /​etc/​apt/​trusted.gpg.d/​lst_repo.gpg http://​rpms.litespeedtech.com/​debian/​lst_repo.gpg </​code>​ 
-  * Update the APT package list 
 <​code>​apt-get update</​code>​ <​code>​apt-get update</​code>​
 +
 +This updates the APT package list. Packages installed from the LiteSpeed repository with the ''​apt-get''​ command will automatically authenticate the GPG signature of the repository.
 +
 +**REMEMBER**:​ You do not need to execute these steps yourself! The ''​enable_lst_debian_repo.sh''​ script does it for you!
 +
  
  
-When packages are installed from the LiteSpeed repository with the apt-get command, the gpg signature of the repository will now be automatically authenticated. 
 ===== Notes ===== ===== Notes =====
  
  • Admin
  • Last modified: 2019/07/25 19:25
  • by Jonathan Kagan