
Sudo chown ghostuser:ghostuser /var/www/ghost Login with the newly created Ghost user, create a ghost directory, and set the right permission: su - ghostuser Now, when we have all dependencies installed, we can finally install Ghost. You will get the following output: Ghost-CLI version: 1.23.1 You will get the following output: node -version & npm -versionįirst, we need to install the Ghost client command line tool, so we can install Ghost later: sudo npm install -g check the Ghost client version, execute the following: ghost -v You can check the versions of Nodejs and NPM with the following command: node -version & npm -version To install nodejs and npm, execute the following commands: curl -sL | sudo -E bash GRANT ALL PRIVILEGES ON ghost.* TO PRIVILEGES CREATE USER IDENTIFIED BY 'YourStrongPasswordHere' Next, we need to create a Ghost database, the Ghost user, and grant the permissions for that user to the database. Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Wed 15:32:20 CST 13s ago If everything is ok, you should get the following output: systemctl status rvice To check the status of the service: systemctl status rvice Once installed, start and enable the MySQL service: systemctl start rvice & systemctl enable rvice To install MySQL execute the following command: sudo apt install mysql-server -y Process: 8664 ExecStart=/usr/sbin/nginx -g daemon on master_process on (code=exited, status=0/SUCCESS) Process: 8663 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on master_process on (code=exited, status=0/SUCCESS) Loaded: loaded (/lib/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Wed 15:27:57 CST 10s ago


rvice - A high performance web server and a reverse proxy server.

You should get the following output: sudo systemctl status nginx To check the status of Nginx, execute the following command: sudo systemctl status nginx To install the Nginx web server execute the following command: sudo apt-get install nginx -yĪfter successful installation, the Nginx service will be automatically started. sudo apt update -y & sudo apt upgrade -y Step 2. User privileges: root or non-root user with sudo privilegesīefore we start with Ghost installation, we will update the system packages to the latest versions available.A valid domain pointed to the server IP address.
