Install Mezzanine CMS on a Debian VPS

In this blog post we will show you how to install the Mezzanine CMS on a Debian 8 VPS. Mezzanine is open source content management system built using the Django framework. Some of the main features include: Blog engine, Shopping cart module, User accounts and profiles, In-line page editing ..etc.

Install Mezzanine and create a new project

Open the file local_settings.py and edit the database configuration values:

(mezzanine)$ nano local_settings.py

DATABASES = {
"default": {
# Ends with "postgresql_psycopg2", "mysql", "sqlite3" or "oracle".
"ENGINE": "django.db.backends.mysql",
# DB name or path to database file if using sqlite3.
"NAME": "mezzanine",
# Not used with sqlite3.
"USER": "mezzanineuser",
# Not used with sqlite3.
"PASSWORD": "mezzanineuser_passwd",
# Set to empty string for localhost. Not used with sqlite3.
"HOST": "",
# Set to empty string for default. Not used with sqlite3.
"PORT": "",
}
}

Initialize the database:

(mezzanine)$ python manage.py createdb

The script will ask you to create a superuser and a few other questions.

When the initialization is finished, run the following command to start the Mezzanine:

(mezzanine)$ python manage.py runserver 0.0.0.0:8000

If you see the following message, it means you’ve successfully installed Mezzanine.

Validating models...
0 errors found
July 08, 2015 - 13:45:18
Django version 1.6.11, using se.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.

That’s it. You have successfully installed Mezzanine. The application should be available at http://your_server_ip:8000/ or http://localhost:8000/

For more info about the Mezzanine CMS please go to: http://mezzanine.jupo.org/

Of course you don’t have to do any of this if you use one of our Linux VPS Hosting services, in which case you can simply ask our expert Linux admins to install this for you. They are available 24×7 and will take care of your request immediately.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.