no edit summary
==== Installing Multiple PHP Versions ====
The LiteSpeed Repository automatically installs PHP to
''/usr/local/lsws/lsphp5x/bin/lsphp '' where ''5x '' is the version and subversion. Thus PHP 5.5 would be installed to ''/usr/local/lsws/lsphp55/bin/lsphp ''.
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
''/usr/local/lsws/lsphp5x/bin/lsphp ''. 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,
''/usr/local/lsws/lsphp54/bin/lsphp '' 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) ==
rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
=== Enable Remi Repo ===