Installing Node.js On Your cPanel Account
Posted by Alexander Azzo, Last modified by Alexander Azzo on 21 February 2016 12:49 PM
Today we’re going to install node.js on your shared cPanel account, whether it would be on a OpenVZ, Xen, Cloud or Dedicated server 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 you are having trouble logging in via SSH, you contact our support team for assistance by creating a ticket from our portal - https://portal.budgetvm.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:
4) Next, we are going to install Python 2.7.9 . This is required for node.js . First, we will run this command to download the package:
– Then extract the package running:
-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:
– 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.9 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:
-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.