Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
litespeed_wiki:php:rpm [2017/05/04 15:31] Johathan Kagan [Add the repositories] |
litespeed_wiki:php:rpm [2018/09/13 20:39] Michael Alegre [Direct LSWS to the Location of the Installed PHP] Updated 'Auto Start' setting name to 'Start By Server'. |
||
---|---|---|---|
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 mode 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.5, 5.6, 7.0, 7.1, and 7.2 |
* 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 59: | Line 59: | ||
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.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.): | ||
- | 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 101: | 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 |