Day 137 - Failed to Install ghost blog on ec2 instancecode life UserBit entrepreneurship
sudo yum install mysql-server
Get the ghost cli
sudo npm i -g ghost-cli
Create a directory for your blog
sudo mkdir /var/www/my-blog
Set the correct permissions for the blog
sudo chmod 775 /var/www/my-blog sudo chown my-user:my-user /var/www/my-blog
however this failed
1) Checking system Node.js version Message: The version of Node.js you are using is not supported.
let’s update our node version. I have nvm installed so should be relatively simple:
nvm install stable
let’s try again
ugh, failed again… apaprently doesn’t support version 11. Let’s install a 10+ version
nvm install 10.13
try again now.
ok didn’t work. so for ghost cli to work, they need access to systemd which isn’t available for Amazon Linux AMI. Since they don’t have access to systemd, they cannot set/run with the correct permissions and fail to start the blog.
I spent a good few hours then decided I’d rather just pay 30 bucks a month for ghost to manage it for me than try to deal with this nonsense. I signed up and the experience has been pretty solid so far.