How to Install NodeJS on Shared Hosting cPanel

Published by admin on



Most of the shared hosting providers are not allowing to install NodeJS on their servers and even no SSH access for the cPanel also. But this is the correct method of get SSH / Shell Access / Jail Shell and intall NodeJS on cPanel (CentOS) and Litespeed web server.

You can copy paste those codes for installing.

——————————————————————-
wget -qO- httpsx://cdn.rawgit.com/creationix/nvm/master/install.sh | bash

(remove x on httpsx)

export NVM_DIR=”$HOME/.nvm”
[ -s “$NVM_DIR/nvm.sh” ] && . “$NVM_DIR/nvm.sh”
[ -s “$NVM_DIR/bash_completion” ] && . “$NVM_DIR/bash_completion”

nvm install node
nvm use node
——————————————————————-

SSH Terminal : www.putty.org

Thank you so much for watching this video.

Regards,
PEEK Hosting.

source


4 Comments

Usama Yousuf · June 27, 2018 at 6:10 pm

Nice video,
I tried running nodejs on my shared hosting, i have successfully installed node and npm , then i am also able to run my application on cpannel (using putty) But when i try to access my app through browser (entering domain name in URL) it is not redirecting to my app (i have editted .htaccess file as per instructions from host provider)
When i hit URL from Browser it gave me 503 error. I have uploaded my application in public_html
Please tell me what is the correct way. Help please.

saad mansuri · June 27, 2018 at 6:10 pm

from where you have got server name and port number that u have added in putty?

Gayan Sandamal · June 27, 2018 at 6:10 pm

What a coincidence!
I was just looking to install NodeJs to my shared host from PEEK Hosting.

Thanks for uploading.

chand babu · June 27, 2018 at 6:10 pm

This video is helpful…I have some doubt like after installed node where i have to install the mongodb and express node js for rest api.Are you installed in public html folder or which folder..Actually my existing application is on php and already its running on public html folder and i am going to build this in MEAN stack so just i want to check whether node mongo its running or not…Please help me i my hosting vps server and i am new to this…Thanks

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

en_USEnglish
en_USEnglish
%d bloggers like this: