Hello,
I had a working blog on https://myfirstblog.com.
I followed a standard installation process to install it on VPS and I was able to obtain my SSL certificate with that blog.
Then I bought a new domain https://mysecondblog.com and tried to add it to the same VPS.
I linked my VPS with DNS records of domain before I started to do the following.
I followed this guide starting from Step 8.
# Logout from your user account and use root
$ logout
# Create a new user and follow prompts
$ adduser <user2>
# Add user2 to superuser group to unlock admin privileges
$ usermod -aG sudo <user2>
# Then log in as the new user if your friend is not nearby
$ su - <user2>
# Open mysql and type password when prompted
$ mysql -u root -p
# Create separate MySQL user account
# Replace user2 and password but DO NOT remove the quotes
mysql> CREATE USER 'user2'@'localhost' IDENTIFIED BY 'password';
# Grant previlages
mysql> GRANT ALL PRIVILEGES ON *.* TO 'user2'@'localhost';
mysql> exit
# Create directory for your secondblog
sudo mkdir -p /var/www/secondblog
# Change the ownership
sudo chown <user2>:<user2> /var/www/secondblog
# Set the correct permissions
sudo chmod 775 /var/www/secondblog
# Then navigate into it
cd /var/www/secondblog
# Now install, and answer as below
ghost install
then I started it again with
sudo service nginx start
moved to my
cd /var/www/avsemgaming
and tried to set SSL
# Set SSL
$ ghost setup ssl
# Start Ghost
$ ghost start
There were some questions again and I entered my new domain information when with the setup of SSL.
Now I got this error nginx: [emerg] cannot load certificate “/etc/letsencrypt/mysecondblog.com/fullchain.cer”: BIO_new_file() failed
:No such file or directory:fopen(‘/etc/letsencrypt/mysecondblog.com/f ullchain.cer’,‘r’) error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
And I have no idea how fix it.
I would appreciate any support on how to fix it properly.
Could you please help?