Question
How do you install and activate CloudLinux's PHP Selector?
Answer
CloudLinux's PHP Selector offers similar functionality to cPanel's MultiPHP Manager but provides more customization for individual users, as well as legacy versions of PHP not offered by MultiPHP Manager. PHP Selector can be used on individual accounts, while others continue to use MultiPHP Manager.
Here are the requirements:
- CloudLinux is installed
- CageFS is installed and enabled for users intending to use PHP Selector
- Apache's PHP handler is cgi, suPHP or fcgi
- mod_suexec is installed
CloudLinux has documentation for PHP Selector's requirements available here:
CloudLinux Documentation: General Requirements for PHP Selector
The alt-php packages can be installed with a single command. You should also ensure CloudLinux's primary packages are up to date.
- Log in to the server via SSH as
root -
Run the following commands:
# yum groupinstall alt-php
# yum update cagefs lvemanager
- Log in to the server via SSH as
root -
Run the following commands:
# dnf groupinstall alt-php
# dnf update cagefs lvemanager
- Log in to the server via SSH as
root -
Run the following commands:
# dnf install els-php-release
# dnf groupinstall alt-php
# dnf update cagefs lvemanager
Now that this has been installed, navigate to WHM's Home / Software / MultiPHP Manager and ensure any users you intend to use PHP Selector with have PHP-FPM disabled and are configured to "inherit" the system PHP version.
Once complete, you should now have access to Select PHP Version in cPanel.
Additional Resources
For more information on how to configure PHP Selector on your CloudLinux server, known compatibility issues, and other platform-specific information, please see CloudLinux's documentation:
Comments
0 comments
Article is closed for comments.