How to install Ghost CMS on Windows for local development

- Advertisment -

Step by step guide to install Ghost CMS on Windows 10 or 7 locally to test and further local developments of theme or any other module.

If someone is not much with technology complication of setting up Content Management Platforms;  then he/she must go for the one which already popular and has tons of tutorial over the internet i.e WordPress.

On the other hand, if someone has technology expertise and wants to be different, where he can explore new skills, the Ghost CMS could be the option. However, indeed before migrating from WordPress to Ghost CMS you should first try it locally on your Windows or Linux systems. Learn it curves and weather it really meant for you or not.

However, because of new in the race the Ghost CMS has less tutorial and documentation as compared to other popular dominated CMS like WordPress. Thus here we are with one if you are thinking to try Ghost CMS on Windows 10/8/7 for local development; before going finally for a live production website here is the tutorial.

Step 1: Install Node.js for Ghost CMS on Windows 10/7

To install and try Ghost CMS locally on Windows 10 or 7 we will use Node.js package manager NPM. Thus, go to its official website and download the Node.js. It is available in Windows MSI installer and just needs few clicks to get installed. Here a tutorial on that: Download and install Nodejs & NPM on Windows 10.

Note: Here we are using windows 10 operating system but the steps of installation will be the same for Windows 8 and 7.

Step 2: Install Ghost-CLI on Windows using NPM

To install the Ghost blog on Windows locally, we need a command-line tool called Ghost-CLI. It will help us to download its packages and set up it over Windows quickly.

Thus, after installing Nodejs NPM, go to Windows search and run Windows Powershell under the administrative privileges.

Now, run the following command:

npm install ghost-cli@latest -g

Step 3: Install Ghost CMS locally on Windows

Finally, type:

cd\

To switch to the main drive.

Now create a directory to install the files of Ghost using the below command. The name of the directory of the folder we are giving is Ghosttest, however, you can give something else as per your convenience.

mkdir ghosttest

Enter into the created directory

cd ghosttest

Command to download and install Ghost files under that directory.

ghost install local

While installing, the setup will ask to allow the Ghost on Windows firewall to access it over the local network. Allow that and you will get the local link to open Ghost CMS in a local browser.

Command to install ghost locally

Step 4: Access Ghost CMS backend in browser

After all the installation and setup process, its time to access our locally install CMS in the browser. For that simply open your Windows system browser, for example, Mozilla or Google Chrome and point to –

http://localhost:2368/ghost

Step 5: Welcome to Ghost setup

Finally, the welcome screen will appear on your screen, and its time to mover further for its setup. Click on the Create your account button.

Ghost setup on Windows

Step 6: Create a Ghost Admin Account

Enter Site Title which you want to give your testing website. Then full name, email address and password to use as administrative credentials for logging at the backend admin panel of Ghost CMS.

Create your Ghost admin account

Nest, it will ask you to invite some staff or the people in the team to manage the website. However, we have installed it locally just for testing purpose, thus, click on “ I will do this later, take to site!“.

Invite some members

Step 7: Admin Backend of the website

So, we are here now, at the Admin panel of local Windows installed Ghost; from where we can create posts, install different integrations to Ghost, can develope themes to test and more… Locally on Windows.

Admin backend of Ghost CMS

Few useful commands to manage Ghost

Installed Ghost CMS is running using an individual background process in Nodejs over Windows, thus while using Nodejs blank windows will always running parallel. If you closed that, the working of this CMS will get stopped. Thus, to start it again we need to type start command again in Windows Powershell. The commands to manage it are:

To stop Ghost

ghost stop

To start Ghost

ghost start

Views logs

ghost log

To list all running Ghost blogs

ghost ls

For listing all ghost commands:

ghost help

All the content and data available on CMS will reside in a folder name /content/data/ under the directory you have created to install this CMS. In your case, its ghosttest and might be different in yours. Themes are under /content/themes/

If you are a ghost theme developer, then you can use Gscan to check the compatibility of your created them with CMS.

Commands to install Gscan and use are:

# Open Windows Powershell and install gscan globally

npm install gscan -g

# Scan a theme directory for compatibility

gscan /path/to/ghost/content/themes/casper

# Scan a theme zip file for compatibility

gscan -z /path/to/downloads/theme.zip

aaa

Rajkumar Mauryahttps://www.how2shout.com
Rajkumar Maurya is the H2S Media tech expert. He’s always been passionate about technology and has been writing on the subject since 2014. He has extensive knowledge of all kinds of technology, from consumer-tech to enterprise solutions. You can contact the author at-- raj@how2shout.com

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts

How to install Honeypot trap on Kali Linux to detect intrusion

If you are a new student of White Hat hacking or Ethical Hacking course then you must have heard...

Solve Kali Linux error – bash: ifconfig: command not found

Kali Linux is one of the most popular distros to learn and perform ethical hacking and penetration testing tasks....

What is the seamless mode on VirtualBox? How to control host and VM using it

If you are looking for an open-source virtual Machine manager, VirtualBox is one of the best options that you...

What is GitHub? Why programmers use GitHub?

For the upcoming software developers and the existing riders, it is always hard to manage and select the right...
- Advertisement -

How to use the Save to Facebook extension to bookmark web links on Facebook

We come across different types of links while we access the internet and one of the best ways to...

Top 5 free CRM Services for New and Small Businesses

Starting a new business or a startup can be hard as climbing a mountain with a...
- Advertisement -

You might also likeRELATED
Recommended to you