How To Install Wagtail on CentOS 7

Install Wagtail on CentOS 7

In this tutorial we will show you how to install Wagtail on your CentOS 7 server. For those of you who didn’t know, For those of you who didn’t know, Wagtail is a free and open source Content Management System written in Python and constructed on Django. It is easy, fast, beautiful and provides a fast, appealing interface for both editors. Wagtail is a flexible Django content management program focused on flexibility and consumer expertise.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root accge of Linount, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Wagtail CMS on a CentOS 7 server.

Install Wagtail on CentOS 7

Step 1. First let’s start by ensuring your system is up-to-date.

Step 2. Installing Required Packages.

Install necessary packages:

Step 3. Create a new system user.

Before installing Wagtail, you will need to create a new system user for Wagtail:

Step 4. Installing Wagtail.

Next, install Wagtail with the pip command as below:

Step 5. Create a python virtual environment and your Wagtail project.

Once Wagtail is installed, you will need to create a python virtual environment and your Wagtail project:

Create a new Wagtail project:

Create a new virtualenv using the following command:

Switch to the new virtualenv:

Next, install all the required dependencies by running the pip command:

Next, create a new SQLite database:

Step 6. Installing and configure Nginx and uWSGI.

Add the official Nging repository first:

Once Nginx repository is installed, install Nginx with the following command:

Next, create a new Nginx vhost:

Next, you will need to install uWSGI to your server:

Create uwsgi configuration file for Wagtail:

Add the following lines:

Next, create a new service file for Wagtail:

Add the following code lines:

Start uWSGI service and enable it to start on boot with the following command:

Finally, start Nginx service and enable it to start on boot time with the following command:

Step 6. Wagtail CMS.

Wagtail CMS will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://yourdomain.com/ or http://server-ip and complete the required the steps to finish the installation.

Congratulation’s! You have successfully installed Wagtail. Thanks for using this tutorial for installing Wagtail CMS on CentOS 7 systems. For additional help or useful information, we recommend you to check the official Wagtail CMS web site.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get a best deal!