Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cloudlinux:how-to-install-and-configure-cloudlinux [2016-03-09 21:39:11]
rory.blanchard
cloudlinux:how-to-install-and-configure-cloudlinux [2016-03-10 21:11:28]
rory.blanchard
Line 98: Line 98:
  
 Once the PHP selector has been installed, you can configure the base options for each version of PHP inside of WHM under the CloudLinux LVE Manager. To change versions per cPanel account, log in to cPanel and make the changes under the **Select PHP Version** button under **Software**. Once the PHP selector has been installed, you can configure the base options for each version of PHP inside of WHM under the CloudLinux LVE Manager. To change versions per cPanel account, log in to cPanel and make the changes under the **Select PHP Version** button under **Software**.
 +\\
 +\\
 +===== Installing Python and Ruby Selector =====
 +
 +Very similar to the PHP Selector, you can also install the Python and Ruby selectors to be able to change your versions on the fly as well as create directories for projects inside of cPanel.
 +
 +Run the following commands in **SSH** to install the Python and Ruby selectors:
 +
 +<code>
 +yum install lvemanager alt-python-virtualenv alt-mod-passenger
 +yum groupinstall alt-python
 +yum groupinstall alt-ruby 
 +yum install alt-python27-devel
 +</code>
 +
 +==== Configuring the Python and Ruby Selector ====
 +
 +Once the selectors have been installed, you can access them inside of cPanel under **Software**
 +
 +===== Installing Apache mod_lsapi =====
 +
 +Apache mod_lsapi is based on the Litespeed apache replacement. It can improve performance for many web sites.
 +
 +<note warning>
 +Make sure that your server meets the requirements before attempting to use this
 +</note>
 +
 +==== Requirements ====
 +
 +CageFS (installed and initialized)
 +Alt-PHP
 +Apache with SuExecuUserGroup directive for each user's VirtualHost
 +mod_ruid2 disabled
 +apache itk disabled
 +
 +==== Installing Apache mod_lsapi ====
 +
 +Log into **SSH** and run the following commands:
 +
 +<code>
 +yum install liblsapi liblsapi-devel --enablerepo=cloudlinux-updates-testing
 +yum install cpanel-mod-lsapi --enablerepo=cloudlinux-updates-testing
 +/usr/bin/switch_mod_lsapi --setup
 +/usr/bin/switch_mod_lsapi --enable-global
 +service httpd restart
 +</code>
 +
 +mod_lsapi does not require any additional configuration and is ready to start using immediately after installing.
 +
 +===== Installing OptimumCache =====
 +
 +OptimumCache is a file cache system specifically designed to help speed up shared hosting. This means that common CMS platforms like WordPress and Joomla will see a lot of benefit with this installed.
 +
 +To install this run the following in SSH:
 +
 +<code>
 +yum install optimumcache
 +</code>
 +
 +==== Configuring OptimumCache ====
 +
 +OptimumCache is very easy to configure for a basic cPanel setup. If you have your **home** directory somewhere else, be sure to modify the command to point OptimumCache to the right place.
 +
 +Run the following command to configure OptimumCache:
 +
 +<code>
 +occtl --recursive --mark-dir /home
 +</code>
 +\\
 \\ \\
 \\ \\