burger
infomaniak
infomaniak
cloud-computing-logo
Cloud Computing
web-domain-logo
Web & Domains
event-marketing-logo
Events & Marketing
  • Our products
    • Collaborative tools icon chevron
    • Web & Domains icon chevron
    • Cloud Computing icon chevron
    • Events & marketing icon chevron
    • Streaming icon chevron
      kSuite, the ethical collaborative solution
      drive icon kchat icon swiss-transfer icon custom brand icon mail icon kmeet icon kpaste icon
      Everything you need to collaborate effectively online
    • kdrive
      kDrive Store, collaborate and share your files
    • mail service
      Email Service Create your own email addresses with your domain
    • kChat
      kChat Communicate live with your team
    • kmeet
      kMeet Organise your meetings online in complete security
    • swisstransfer
      SwissTransfer Send your files up to 50 GB free of charge.
    • kpaste
      kPaste Share and encrypt your sensitive information
    • ksuite
      Custom Brand Control the brand image of your products
      Find the right web hosting solution for you
    • Domain name
      Domain name Reserve your domain name at the best price
    • Site Creator
      Site Creator Create your website with ease
    • web hosting
      Web Hosting Create your website with more than 100 CMS
    • web hosting
      Wordpress hosting Create your WordPress website easily
    • Cloud Server
      Cloud Server Power up your sites with guaranteed resources
    • SSL Certificat
      SSL certificates Secure your websites with an EV or DV certificate
    • Options
    • Domain privacy
      Domain Privacy Protect your domains’ private data
    • DNS Fast Anycast
      FastAnycast DNS Speed up your website access times
    • Dyn DNS
      DynDNS Access your devices remotely
    • Dyn DNS
      Renewal Warranty Secure your domains against loss and theft
      Find the right Cloud Computing solution
    • Cloud Server
      VPS Cloud Create a Windows or Linux server
    • jelastic cloud
      Jelastic Cloud (PaaS) Create your own customised environments
    • public cloud
      Public Cloud (IaaS) Create your projects in a high-end, ultra-competitive Cloud
    • High availibility
      Very High Availability Create a multi-data center infrastructure with customised SLAs
    • swiss backup
      Swiss Backup Back up your devices in the Cloud
    • nas synology
      Synology NAS Rent a NAS in our secure data centers
    • Housing
      Housing Install your servers in our data centers
      Infomaniak Events, the local and independent events portal
      Online ticketing service with a wide choice of concerts, shows and events.
    • online shop
      Ticketing Create your ticketing service and sell tickets.
    • kdrive
      Access Control Easily control access to your events.
    • kdrive
      Guest manager Automate your event invitations
    • kdrive
      Newsletter Send your newsletters at competitive prices
    • Streaming radio
      Streaming radio Create and broadcast your own live online radio station
    • streaming video
      Streaming Video Create and broadcast live events and online TV
    • VOD and AOD
      VOD & AOD service Host and distribute your recordings without limits
  • Support
    • FAQs 1000 FAQs, 500 tutorials and instructional videos
      icon chevron
    • Documentation for developers API references
      icon chevron
    • Contact us By chat, telephone or e-mail
      icon chevron
    • Premium support Assistance 24/7
      icon chevron
    • Sales contact For companies, NGOs and public authorities
      icon chevron
  • About us
    solar pannels
    Ecological commitment
    Discover our commitment →
    About Infomaniak
    Our vision, our values
    Our teams
    Infomaniak is recruiting
    Press and communication
    Blog and news
    Partners and resellers
    Become an Infomaniak partner
    Consult the list of partners
    Create a call for tenders
    Sales contact
    Security
    Data confidentiality
    Bug Bounty Programme
  • search-icon
    close-icon
      icon

      Would your needs exceed our solutions? To find out, contact us so that we can advise you personally.

      Our flagship products:
  • search-icon
  • My account
    • Workspace

      Webmail, contacts, calendar

    • Manager

      Managing Infomaniak products

