Installing Ghost on Node.js using cPanel

Does anyone know how to do this?

I’ve created an Node,js app within cPanel

Then I’ve used the command that was given to me from the Node.js App (source /home/garethjones/nodevenv/ghost/16/bin/activate && cd /home/garethjones/ghost) in Terminal to be able to use npm install ghost-cli@latest -g

Then I run the rm -rf * command to empty the directory, and the run ghost install -production command, because I want to use MySQL and have a working blog.

This is as far as I have been able to go, as it always spits out an error:

What am I doing wrong here?

I’m guessing this isn’t possible…

@garethvjones What hosting are you using?

1 Like

I’m using GreenGeeks premium offering

Have you asked GreenGeeks support?

I do use cPanel and the cPanel File Manager on my VPS to run a bunch of Ghost instances.

I’m not sure if it’s possible on their shared hosting…

The GreenGeek Ecosite Premium offering is a shared hosting offering that does not support sudo and will not work. They sell a VPS option which would work, but the price goes up from $25/month to $40/month.

I run my Ghost hosting on a $10/month Linode VPS. At that base price, I expect you could buy $15/month (or less) of carbon offset credits from source that specializes in those and still have zero-emissions hosting for $25/month.

Thanks for the reply. I did ask them prior to ordering the premium offering and was told that they supported Node.js.

But I’m beginning to think it was just to get the sale (I use GreenGeeks anyway, so made no difference in that regard).

Thanks for the response. Yes, sudo is not supported, even though I was told I could use Node.js from within cPanel to run mu Node applications.

You can run Node.js apps. Root/sudo access is a separate feature, so you can’t run Node.js apps that need sudo access.