Wiki
 

Installing PHP from RPM

Installing PHP with LiteSpeed SAPI from our repository is much faster than compiling it yourself. Before you compile, you may want to check whether our repository already has a PHP build with the configuration options you need.

Add Our Repository

We currently maintain repositories for CentOS 5 and CentOS 6. You can add our repository with the following commands:

CentOS 5:

rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el5.noarch.rpm

CentOS 6:

rpm -ivh http://rpms.litespeedtech.com/centos/litespeed-repo-1.1-1.el6.noarch.rpm

Install a PHP Build

Once you've added our repository, you can use yum to install PHP for LiteSpeed with a variety of modules. Running a quick yum search lsphp55 (a search for LSPHP 5.5) turns up the following results:

lsphp55.i686 : PHP scripting language for creating dynamic web sites
lsphp55-bcmath.i686 : A module for PHP applications for using the bcmath library
lsphp55-common.i686 : Common files for PHP
lsphp55-dba.i686 : A database abstraction layer module for PHP applications
lsphp55-devel.i686 : Files needed for building PHP extensions
lsphp55-enchant.i686 : Human Language and Character Encoding Support
lsphp55-gd.i686 : A module for PHP applications for using the gd graphics library
lsphp55-gmp.i686 : A module for PHP applications for using the GNU MP library
lsphp55-imap.i686 : A module for PHP applications that use IMAP
lsphp55-ldap.i686 : A module for PHP applications that use LDAP
lsphp55-mbstring.i686 : A module for PHP applications which need multi-byte string handling
lsphp55-mcrypt.i686 : Standard PHP module provides mcrypt library support
lsphp55-mysqlnd.i686 : A module for PHP applications that use MySQL databases
lsphp55-odbc.i686 : A module for PHP applications that use ODBC databases
lsphp55-opcache.i686 : The Zend OPcache
lsphp55-pdo.i686 : A database access abstraction module for PHP applications
lsphp55-pgsql.i686 : A PostgreSQL database module for PHP
lsphp55-process.i686 : Modules for PHP script using system process interfaces
lsphp55-pspell.i686 : A module for PHP applications for using pspell interfaces
lsphp55-recode.i686 : A module for PHP applications for using the recode library
lsphp55-snmp.i686 : A module for PHP applications that query SNMP-managed devices
lsphp55-soap.i686 : A module for PHP applications that use the SOAP protocol
lsphp55-tidy.i686 : Standard PHP module provides tidy library support
lsphp55-xml.i686 : A module for PHP applications which use XML
lsphp55-xmlrpc.i686 : A module for PHP applications which use the XML-RPC protocol

Syntax

Running the following command will install LSPHP 5.5 with Zend Opcache:

yum install lsphp55-opcache.i686

If you want to combine modules, you just combine them in your command. For example:

yum install lsphp55-opcache.i686 lsphp55-soap.i686 lsphp55-mcrypt.i686 lsphp55-pgsql.i686

Versions

When you install LSPHP via RPM, it automatically uses the latest release of the sub-version you've selected. So, for example, if I install the lsphp55.i686 build today, I will get PHP 5.5.1. Tomorrow, though, if there's a new release, I would get PHP 5.5.2.

 
litespeed_wiki/php/rpm.txt · Last modified: 2013/08/05 16:27 by Michael