The Python Selector in CloudLinux allows users to run multiple Python versions in isolated environments. This guide explains how to install and configure it with the required tools and settings.
Follow these steps:
- Install Alternative Python Packages using the below command:
yum groupinstall alt-python
- Install CloudLinux Manager, LVE Utils, and Phusion Passenger. These tools help create isolated Python environments. Run:
yum install lvemanager lve-utils alt-python-virtualenv
- Install Phusion Passenger Module using any one of the following packages, depending on your CloudLinux OS version:
- CloudLinux OS 6: Use ea-ruby24-mod_passenger (ea-ruby27 is NOT compatible)
- CloudLinux OS 7: Both ea-ruby24-mod_passenger and ea-ruby27-mod_passenger are supported
- CloudLinux OS 8: Only ea-ruby27-mod_passenger is supported.
Choose the correct package accordingly.
- To add Python modules, execution permission for compiler tools like “gcc” and “make” is required. Enable this by allowing compiler access in WHM.
- Go to the WHM ? Compiler Access section.
- Enable access to compilers.
- Go to the WHM ? Compiler Access section.
- Then, update CageFS by running:
cagefsctl --force-update
- We recommend using CageFS for better security isolation.
This setup ensures that Python Selector works properly on your CloudLinux server. However, if you run into any difficult situation, feel free to seek help from our support specialists.