Steps to Activate PHP Selector In Cloud Linux

How To Activate PHP Selector In Cloud Linux

Sometimes it is needed to change the PHP version. PHP Selector is a module inside Cloud Linux (cPanel) that can easily change the PHP version to multiple versions through this module. This is the case for servers running CageFS, which is active on 99% of Cloud Linux Servers.

As a result, first, we need to activate the PHP selector to change the PHP version through it.

Why Should I Activate PHP Selector Module?

This module is for checking the issues related to the PHP version and its settings. When you install this module on the VPS, all PHP versions will be installed on the VPS. As a result, you can select the related PHP version for each host and adjust limitations to php.ini.

Once this module was installed, in each web host’s user section, access to the Select PHP Version appears. This enabling any user to select the PHP version they want and enable or disable some of the functionalities.

change php version

Steps To Activate PHP Selector

  1. Installing Requirements For PHP Selector

  2. Installing PHP Selector Through SSH

Now we will review the steps to activate the PHP selector in Cloud Linux.

  • Step 1: Installing Requirements For PHP Selector

You must enable CageFS on your cPanel account to use this tool.

PHP Selector is only compatible with the following web server technologies.

suPHP, mod_fcgid, CGI (suexec), LiteSpeed.

  • Step 2: Installing PHP Selector Through SSH

Connect to your SSH through putty, and then use the following command, which is just a simple yum command.

yum groupinstall alt-php

After entering the above command, update your LVE and CageFS to install PHP Selector.

yum update cagefs lvemanager

select php versions

We have successfully installed the PHP selector module inside our Cloud Linux (Cpanel VPS).

Now inside your WHM, go to the Feature Manager to ensure that the Select PHP Version is enabled.

As easy as this, you can run the PHP Selector on your Linux VPS to manually select your PHP version.

We hope you enjoy this article and find it useful. Please share your comments with us.

Be always victorious and successful!

FAQ

  • Is PHP selector free?
    As running Cloud Linux needs a license, we can say no, it is not free.
  • Can I use all of the versions of PHP inside the PHP selector?
    Yes, you can use all of the versions of PHP.
  • When do I need to change the PHP version?
    Sometimes you upgrade your website, and newer PHP version codes need a higher PHP version level; also, the higher PHP versions are faster.
  • Do I have to install the PHP selector to change the PHP version?
    It will be easier to do it through the PHP selector, but still, there are other ways to change the PHP version.
  • Do I have to install CageFS before installing the PHP selector?
    Yes, to install the PHP selector, CageFS is needed to be installed.

Leave a Reply

Your email address will not be published. Required fields are marked.