1,115
edits
Changes
no edit summary
==== Installing Multiple PHP Versions ====
The LiteSpeed Repository automatically installs PHP to ''<code>/usr/local/lsws/lsphp5x/bin/lsphp'' </code> where ''<code>5x'' </code> is the version and subversion. Thus PHP 5.5 would be installed to ''<code>/usr/local/lsws/lsphp55/bin/lsphp''</code>.
This allows you to easily install multiple versions of PHP because different versions of PHP are installed to different directories.
=== Direct LSWS to the Location of the Installed PHP ===
As noted above, the LiteSpeed Repository installs PHP to ''<code>/usr/local/lsws/lsphp5x/bin/lsphp''</code>. This is not the place LSWS normally looks for PHP, so we will now need to direct LSWS to look there.
This can be done in the command line:
<pre>ln -sf /usr/local/lsws/lsphp55/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5</pre>
Go to the WebAdmin console > External App > your external application > Command. Change the Command setting to match the location PHP was installed to (for example, ''<code>/usr/local/lsws/lsphp54/bin/lsphp'' </code> for PHP 5.4).
Click Save and then perform a Graceful Restart for the changes to take effect.
=== Check your PHP installation ===
You can check that your PHP installation is correct by viewing a phpinfo() page. The phpinfo() page should show the correct version of PHP and LiteSpeed as the server API.
== Les RPM de Remi (Remi Repository) ==
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
=== Enable Remi Repo ===