Price Price
Knowledge base

1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!

Knowledge base Install node.js on Managed Cloud Server

    Install node.js on Managed Cloud Server

    This guide explains how to use Node.js with a managed Cloud Server.

    Node.js is a free software platform in JavaScript geared towards network applications that need to be able to scale.

    At the moment, Node.js is not available with ourshared web hosting .

    As a host, Infomaniak is only an intermediary and we we will not be able to provide additional support on this subject. If necessary, you can contact one of our partners or fill out a call for tenders for free.


    Install Node.js

    Prerequisite

    • Install NVM on the cloud server

    To install Node.js via NVM:

    nvm install stable

    Attention version 18 is not compatible, to install the latest compatible version Infomaniak will therefore need to run the command:

    nvm install 17

    List available versions:

    nvm ls-remote

    Then, to install a specific version:

    nvm install 

    Or to install the latest version:

    nvm install node

    Change version of Node.js, to put version 6.3.1 (or another version):

    nvm alias default 6.3.1


    Source

    Go to your cloud server's WebSSH console to set up NVM on your cloud server.

    You need to source the .profile file: 

    source ~/.profile

    You can then run the command: 

    nvm


    Redirection of web traffic to a specific port

    Prerequisites

    • Install HAProxy on the Cloud server

    By default, on Cloud, web traffic is sent to Apache. To send requests to a Node script or another service (as long as it "listens" on a port between 4000 and 4009), you must go through HAProxy.

    This applies in particular to Express servers, Socket.IO, Meteor.js, Nuxt.js, Django, Flask, Ruby on Rails, even possibly Java (J2E), etc. 

    To do this, you must ensure that the service is listening on a port between 4000 and 4009 (especially with server.listen(4000) for Express or a basic Node HTTP server, but depending on the project type by other means, a configuration file, in code or otherwise) and on all interfaces (0.0.0.0). It will also be necessary to configure HAProxy as in the example below: 

    1. Connect to your Infomaniak space (manager.infomaniak.com)
    2. Go to sign Cloud server
    3. Click on the cloud server concerned
    4. From the left side panel, click on FastInstaller
    5. In the list of applications, click on the iconsignto the far right of FastInstaller and select Configure



    Configuring Node as a service

    In order to configure Node as a service, we recommend using a "service systemd-user".  



    Link to this FAQ:
    Has this FAQ been helpful?
    Thank you for your feedback. Improve this FAQ?
    Please do not ask any questions through this form, it is only used to improve our FAQ.
    Please use our contact form for any question.
    Your message has been sent. Thank you for suggesting an improvement to this FAQ.
    Display all FAQs for this product
    logo infomaniak
    Prices do not include VAT
    facebook
    twitter
    linkedin
    instagram

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press space Infomaniak blog All certificates Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support Sales contact API REST Report abuse

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    ©2023 Infomaniak - Legal documents - Legal notice - Data Protection - Privacy Policy - Site map
    icann-logo
    swiss
    new-iso
    swiss-hosting
    logo infomaniak
    Prices do not include VAT

    Infomaniak

    About Infomaniak The team Infomaniak is recruiting Press and media Infomaniak blog All certificates Clients' opinions

    Support

    Assistance 7/7 FAQ and guides Premium Support offer Sales contact API REST Report abuse

    Partnerships

    Become a reseller Affiliate programme Directory of partners Requests for quotes

    Ecology

    Green hosting Certificates & awards

    Follow our development

    The email entered is invalid
    icann-logo
    swiss
    new-iso
    swiss-hosting

    facebook
    twitter
    linkedin
    instagram
    ©2023 Infomaniak
    Contracts - Legal notice - Data Protection - Privacy Policy - Site map

    Managers

    earth icon
    • EN
      • EN
      • DE
      • ES
      • FR
      • IT
    Your browser is outdated, security and browsability are no longer guaranteed. We recommend that you update it as soon as possible by clicking here.