Ghost Self-Hosted Installation and Setup

Our company is engaged in the development, support and maintenance of sites of any complexity. From simple one-page sites to large-scale cluster systems built on micro services. Experience of developers is confirmed by certificates from vendors.
Development and maintenance of all types of websites:
Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Showing 1 of 1 servicesAll 2065 services
Ghost Self-Hosted Installation and Setup
Simple
from 1 business day to 3 business days
FAQ
Our competencies:
Development stages
Latest works
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1161
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1041
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    822
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    847
  • image_website-sbh_0.png
    Website development for SBH Partners
    999
  • image_website-_0.png
    Website development for Red Pear
    451

Ghost Self-Hosted Installation and Setup

Ghost self-hosted deploys via official CLI on Ubuntu. Minimum requirements: 1 CPU core, 1 GB RAM (2 GB recommended), Ubuntu 20.04/22.04, Node.js 18.x, MySQL 8.

Server Preparation

# System update
sudo apt update && sudo apt upgrade -y

# Node.js 18 via NodeSource
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs

# MySQL 8
sudo apt install -y mysql-server
sudo mysql_secure_installation

# Nginx
sudo apt install -y nginx

# Ghost CLI
sudo npm install -g ghost-cli@latest

MySQL setup:

CREATE USER 'ghost'@'localhost' IDENTIFIED BY 'strongpassword';
CREATE DATABASE ghost_prod CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON ghost_prod.* TO 'ghost'@'localhost';
FLUSH PRIVILEGES;

Ghost Installation

sudo mkdir -p /var/www/ghost
sudo chown $(whoami):$(whoami) /var/www/ghost
cd /var/www/ghost

ghost install \
  --url https://myblog.com \
  --db mysql \
  --dbhost localhost \
  --dbuser ghost \
  --dbpass strongpassword \
  --dbname ghost_prod \
  --process systemd \
  --mail SMTP \
  --mailhost smtp.mailgun.org \
  --mailport 587 \
  --mailssl true \
  --mailuser [email protected] \
  --mailpass mailgunpassword \
  --mail-from [email protected]

Ghost CLI auto-configures Nginx virtual host and requests SSL via Certbot.

Useful Management Commands

ghost status          # service status
ghost stop / start    # stop/start
ghost restart         # restart
ghost update          # update to latest version
ghost log             # view logs
ghost config          # edit config.production.json
ghost backup          # create backup (zip with content and files)

Custom Configuration

// /var/www/ghost/config.production.json
{
  "url": "https://myblog.com",
  "database": {
    "client": "mysql2",
    "connection": { "host": "localhost", "user": "ghost", "password": "...", "database": "ghost_prod" }
  },
  "mail": {
    "transport": "SMTP",
    "options": { "host": "smtp.mailgun.org", "port": 587, "auth": { "user": "...", "pass": "..." } }
  },
  "storage": {
    "active": "s3",
    "s3": {
      "accessKeyId": "...",
      "secretAccessKey": "...",
      "bucket": "myblog-media",
      "region": "eu-west-1",
      "assetHost": "https://cdn.myblog.com"
    }
  },
  "imageOptimization": { "resize": true, "srcsets": true },
  "privacy": { "useUpdateCheck": true, "useGravatar": false }
}

Installation and basic setup on prepared VPS — 2–4 hours.