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:rpm [2017/04/21 21:22]
Johathan Kagan [Les RPM de Remi (Remi Repository)]
litespeed_wiki:php:rpm [2019/03/15 20:48] (current)
Lucas Rolff [Useful PHP Install Commands]
Line 1: Line 1:
-====== Installing PHP as an RPM ======+====== Installing PHP as an RPM for CentOS systems======
  
-Installing PHP with LiteSpeed SAPI from a repository is much faster than compiling it yourself. Some users also may be unused to compiling PHP and will find this method more comfortable. PHP for LiteSpeed (LSAPI) is available in two repositories — Remi Repository and our own LiteSpeed Repository. Choose the repository that best fits your needs.+For LSWS (native) and OpenLiteSpeed, ​Installing PHP with LiteSpeed SAPI from a repository is much faster than compiling it yourself. Some users also may be unused to compiling PHP and will find this method more comfortable. PHP for LiteSpeed (LSAPI) is available in two repositories — Remi Repository and our own LiteSpeed Repository. Choose the repository that best fits your needs.
  
 ===== LiteSpeed Repository ===== ===== LiteSpeed Repository =====
  
-  * PHP 5.3, 5.4, 5.5 and 5.6,​7.0 ​and 7.1+  * PHP 5.3, 5.4, 5.55.6, 7.07.1, 7.2 and 7.3
   * CentOS and RHEL 5/6/7.   * CentOS and RHEL 5/6/7.
   * Contains most up-to-date versions of LSAPI. (Do not have to wait for a new PHP version to be released.)   * Contains most up-to-date versions of LSAPI. (Do not have to wait for a new PHP version to be released.)
Line 21: Line 21:
  
 ====== Installing PHP from the LiteSpeed Repository ====== ====== Installing PHP from the LiteSpeed Repository ======
 +The easiest way to get up and running with PHP is to use the LiteSpeed Repository. The LiteSpeed Repository comes with prebuilt PHP packages with LiteSpeed support already built in.
 ===== Add EPEL Repository ===== ===== Add EPEL Repository =====
 +PHP requires certain packages not available in the default CentOS repos. Because of this, it is required to install the Extra Packages for Enterprise Linux (EPEL) to account for the missing packages. This can be done by running the following command via a command line:
  
   yum install epel-release   yum install epel-release
Line 32: Line 33:
 CentOS 5:  CentOS 5: 
  
-  rpm -ivh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el5.noarch.rpm+  rpm -Uvh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el5.noarch.rpm
  
 CentOS 6: CentOS 6:
  
-  rpm -ivh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el6.noarch.rpm+  rpm -Uvh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el6.noarch.rpm
   ​   ​
 CentOS 7: CentOS 7:
  
-  rpm -ivh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el7.noarch.rpm+  rpm -Uvh http://​rpms.litespeedtech.com/​centos/​litespeed-repo-1.1-1.el7.noarch.rpm
  
 Note: On CentOS 5, you may need to install the package python-hashlib to avoid the error : "​[Errno -3] Error performing checksum"​ when using the repo Note: On CentOS 5, you may need to install the package python-hashlib to avoid the error : "​[Errno -3] Error performing checksum"​ when using the repo
Line 57: Line 58:
 ==== Useful PHP Install Commands ==== ==== Useful PHP Install Commands ====
  
-Install PHP 5.6 ( 5.4, 5.5, 7.0 or 7.1, please check with the corresponding application for PHP version and packages requirement) with packages to support most commonly used web applications (WordPress, Joomla, Drupal, Magento, SugarCRM, etc.): +Install PHP 5.6 ( 5.4, 5.5, 7.07.1, 7.2 or 7.3, please check with the corresponding application for PHP version and packages requirement) with packages to support most commonly used web applications (WordPress, Joomla, Drupal, Magento, SugarCRM, etc.): 
-  yum install lsphp56 lsphp56-common lsphp56-mysql lsphp56-gd lsphp56-process lsphp56-mbstring lsphp56-xml lsphp56-mcrypt lsphp56-pdo lsphp56-imap lsphp56-soap lsphp56-bcmath lsphp56-intl lsphp56-opcache+  yum install lsphp56 lsphp56-common lsphp56-mysqlnd ​lsphp56-gd lsphp56-process lsphp56-mbstring lsphp56-xml lsphp56-mcrypt lsphp56-pdo lsphp56-imap lsphp56-soap lsphp56-bcmath lsphp56-intl lsphp56-opcache
   ​   ​
 or  or 
Line 100: Line 101:
   Connection Keepalive Timeout: Not Set   Connection Keepalive Timeout: Not Set
   Response Buffering: No   Response Buffering: No
-  ​Auto Start: Yes+  Start By Server: Yes
   Command: ​  /​usr/​local/​lsws/​lsphp56/​bin/​lsphp ​   Command: ​  /​usr/​local/​lsws/​lsphp56/​bin/​lsphp ​
         ( Note: it should change to the binary you need to point to)         ( Note: it should change to the binary you need to point to)
   Back Log:  100   Back Log:  100
   Instances: 1   Instances: 1
-  ​suEXEC ​User: Not Set +  ​Run As User: Not Set 
-  ​suEXEC ​Group: Not Set+  ​Run As Group: Not Set
   umask: ​    Not Set   umask: ​    Not Set
   Run On Start Up: Not Set   Run On Start Up: Not Set
Line 166: Line 167:
   ​   ​
 CentOS5: CentOS5:
-  rpm -ivh https://​rpms.remirepo.net/​enterprise/​remi-release-5.rpm+  rpm -Uvh https://​rpms.remirepo.net/​enterprise/​remi-release-5.rpm
 CentOS6: CentOS6:
-  rpm -ivh https://​rpms.remirepo.net/​enterprise/​remi-release-6.rpm+  rpm -Uvh https://​rpms.remirepo.net/​enterprise/​remi-release-6.rpm
 CentOS7: CentOS7:
-  rpm -ivh https://​rpms.remirepo.net/​enterprise/​remi-release-7.rpm+  rpm -Uvh https://​rpms.remirepo.net/​enterprise/​remi-release-7.rpm
  
 Remi Repository requires the EPEL repository as well. Remi Repository requires the EPEL repository as well.
Line 191: Line 192:
   yum install php-litespeed   yum install php-litespeed
  
-For php5.6:+For PHP 5.6:
   yum install php php-common php-mysql php-gd php-process php-mbstring php-xml php-mcrypt php-pdo php-imap php-soap php-bcmath php-opcache php-litespeed   yum install php php-common php-mysql php-gd php-process php-mbstring php-xml php-mcrypt php-pdo php-imap php-soap php-bcmath php-opcache php-litespeed
-For php7.0/7.1+For PHP 7.0/7.1:
   yum install php php-common php-mysqlnd php-gd php-process php-mbstring php-xml php-mcrypt php-pdo php-imap php-soap php-bcmath php-intl php-json php-iconv php-opcache php-litespeed   yum install php php-common php-mysqlnd php-gd php-process php-mbstring php-xml php-mcrypt php-pdo php-imap php-soap php-bcmath php-intl php-json php-iconv php-opcache php-litespeed
   ​   ​
  • Admin
  • Last modified: 2017/04/21 21:22
  • by Johathan Kagan