What Ghost Installation Could Be Your Next Big Obsession?

How to Set Up a Ghost Installation Ghost is a new CMS that is targeted at bloggers and content writers. It has a few unique features that make it stand apart from other CMS options like WordPress. Ghost is easy to install and configure for production. In this article, we will make use of ghostCLI, which is a command-line tool that allows you to quickly and easily install and configure Ghost. Installing Ghost Ghost is a open-source blog publishing platform that provides an elegant interface to create and publish content. It was developed after the success of a crowdfunding campaign to create an unprofitable project. It is now accessible without licensing restrictions. It is used by a variety of developers across the globe and has a huge support community. It is a speedy light, responsive, and lightweight CMS that works well on all kinds of devices. Follow the steps below to install Ghost To install Ghost, log into your droplet using SSH, and change the prompt of your user to # (it should only appear on your screen). This will inform your terminal where it is installing the packages. Run the command node-v to verify that it has been installed correctly. After a few seconds, Ghost will ask you to enter the URL of your blog. It's a good idea to start this process before you've configured your domain and made your site public. This gives you a chance to test out your blog and correct any mistakes before making it public. Enter to begin the installation. The installation will take a few moments. If you are asked for your hostname, use 127.0.0.1 (using the default will cause Ghost to use an IPv6 address which could result in an ECONNREFUSED error later on). If asked if you want to install Systemd you should answer with Y. This will configure Nginx for your Ghost blog. It will redirect requests from port 80 to the port that Ghost is running on, and add a layer of indirection to your visitors so that they don't need to add :2368 to the end of the address. It will also set up the proper HTTP headers, so you'll be able see your visitors' real IP addresses in your Ghost logs. You'll also need to create a database user for Ghost. Create a user called ghostuser with a suitable name and a secure password and then add it to the sudoers group so that it can run sudo commands. Su – ghostuser will start a login shell for the user named ghostuser. Installing Nginx Nginx is an internet server that can be used to serve static content and handle requests as a reverse proxy, and connect with FastCGI applications. It is a more lightweight alternative to Apache that can offer improved performance and less memory footprint. Nginx's configuration files can be loaded again without the need to shutdown and re-start. This is done by sending an alert to the master process that will then check the syntax and applies any necessary changes. It will also send an email to the old worker processes asking them to stop accepting new connections and to continue servicing existing ones. To create a configuration file for Nginx, open the “/etc/nginx/sites-available/” directory and then create a symbolic link to the file you want to use in the “/etc/nginx/sites-enabled/” directory. The symbolic links, or symlinks, are used to track which of the Nginx server blocks are enabled. This will allow your nginx server to respond to requests from your domain as well as the default site. The syntax of nginx is extremely flexible. You can configure a variety of things, like permitting SSL connections or setting reverse proxy servers, among others. Check out the official Nginx Documentation for more details. Contrary to Apache, Nginx uses an Asynchronous event-driven connection handling system instead of spawning the process from scratch for each request. This makes it more efficient, particularly for sites that experience high amounts of traffic. It can be configured to store static pages on your site. This can improve performance. Nginx is reverse proxy that can be used to redirect client (e.g. web browser) requests to other servers. This is useful for load balancing speeds up websites, and offering additional security. Once the Nginx server is up and running and you are able to verify that it is able to accept HTTP requests using a tool like nginx-stat or by looking through the logs located in the “/var/log/nginx/” directory on your Ubuntu machine. This will help you identify any errors that may be happening. You can also restart and stop Nginx by using the systemctl command. To do this, enter the following: Configuring Ghost Once you've installed Ghost You can then begin using it to publish your blog. You can also alter the appearance and style of your blog using themes. Ghost offers a wide selection of themes, from simple to the complicated. Some are free, while others require payment. Whatever theme you pick, keep in mind that the main purpose is to be a blogging platform. It's not made for more complicated pages, such as landing pages and online stores. You can set up Ghost so that it uses an SMTP email server to send newsletters and notifications. This is important to ensure that your followers receive emails regularly and don't miss posts from you. Ghost is compatible with a number reliable SMTP providers. It is important to keep in mind that you will need a different login and password to access SMTP compared to your Ghost account. Be sure to write down your SMTP details or keep them in a safe place. You can modify Ghost's default behavior using a custom configuration file and modify it to suit your requirements. You can make use of the ghost-cli command to create an individual configuration file. There are some configuration options that are mandatory by default and many optional ones. You can include an Redis adapter for caching to Ghost to let it store data in memory instead of the database. This speeds up response time by not having to retrieve data from the database every time a page is rendered. This is particularly useful for sites with complex templates and large demand for helpers. The command ghost-cli -cache-adapter adapter> —configure_cache( adapter>) will configure the cache adapter and determine the size of the cache. You can also change the name of the cache which is displayed in the admin panel. Ghost must be kept up-to-date to function properly and remain safe. The Key Lab releases new versions of the software frequently. You can find information about how to upgrade the software on the official website. If you're upgrading to a new version, make sure to backup your files and data first. Starting Ghost After the Setup phase is over, the Ghost will enter its Hunting phase. During this time, the Ghost will be visible to all players and will begin to move around the map, killing everyone it encounters. In the closets, rooms or behind furniture to avoid this risky part of the game. The Ghost will only kill players that are within its range of view Therefore, it is essential to remain hidden at all times. In the DigitalOcean marketplace, click the “Droplet” option and choose an option to begin with (the lowest priced plan is good for the moment). Note the public IP address of the droplet once it's been created. This is the IP address that you will require to connect to via SSH. Once you have your server configured then you can start to build the blog pages and posts for your Ghost blog. You can choose from a range of free themes as well as premium themes. The platform also allows a variety of integrations such as Google Analytics, Zapier, MailChimp, and more. It uses Markdown rather than visual WYSIWYG editing that lets you concentrate on writing and not designing. This makes it a great choice for magazines, blogs and portfolio websites.