Install cloudlinux components Manually
if you can not install cloudlinux components on cloudlinux wizard you can install them manually by following below guidelines:
1: PHP Selector installation :
Installation and update:
The installation of PHP Selector presumes that you already have CageFS & LVE Manager installed.
Installation of different versions of PHP & modules:
yum groupinstall alt-php
Update CageFS & LVE Manager with support for PHP Alternatives:
$ yum update cagefs lvemanager
Update
To update PHP Selector, run the following command:
yum groupupdate alt-php
This command allows to install newly released versions in PHP Selector.
2: Python Selector installation:
To use Python Selector, it is required to install the following:
- alternative Python packages by running the following command:
yum groupinstall alt-python
- CloudLinux Manager, LVE Utils and Phusion Passenger to create isolated Python environments by running the following command:
yum install lvemanager lve-utils alt-python-virtualenv
Phusion Passenger could be installed by using either ea-ruby24-mod_passenger
or ea-ruby27-mod_passenger
. ea-ruby27-mod_passenger
is not compatible with systems running CloudLinux OS 6. CloudLinux OS 7 supports both ea-ruby24-mod_passenger
and ea-ruby27-mod_passenger
. If your system runs CloudLinux OS 8, you can only use ea-ruby27-mod_passenger
.
Adding Python module requires executing permissions to gcc/make
binaries. Please enable compilers in Compiler Access section of WHM, then run:
cagefsctl --force-update
3: Ruby Selector Installation:
Note: The instructions below are suitable only for EasyApache 3 and EasyApache 4. You should follow this instruction if you use LiteSpeed.
To use Ruby Selector install alternative Ruby packages:
yum groupinstall alt-ruby
Note After installation, please make sure that you have unmarked appropriate checkboxes in VE Manager Options tab to show Ruby App in web-interface. Find the instructions on the link.
Note Adding Ruby modules requires executing permissions to gcc/make
binaries. Please enable compilers in Compiler Access section of WHM, then run: cagefsctl --force-update .
4: Node.js Selector Installation:
To use Node.js Selector, install Node.js packages by running the following command:
yum groupinstall alt-nodejs
Also, please install LVE Manager, LVE Utils and Phusion Passenger by running the following command:
yum install lvemanager lve-utils
Phusion Passenger could be installed by using either ea-ruby24-mod_passenger
or ea-ruby27-mod_passenger
. ea-ruby27-mod_passenger
is not compatible with systems running CloudLinux OS 6. CloudLinux OS 7 supports both ea-ruby24-mod_passenger
and ea-ruby27-mod_passenger
. If your system runs CloudLinux OS 8, you can only use ea-ruby27-mod_passenger
.
5: Mod_lsapi Installation:
Installing on cPanel servers with EasyApache 4:
Install mod_lsapi PRO and related packages through YUM package manager as follows:
yum install liblsapi liblsapi-devel
yum install ea-apache24-mod_lsapi
After installing mod_lsapi PRO packages run the next command to setup mod_lsapi to cPanel:
/usr/bin/switch_mod_lsapi --setup
Now, when the module is installed, restart Apache to ensure that the mod_lsapi PRO is enabled:
service httpd restart
Now the lsapi handler is available for managing through cPanel MultiPHP Manager.
For more details about switch_mod_lsapi, please visit switch_mod_lsapi tool.
Installing on Plesk servers
Install mod_lsapi PRO and related packages through YUM package manager as follows:
yum install liblsapi liblsapi-devel
yum install mod_lsapi
Once completed, run the command to setup mod_lsapi PRO and register LSPHP handlers to Plesk Panel:
/usr/bin/switch_mod_lsapi --setup
Now, when the module is installed, restart Apache to ensure that mod_lsapi PRO is enabled:
service httpd restart
Now LSPHPXY alt-php PHP handlers are available for managing through Plesk PHP Settings.
For more details about switch_mod_lsapi, please visit switch_mod_lsapi tool.
Installing on DirectAdmin servers
Installation process is done with custombuild script:
yum install liblsapi liblsapi-devel
cd /usr/local/directadmin/custombuild
./build update
./build set php1_mode lsphp
./build php n
./build apache
Restart Apache afterwards:
service httpd restart
Now all domains under php1_mode are using lsphp handler and no further actions are required to enable mod_lsapi PRO on DirectAdmin.
Installing on servers with no control panel
Note
If there is a php.conf file in Apache's conf.d, which is usually brought by the php or php-fpm packages, then it should be deleted or renamed.
For example, php.conf
can be renamed into php.conf.NO
.
Install mod_lsapi PRO and related packages through YUM package manager as follows:
yum install liblsapi liblsapi-devel
yum install mod_lsapi
Once completed, run a command to setup mod_lsapi PRO:
/usr/bin/switch_mod_lsapi --setup
Now, when the module is installed, restart Apache to ensure that mod_lsapi PRO is enabled:
service httpd restart
If you are using an alternative Apache - httpd24 , then install mod_lsapi as follows:
yum install liblsapi liblsapi-devel
yum install httpd24-mod_lsapi
Once completed, run a command to setup mod_lsapi PRO:
/opt/rh/httpd24/root/usr/bin/switch_mod_lsapi --setup
Now, when the module is installed, restart Apache to ensure that mod_lsapi PRO is enabled:
service httpd24-httpd restart
For more details about switch_mod_lsapi, please visit switch_mod_lsapi tool.
Uninstalling
Uninstall mod_lsapi PRO is performed depending on your control panel.
Select the control panel you are using:
Uninstall procedure for cPanel servers with EasyApache 4
Note
If there is a php.conf file in Apache's conf.d, which is usually brought by the php or php-fpm packages, then it should be deleted or renamed.
For example, php.conf
can be renamed into php.conf.NO
.
To remove lsapi handler from cPanel MultiPHP Manager and uninstall mod_lsapi PRO, run a command:
/usr/bin/switch_mod_lsapi --uninstall
Then remove packages with YUM package manager:
yum erase liblsapi liblsapi-devel ea-apache24-mod_lsapi
Restart Apache afterwards:
service httpd restart
Now mod_lsapi PRO is fully uninstalled.
Uninstall procedure for Plesk servers
To unregister LSPHP handlers and uninstall mod_lsapi PRO, run the command:
/usr/bin/switch_mod_lsapi --uninstall
Then remove packages with YUM package manager:
yum erase liblsapi liblsapi-devel mod_lsapi
Restart Apache afterwards:
service httpd restart
Now LSPHPXY alt-php PHP handlers and mod_lsapi PRO are fully uninstalled.
Uninstall procedure for DirectAdmin servers
Uninstall is done with custombuild script:
cd /usr/local/directadmin/custombuild
./build update
./build set php1_release [any other php mode]
./build php n
./build apache
The following PHP modes are available for DirectAdmin:
- mod_php
- fastcgi
- php-fpm
- suphp
Restart Apache afterwards:
service httpd restart
Now all domains under php1_mode are using the chosen handler and mod_lsapi PRO is fully uninstalled.
Uninstall procedure for servers with no control panel
To uninstall mod_lsapi PRO, run the command:
/usr/bin/switch_mod_lsapi --uninstall
Then remove packages with YUM package manager:
yum erase liblsapi liblsapi-devel mod_lsapi
rm [path to mod_lsapi.conf]
Restart Apache to restore the standard PHP handler:
service httpd restart
If you are using an alternative Apache: - httpd24, then uninstall mod_lsapi PRO as follows:
/usr/bin/switch_mod_lsapi --uninstall
Then remove packages with YUM package manager:
yum erase liblsapi liblsapi-devel httpd24-mod_lsapi
rm [path to mod_lsapi.conf]
Restart Apache afterwards:
service httpd24 restart
Now mod_lsapi PRO is fully uninstalled.
for complete guidelines please visit : https://docs.cloudlinux.com/cloudlinuxos/cloudlinux_os_components/