Install Ghost blog on Ubuntu

black and silver computer ram stick

Update and Upgrade installed packages

apt-get update
apt-get upgrade -y

Add user and add user to sudo group

adduser blog
usermod -aG sudo blog

Install Nginx and MySQL

apt-get install nginx -y
ufw allow 'Nginx Full'
apt-get install mysql-server -y

Install Node.js

curl -sL | sudo -E bash
apt-get install -y nodejs

Install Ghost Cli

npm install [email protected] -g

MySQL – User, Database ana access

CREATE USER 'blog'@'localhost' IDENTIFIED BY 'password';
ALTER USER 'blog'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
GRANT ALL PRIVILEGES ON blog.* TO 'blog'@'localhost';

Install Ghost

su - blog
mkdir blog
cd blog
ghost install

Leave a Comment

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