Cannot Install Ghost on Plesk Obsidian with Nods.js

Hi there! Here are the exact steps I used to get it to work. Fortunately, it’s pretty easy.

  • Upload the latest version of ghost zip file to the domain directory of your choice in Plesk and extract all of the files into that directory (eg domain.com)
  • In that same directory, create a new file named .npmrc and add this single line “scripts-prepend-node-path=true”
  • Modify the file /core/shared/config/defaults.json file to point to the domain you’ve chose (eg https://domain.com)
  • Create a database with the name “ghost” and specify your login credentials.
  • Update the file /core/shared/config/env/config.production.json with a database client of mysql, database name: “ghost”, and correct login credentials. At one time, I specified a mariadb as the client, and that is incorrect. You must specify mysql.

The first few lines of my config.production.json look like this:

{
    "database": {
        "client": "mysql",
        "connection": {
            "host"     : "localhost",
			"port"	   : "3306",
            "user"     : "your_username",
            "password" : "your_password",
            "database" : "ghost"

Once those changes are made, go to the node.js settings. Here are what mine look like:
image
One you have established the proper settings for your domain name, click the NPM install button and wait. You should see no errors, but you may see a few warnings which you can ignore.
Click “restart app” and then attempt to navigate to domain.com/ghost. You may get a page saying you need to reload. Wait a few moments and then reload the page.