In this tutorial we will show you how to install Mezzanine CMS on Ubuntu 18.04 LTS. For those of you who didn’t know, Mezzanine CMS is a free and open-source content management system, built using the popular Django framework. It provides an intuitive interface for managing pages, blog posts, form data, store products, along with many other types of content. Unlike other popular CMS applications, all of these functionalities are available by default, without the need to use any additional modules or add-ons.
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 account, 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 Mezzanine CMS on a Ubuntu 18.04 (Bionic Beaver) server.
Install Mezzanine CMS on Ubuntu 18.04 LTS Bionic Beaver
Step 1. First, make sure that all your system packages are up-to-date by running these following apt-get commands in the terminal.
Run the commands below to install Python and Python pip:
To verify what version of Python is installed, run the commands below:
And to verify if pip3 is installed, you can execute this:
First, install the MySQL database server with the following command:
After installing MySQL, the commands below can be used to stop, start and enable MySQL service to always start up when the server boots:
By default, MySQL is not hardened. You can secure MySQL using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:
You can now log in to your MySQL database server as the root user with this command:
To create a new database and user, run the following commands on the MySQL shell:
To install the Python Virtual Environment, run the following command:
Before we proceed, let’s create a new user for our Mezzanine installation:
To create the virtual environment for Mezzanine, run the following command:
To activate the virtual environment run the following:
To install the Mezzanine CMS onto our new virtual environment, run the following command:
To create a new Mezzanine App, run the following command:
We need to edit the settings.py file within our main project directory:
Let’s migrate the database by running the following commands:
Once the database is migrated, we can create a new administrative user with this line:
Next, open the following file to edit it:
Find the ALLOWED_HOSTS line and then add the IP address of your server and/or your domain name:
To start up and run the Mezzanine server, run the following command:
Visit the admin section by going to:
Congratulation’s! You have successfully installed Mezzanine. Thanks for using this tutorial for installing Mezzanine content management system on Ubuntu 18.04 systems. For additional help or useful information, we recommend you to check the official Mezzanine website.