How to setup Ubuntu 18.04.3 LTS, DJANGO, MySQL, NGINX stack hosting server?

Posted November 3, 2019 4.6k views
DigitalOcean Accounts

Hello support, could you help me providing the related document to setup a hosting server on Digital Ocean Droplet? Here is the stack I need to run to host a dynamic and e-commerce website.

  1. Ubuntu 18.04.3 LTS
  3. MySQL
  4. NGINX
  5. Any other required software to get a hosting server up and running?

Does Digital Ocean provide a Control panel to install and setup the above applications in a simple way?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Hi @bengaltiger,

There isn’t a particular tutorial that features all of it however, there are 2 possibilities for you to configure this.

  • There is a Django on the go deployment droplet. This droplet automatically comes with the following

    Django version 1.11.11
    Nginx version 1.14.0
    Certbot version 0.23.0
    Gunicorn version 19.7.1
    PostgresSQL version 10
    Postfix version 3.3.0

In this case, MySQL is Replaced by PostgresSQL however essentially it’s pretty much the same. I would recommend this option, as everything comes out of the box with one click.

  • If you however wish to configure your setup just the way you like it, you’ll need to follow 2 tutorials at least. The good thing is, there are available tutorials just for this at DigitalOcean.

    The articles are as follows:
    Install Nginx on Ubuntu - HERE
    Install MySQL on Ubuntu - HERE
    Install Django on Ubuntu - HERE


by Etel Sverdlov
This tutorial explains how to install Python, how to create a virtual env, and how to install Django using Pip. These steps work on both CentOS and Ubuntu systems.Django is a free, open-source program that streamlines Python programming to help developers create “clean, pragmatic design”

Hello KDSys,

Thank you very much for your answer. I liked the first option but I do have a couple of more questions.

  1. If I use pre-built droplet for all the stack, each stack is permitted for upgrades in future and still compatible with each other though some of them could have updated releases?

  2. If I choose to use pre-built droplet, will I be able to move my dynamic and production site files to a different hosting server when I need to?

  3. Is the pre-built droplet completely compatible for production sites?