How To Install Node.js On Your Shared Account
Today we’re going to install node.js on your shared account, whether it would be on a PersonalClass or BusinessClass account, through SSH (which is the only way you can install it).
First off, you need your SSH credentials, and access to your account. You can find the credentials in your hosting account setup email you received when you first signed up for the account. If SSH is not already enabled on your account, please request our support team to enable it via live chat, phone, or by emailing email@example.com .
Let’s get started with the tutorial:
1) First off, SSH into your account. You can do this using a number of third party applications. I recommend using either xshell or putty.
2) Browse to your home directory by running the command below, replacing YOURUSERNAME with your hosting account user name:
3) Next, run this command, and make sure it reports something like:
rpm -qa | grep bzip2-devel
4) Next, we are going to install Python 2.7.6 . This is required for node.js . First, we will run this command to download the package:
- Then extract the package running:
tar xzf Python-2.7.6.tgz
-Now we will browse to that folder, similar to step 1, by running:
-And now we will configure the make file to prepare it for the installation:
./configure --prefix=$HOME --with-threads --enable-shared
- After you let that complete, run the make file by simply typing:
- Once that is done, run the install:
- You then went to get out of that folder, so run:
- Then run this so python can recognize the path:
- Next, you want to edit the .bashrc file, located in /home/username . You can do this through an SSH text editor, or simply through file manager in your cPanel account. You need to add these two lines at the end of the file:
Save the file and run:
Finally Getting To Install Node.js
Now that we got Python 2.7.6 running on your account, you can finally go through the node.js install. It’s similar to python, but with less steps. Let’s start.
1) Download the package:
- Extract it:
tar xzf node-v0.10.1.tar.gz
-Browse to the new node.js folder:
-Configuring the make file:
NOTE: THE NEXT TWO COMMANDS BELOW WILL TAKE A WHILE.
-Running the make file to prepare the installation:
- And now running the installation
2) Once all that is done, verify that node.js has been installed by running:
This should return: v 0.10.1 . This means you have successfully installed node.js! If you do not see it, please contact our support team for help.
Looking for quality web hosting? Look no further than Arvixe Web Hosting!