How to run Node.js/Ruby applications on a Plesk server with CloudLinux OS and CageFS enabled?
To set up server to run Node.js/Ruby applications on Cloudlinux with CageFS enabled, follow the steps below:
Install Phusion Passenger server, Ruby support, Tools required for building Ruby gems and NodeJS support in Tools & Settings > Updates & Upgrades (or Updates) > Add/Remove Components > Web hosting.
Connect to the server using SSH.
Install the package
passenger-cagefs, which provides integration with the CageFS:
# yum -y install passenger-cagefs
Note: For the details on how the integration is performed, refer to the README file of the package, path to which can be found as follows:
rpm -ql passenger-cagefs | grep README.
Update CageFS template:
# cagefsctl –force-update
Add CageFS mount points necessary for Phusion Passenger:
# passenger-add-cagefs-mp –verbose
Remount CageFS skeleton directory and all users:
# cagefsctl –remount-all
Reload web server:
# plesk sbin pleskrc apache reload
# plesk sbin pleskrc nginx reload
Follow the documentation to deploy and start the application: