ii apache2-bin 2.4.29-1ubuntu4.23 amd64 Apache HTTP Server (modules and other binary files)
ii apache2-data 2.4.29-1ubuntu4.23 all Apache HTTP Server (common files)
ii apache2-doc 2.4.29-1ubuntu4.23 all Apache HTTP Server (on-site documentation)
ii apache2-utils 2.4.29-1ubuntu4.23 amd64 Apache HTTP Server (utility programs for web servers)
ii libapr1:amd64 1.6.3-2 amd64 Apache Portable Runtime Library
ii libaprutil1:amd64 1.6.1-2 amd64 Apache Portable Runtime Utility Library
ii libaprutil1-dbd-sqlite3:amd64 1.6.1-2 amd64 Apache Portable Runtime Utility Library - SQLite3 Driver
ii libaprutil1-ldap:amd64 1.6.1-2 amd64 Apache Portable Runtime Utility Library - LDAP Driver
Second command
sudo: ufw: command not found
✔ Checking system Node.js version - found v16.15.1
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
Instance is currently running
ℹ Validating config [skipped]
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
Did you execute all the commands to remove Apache2? At least Nginx is running instead. However, you haven’t given me the output from /etc/nginx/sites/enabled and /etc/nginx/sites/available.
It doesn’t look like you have ufw installed. I’m guessing you haven’t hardened your server either, but that’s another topic.
Regarding ghost doctor, I want to see something like this:
$ ghost doctor
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
✔ Checking system Node.js version - found v16.15.0
✔ Checking logged in user
✔ Ensuring user is not logged in as ghost user
✔ Checking if logged in user is directory owner
✔ Checking current folder permissions
✔ Checking system compatibility
✔ Checking for a MySQL installation
+ sudo systemctl is-active ghost_thelazyleader-co
Instance is currently running
ℹ Validating config [skipped]
✔ Checking folder permissions
✔ Checking file permissions
✔ Checking content folder ownership
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
✔ Checking systemd unit file
✔ Checking systemd node version - found v16.15.0
Available applications:
Bind9
Nginx Full
Nginx HTTP
Nginx HTTPS
OpenSSH
How ! some command to show the directory listings for /etc/nginx/sites/enabled
Out put
ghostcms@boringdigital:/var/www/ghostcms/boringdigital.com$ ghost doctor
Love open source? We’re hiring Node.js Engineers to work on Ghost full-time.
https://careers.ghost.org/product-engineer-node-js
Running in development mode
✔ Checking system Node.js version - found v16.15.1
ℹ Ensuring user is not logged in as ghost user [skipped]
ℹ Checking if logged in user is directory owner [skipped]
✔ Checking current folder permissions
Instance is currently running
ℹ Validating config [skipped]
✔ Checking memory availability
✔ Checking binary dependencies
✔ Checking free space
ghostcms@boringdigital:/var/www/ghostcms/boringdigital.com$
bash: /etc/nginx/sites/available: No such file or directory
sites-enabled
total 8
395002 drwxr-xr-x 2 root root 4096 Jun 4 13:26 ./
394968 drwxr-xr-x 8 root root 4096 Jun 4 13:26 ../
395169 lrwxrwxrwx 1 root root 34 Jun 4 13:26 default -> /etc/nginx/sites-avai lable/default
ghostcms@boringdigital:/var/www/ghostcms/boringdigital.com$ ls -Flai /etc/nginx/sites-available
total 12
394996 drwxr-xr-x 2 root root 4096 Jun 4 13:26 ./
394968 drwxr-xr-x 8 root root 4096 Jun 4 13:26 ../
394999 -rw-r--r-- 1 root root 2416 Apr 6 2018 default
ii libdbd-mysql-perl 4.046-1 amd64 Perl5 database interface to the MariaDB/MySQL database
ii mariadb-client-10.1 1:10.1.48-0ubuntu0.18.04.1 amd64 MariaDB database client binaries
ii mariadb-client-core-10.1 1:10.1.48-0ubuntu0.18.04.1 amd64 MariaDB database core client binaries
ii mariadb-common 1:10.1.48-0ubuntu0.18.04.1 all MariaDB common metapackage
ii mariadb-server 1:10.1.48-0ubuntu0.18.04.1 all MariaDB database server (metapackage depending on the latest version)
ii mariadb-server-10.1 1:10.1.48-0ubuntu0.18.04.1 amd64 MariaDB database server binaries
ii mariadb-server-core-10.1 1:10.1.48-0ubuntu0.18.04.1 amd64 MariaDB database core server files
Okay, so you’re not set up properly. This is what I would like you to do. Take your time and don’t miss a step. If you encounter any errors, stop, and post here.
Okay, next steps are to create a database and database user for Ghost.
Type sudo mysql and you’ll see a different prompt. This is because you are using MySQL and have left the BASH command-line. You’ll need to replace <password> with your password; create a new one for this.
create database boringdigital_com;
create user 'user_boringdigital_com'@'localhost' identified by '<password>';
grant all privileges on boringdigital_com.* to 'user_boringdigital_com'@'localhost';
flush privileges;
quit;
I expect so, depending on the specification of your VPS. For Wordpress you’ll need PHP, and do an Nginx installation. You’ll also need to setup DNS for sun-domains or an alternative domain.
I’ve not installed Discourse, so can’t help with that, but it’ll certainly run on Ubuntu.