Articles in this section

How to run Node.js/Ruby applications on Plesk server with CloudLinux OS and CageFS enabled?

kb: how-to Plesk for Linux

Question

How to run Node.js/Ruby applications on a Plesk server with CloudLinux OS and CageFS enabled?

Answer

Such configuration is supported in Plesk Obsidian.

To set up server to run Node.js/Ruby applications on Cloudlinux with CageFS enabled, follow the steps below:

  1. Log in to Plesk.
  2. 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.
  3. Connect to the server using SSH.
  4. 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.

  5. Update CageFS template:

    # cagefsctl --force-update

  6. Add CageFS mount points necessary for Phusion Passenger:

    # passenger-add-cagefs-mp --verbose

  7. Remount CageFS skeleton directory and all users:

    # cagefsctl --remount-all

  8. Reload web server:

    # plesk sbin pleskrc apache reload
    # plesk sbin pleskrc nginx reload

  9. Follow the documentation to deploy and start the application:

Additional information

NodeJS application does not work if a subscription user is enabled in CageFS

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.