23 Aug

How to install CloudLinux on cPanel Server

cPanel server with Cloudlinux is a very popular setup in the webhosting industry especially for shared webhosting industry because this give an administrator right power to control resource of each user and at the same time best performance and page load speed for their website with advance level security protection.

Before installing cloudlinux We highly recommend to upgrade MySQL to MariaDB 10.2 because by default MySQL comes with 5.6 and end of life of this version is February 28, 2018. You can upgrade MySQL to MariaDB from WHM >> SQL Function >> MySQL/MariaDB Upgrade.

Next We are going to install Cloudlinux, Download Cloudlinux installation script:

wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy

Install the script:

sh cldeploy -i [For IP based license]

or

sh cldeploy -k [For IP based license]

Then reboot the server:

reboot

You can install Lvemanager using below command(In most case it will be automatically installed):

yum install lvemanager

Next install cagefs with the following command:

yum install cagefs
/usr/sbin/cagefsctl –init
cagefsctl –enable-all

Next We need Alt-PHP (PHP Selector):

yum groupinstall alt-php
yum update cagefs lvemanager

Now you can proceed to your WHM >> Cloudlinux LVE Manager and here you can configure Cloudlinux Features including cagefs, python, nodejs and php selector.

If you are running Apache server, you can install mod_lsapi. It can improve performance for many web sites.

Log into SSH and run the following commands:

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

If you still have questions or concerns, feel free to contact us by sending email to following address: support [at] tetrahostbd.com

08 Aug

HOW TO: Change PHP Version, Module and PHP Variables

All of our cPanel Servers are running on CloudLinux OS with cPanel/WHM.

PHP Selector is a CloudLinux feature that allows each cPanel user to select PHP version, module and php variables based on their needs.

You can easily switch between several different PHP Versions such as 5.6, 7.*, 8.* as well as enable or disable many PHP modules, such as apc, mysqli, gd, pdo, soap and etc, entirely based on your needs. It also allows user to change the PHP Variables/Settings such as: max_execution_time, upload_max_filesize, memory_limit and etc.

You can find PHP Selector by login to cPanel >> Select PHP Version. The default php version of any cPanel is set to NATIVE version, which doesn’t allow any modification. But user will be able to set another version from the pull down menu and make modification. Once another version is selected, please click on SAVE button and that specific cPanel will run on the selected version.

Users will be able to enable/disable module by checking and unchecking the modules. Once done, please SAVE again.

Users might want to change php variables as well, for example, If a user wants to increase the memory limit or max upload size, they should be able to increase the value from SWITCH TO PHP OPTIONS menu from top right corner. Once new values has been set, please SAVE the settings.

We have prepared a Video Tutorial which will help our user to understand PHP Selector feature better and use with their hosting account.

Before proceeding with this, make sure you have php version set to INHERIT from cPanel >> MultiPHP Manager.

Please check video below:

If you are having any issue with PHP Selector feature or want us to setup them for your site, please submit a ticket to support [at] tetrahostbd.com