How To Deploy Node JS Website To Shared Hosting or cPanel
HTML-код
- Опубликовано: 30 дек 2020
- How To Deploy Node JS Website To Shared Hosting or cPanel
this video will show you step by step process of deploying node js website to cpanel with mysql database and configuring database.
You can comment below if you have any questions.
RecyclerView Implementation tutorial
• RecyclerView Implement...
Tab Layout with ViewPager Android tutorial
• Tab Layout Using View ...
Subscribe to channel
/ @learningpointofficial
Hey guys, Thank you very much for the support for this video. Check my New Video about how to deploy react App for free to github pages. ruclips.net/video/RbB1JRKRn7I/видео.html
Lifesaver ---- I sat thru your video n learnt what needed to after having struggled on how to figure getting my app up.👌🏽 Deeply appreciated.
Glad it helped!
Shalom morning. Thank you for going the extra mile and giving us more important information! I appreciate that!
thank you for visiting my channel
Thanks for great explanations!
The title said “Deploy Node.js” and in a 15min video, 9min were used describing how to create a MySQL database. That makes no sense but... Anyway, thanks for the video. The last 6min had some good information. 👍🏻
apologies, but most videos that are available actually do not tell anything about creating database and linking it so that step was crucial for deployment that's why it was stressed the most .
Thanks
Great video. Thank you
Thank you so much, you are a legend!
Glad it helped!
Thanks Buddy you saved me. Thumbs Up
Glad I could help
Freaking lifesaver. Thanks!
Glad it helped!
Thank you ❤️
Thank you so much
Any time
Awesome, thankyou brother...
My pleasure
Great video♥️
Thank you!!
thank you
Thank you very much
You are welcome
Thank u
my domain DNS is controlled via cloudflare, so how do I point the cPanel to my CNAME ?
how do I deploy react frontend and node js backend to shared hosting / cPanel or through github to shared hosting?
Pa
Thanks 👍
Thank you too
Thanks for the video. I had a lot of doubts about this. In your code what is the port the node js app is using?
it automatically picks port but you can specify incase environment does not have it. so i was using 3000
@@LearningPointOfficial How to know what port it is using?
hi..did you solve your port problem? I use 5000 as a port number in my local PC. When I deploy my website via cPanel, what / how should I set for my port number?
hello, i coudnt find the set up node js application in my cpanel... how can i make it show?
probably your hosting provider does not support it. you can search if it is available or contact your hosting provider
i am using hostigator and my cpanel does not appear node js bro just tell me which hosting provider you are using
Error
/home/dgpmallc/nodevenv/nodejsapp/12/bin/npm: fork: Cannot allocate memory
I get this error when i run npm install. Can anyone tell me why?
when i deploy in the cPanel 1st time data can not getting showing.. what i have to do can u say?
Thanks
Welcome
Hi, i have a website already hosted in the public_html and my app.js running. But how they do connect with each other?
node js does not require website to be placed inside public_html you can place it outside on root folder. easiest way is to upload whole node js app inside root directory.
which hosting support node js apps in cpanel
Which web hosting did you use for brother?
what is the nodejs lastest version supported by Cloudlinux?
in think its 11.something
will bluegeek server supports php=-mongodb connection?
How to do it in Hostinger on shared hosting plan with it's hpanel?
very nice and helpful video.
In my case when i run website and some error in code occur it show me 503 error. How can i find the error in cpanel to fix it ?? Thanks
look for log file inside you cpanel file manager folder. that log file contains all the errors information. but generally this error means 503 Service Unavailable server error response code indicates that the server is not ready to handle the request.
Can we get this project on git?
with cron?
Tnx man
Welcome
Hi, I buy hostinger vps server and setup my cPanle through whm, install all dependancy and nodejs 16 but I can't find setup nodejs application button in my cPanle, how can I enable that
I guess you gotta change your plan then, its not included probably in your current plan.
Which shared hosting it is and what different shared hosting provider support this as i have looking in the web that not all are supported and it depends on hosting provider. Please anyone let me know
i am using namecheep shared hosting , bluehost does not support this unless you purchase dedicated hosting . so you need to look if your hosting provider supports Node Js application
Thank for the tuto, But I've a issue when a want to to a another route of my app (error : Internal server)
there is an error with your database connection or something like that which make your app crash.
@@LearningPointOfficial i use express , "exemple.com" work ok but when i want access to "exemple.com/hello-world", the server return "internal server 500"
npm WARN lifecycle The node binary used for scripts is /home/bestvdgd/nodevenv/nodejsapp/10/bin/node but npm is using /opt/alt/alt-nodejs10/root/usr/bin/node itself. Use the `--scripts-prepend-node-path` option to include the path for the node binary npm was executed with. ===== i got this error , pls help me to resolve it
stackoverflow.com/questions/51293566/how-to-include-the-path-for-the-node-binary-npm-was-executed-with
hi i keep getting this error "cant aquire .lock for app" whn trying to restart or stop the app, the "run script > start" goes indefinitely and the itself gives this error Error: secret option required for sessions when opened (yes i tried to access it even with the above errors) even whent he secret is fed into the .env file, it works on another hosting by the same company
contact hosting provider, they'll stop
Very nice. I am using like this in my local app.listen(3001, () =>{
console.log("Node running");
}) After deployment what should I write here
instead of that is a better option something like this -> app.set('port', process.env.PORT || 4000), after this - > app.listen(app.get('port'), () => {
console.log('Server on Port', app.get('port'))
}).
'cuz if the hosting provide you a port, node will running in that port if not running in 4000 or whatever you want
awesome video, but u don't have to run the js scripts. it runs infinitely so I stopped the running app and got into a mess with a lock and stuff. thank god stack overflow
yup, you gotta contact hosting provider to stop it.
Is possible to install umami.is analytics in cpanel node.js
i see in one of the hostinger article saying, "Node.js is not supported on Shared and Cloud hosting packages."? Why?
you might have to buy vps plan or some other plan to have that feature.
Did you use NodeJS Express server for your application??
yep
Great video
But sir I got one error of
403 Forbidden Access Denied Error.
Is there any error in .htaccess file?
Please help me with this
Thankyou
yes it could be solved by modifying htaccess file
Why you dont respond the guys who asking you, which web hosting you are using?
namecheap
I love you
Hello sir, Can you tell us, Can I deployed the Strapi on cPanel?
sorry i read it late, if you are still facing any issue let me know i'll make a video on that
@@LearningPointOfficial yes can you make a video on installing gatsby, strapi OR node Js on cpanel ?
@@neerajsinghtangariya2587 sure, i'll make one shortly
what will be the startup file for a React App?
please check this : medium.com/@aforamitrai/how-to-deploy-react-app-on-shared-hosting-cpanel-d682b0342424
Please mention which Hosting site is providing Nodejs setup
namecheap
Any hint on where to find the active app logs?
check at file manager root
check this thread forums.cpanel.net/threads/access-logs-file-manager-logs-etc.188001/
Nodemailer does not working after deploying on Cpanel shared hosting!!
How to solve it??
i am currently having the issue, please how do you solve it?
Sir setup nodejs is not showing up
hi, how can i run puppeteer?
bro ma godaddy ka cpanel use krta ho us ma yeh option nahi ha, ap konce hosting use kr rhy ho
namecheep, bluehost dono men hai . i don't know about godaddy. but it should be there
How do you link the css file I can't get it to work.
use reletive linking.
@@LearningPointOfficial Thanks I'll look into that,
what the port for app.js my server is not running in cpanel please rply
it picks automatically from the process or if it does not find it, it runs on port specified
I followed your video but I do not have the 'Set up node app' option in my cpanel. Can you please help?
check with your hosting provider.
@@LearningPointOfficial Can you please tell Which Hosting provider you showed here.
sir i l have tried it but it shows 503 service unavailable🥺
yes is the same problem
Hello!
Bro there is no option [ NODE ] in cPanel.
Please Help
you need to switch your hosting plan. probably you need vps plan but namecheep basic plan offer it, which i am using.
Can we use mongodb instead of mysql?
MongoDB is not installable on shared hosting. You will need to be on a VPS or Dedicated hosting plan to install it on your server.
@@LearningPointOfficial I have nodeJs website with MongoDB, How can I deploy it with my current hosting?
Which hosting provider are you using?
name cheep
@@LearningPointOfficial Is it Shared Hosting plan or VPS Plan?
I can't find "Setup Nodejs App" in my CPanel
did you found any solution ?
@@Moreynium according to my understanding in order to enable that option I will have to shell out more money, basically I will be required to purchase ssl certificate then only that option will become visible. Please let me know if you think otherwise.
There's not much point clicking the "setup nodejs app" when it states in there it's exclusive for Namecheap customers. #fail
no. it works same on other hosting systems.
On my cPanel, I don't have any nodeJS option
probably your hosting provider does not support it. you can search if it is available or contact your hosting provider
which is the hosting provider
namecheep
how can we deploy next.js project on cpanel.
Well, SSH comes handy for complex apps. You can deploy next.js too. A proper MERN stack can be deployed on the cpanel
@@wisdomcoder I just want to deploy next.js not MERN
@@vikrantavishwakarma3281 build your project and upload it to cpanel
Is front end projects not server-side no need steps like a NodeJs app
sir...after i click on run script...that running scripts loading section keeps on loading indefinitely....What to do ?
you need to ask your hosting provider to stop it. or create new app and deploy there
@@LearningPointOfficial sir I created new apps and deleted previous ones many times but the same problem exists ?
@@kumarsiddharth6275 deleting is not an option here , instance still remains running in the background. you have to contact hosting provider to manually stop it. that's the only solution i think.
@@kumarsiddharth6275 if you create new app in that case you need to change directory in file manager. i mean you need to create another copy of source code with different folder name because the other directory is already locked because of execution
@@LearningPointOfficial thanks sir for your reply...I will contact you again after trying this
how to find NodeJS HTTP Port
This will give you port set in env file, on production : process.env.PORT
In my cpanel (setup nodejs app) is not there why?
you need to change your hosting plan, or even switch hosting provider. blue host shared hosting plan does not have this. you have to switch to vps hosting plan to get this. that might be the case with your hosting provider
dude did you solve that?
@@yusufnadaroglu4108 No bro I did not try, but as he said you must upgrade your hosting plan
Which service it is
Node js deployment on bluehost cpanel
This video takes too much time going into details of database installation, user config, sub-domain creation, etc.
There is no discussion or configuration for how Apache will handle Node.js requests - this is the hardest thing with Node on cPanel and you've just avoided it all.
Hello,
There is no "Setup node js button" on cpanel
how do I enable it?
what solution you have found on this?
@@Moreynium we contacted supported they suggested we should have dedicated hosting for that. We switched to heroku.
هذا كهربائي
bruh
Sir I need help
yes ?
@@LearningPointOfficial I installed this but if I use any .js file it's showing codes not working!
Hello bro, when i try to deploy node.js app with puppeteer module, Don't work :(
yes that's true. i had the same issue once : this can help : www.digitalocean.com/community/questions/problem-with-puppeteer-npm-node-js
Absurd or too bad explanation
Useless
i hwe a query to ask,hw do i contact u
bahi apka whtsapp mel sakta koc help chaye ti kox sawal hau delpoyement k realted jazaAllah
Hi, can I have your email? I want to ask about hosting node js and install express in my hosting. I have an error, plsss 🙏🏻