Copy link
Have you ever needed to run multiple versions of Node.js for different apps on the same server? With CloudLinux OS, WHM, and the powerful Node.js Selector, managing different Node.js environments becomes simple, secure, and scalable. In this guide, you’ll learn how to install alt-nodejs on CloudLinux, enable the Node.js Selector in WHM, and deploy apps using cPanel’s Setup Node.js App tool. Whether you’re on shared hosting or a cPanel VPS, this tutorial is perfect for developers and hosting providers who want full Node.js version control with performance and isolation—thanks to mod_alt_passenger, CageFS, and EasyApache 4 integration.
If your server is not running CloudLinux, download the CloudLinux Installer:wget https://repo.cloudlinux.com/cloudlinux/sources/cln/cldeploy
Then run it by using the key below:sh cldeploy -k YOUR_LICENSE_KEY
Replace YOUR_LICENSE_KEY with the real CloudLinux license key.
OR Use IP-Based License Activation:sh cldeploy -i
To complete the installation, reboot the server:reboot
To set up everything you need to administer Node.js apps on CloudLinux, use this command:yum install alt-nodejs lvemanager lve-utils cagefs ea-apache24-mod-passenger -y
2. Go to CloudLinux Manager → Options
3. Enable Node.js Selector
cl-selector –select nodejs –version 18 –user yourusername
cagefsctl --remount-all
lvemanager
mod_alt_passenger
1024MB
~/app/tmp/passenger.log
cl-selector --select nodejs --version 18 --user yourusername
CloudLinux with WHM simplifies Node.js version management on shared and cPanel VPS hosting. With the Node.js Selector, alt-nodejs, and CageFS isolation, you get better performance and security. Choose BigCloudy’s Node.js VPS hosting—fully optimized with EasyApache 4 and support for the latest Node.js LTS versions—for a seamless developer experience.
Save my name, email, and website in this browser for the next time I comment.
Or copy link