Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How to run node.js on host with linux platform?

To run node.js on localhost with windows operation system is simple

  1. I download package from nodejs.org/download/

    and I execute Windows Installer (.msi)

    1. I go to console command line and I type

      node file.js

and everything fine.

but in my host with linux platform I have control panel with no option to run type file exe, msi and there is no window with command line,

So how can I be able to run nodejs on my host?

I call to support of my hosting bluehost.com and they don't know.

my Details server and control panel

Thanks for any help

share|improve this question
1  
Sorry to be blunt, but you're in way over your head if you expect to be able to "run type file exe, msi" on a Linux system. Have a look at the answer provided below, and contact your hosting provider if you need more assistance... –  voretaq7 Dec 16 '12 at 19:28
add comment

closed as too localized by EightBitTony, EEAA, Tom O'Connor, voretaq7 Dec 16 '12 at 19:28

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

up vote 2 down vote accepted

I'm going to go out on a limb and suggest that you're really really new to Linux. First, Linux doesn't run EXE or MSI files, at least not without Wine. The files you're looking at are Windows only. What you need is the Linux version of nodejs.

On Linux, you can either install nodejs via the package manager, or you can install it directly from nodejs, just get the version for your platform.

Now, you didn't say which Linux distro you're using, which is helpful information, so let's assume it's Ubuntu...

Instructions to install nodejs via package manager:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs npm

Alternatively, you can install nodejs by downloading the latest version and following the instructions at w3Resource.com:

  • Download from the nodejs downloads page. You want the Linux binaries, not Windows.
  • Unpack the tar.gz file
  • cd into the unpacked directory.
  • run './configure' without the quotes
  • run 'make', without quotes
  • run 'make install', without quotes.

Once the install is done, check to see if the install is successful by running 'node --version', without the quotes. You should see the version number output, if it's successful.

Lastly, from the images you posted, it looks like you're using a host that gives you access to a cpanel, instead of giving you direct SSH/Shell access like a professional host would, like Amazon EC2 or Rackspace. However, in this image, it looks like you may have SSH access:

SSH Access

To install nodejs, you'll more than likely need to activate SSH/Shell access, which is the Linux command line. This may even require making a phone call or email to support, as many of these cpanel hosting providers disable SSH by default.

Alternatively, you might first ask if they can install it for you, as some hosts will do this, depending on who you're with. (You didn't say, but I'm thinking Bluehost, judging by the last screenshot).

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.