Skip to main content
How to Install WordPress and Divi on Localhost

Learn how to install WordPress and the Divi theme on localhost to create a safe and flexible development environment for your site.

Updated over 3 months ago

Creating a local host environment in the past required extensive knowledge of how to set up a Database server and an Apache/Nginx server. Luckily, those days are over.

You can create localhosts environments using any of the following applications:

  • Local by Flywheel - All platforms

  • MAMP for Windows and Mac USers

  • XAMPP for All platforms

All of those apps are using similar installation/configuration processes. However, we will focus below on setting up Local by Flywheel since it is the easiest to get started.

Setting up the local environment using Local by Flywheel

  1. Download the installation package from the official website.

  2. Fill in the Download form, choose your operating system, and fill in the form with your information.

    Download Local app

  3. Install and Run the App.

  4. Click on Create a new site button:

    Create a new site with Local

  5. In the next screen, choose Create a new site and click Continue:

    Create a new site - spte 2

  6. Give your website a name:

  7. Click Advanced options, and under Local Site Path, choose a folder on your computer where this website will be created. Then click Continue.

    Local step 3

  8. The Choose your environment screen allows you to select more advanced server settings, such as PHP and MySQL versions, and the type of the WebServer. If you are unsure what to choose, ensure that the Preferred option is selected and click Continue. Local will set up everything for you.

    However, if you want to control the PHP version and the server type, click on the Custom option.

  9. Set up your WordPress username, password, and email — these will be the login details used to access the WordPress dashboard.

  10. Click on the Add Site button.

  11. Local will download and install WordPress and will launch the server. Once that process is down, you will see a similar screen:

    New Local website

  12. Click on the WP Admin button to access the WordPress admin area.

    Access the admin area using Local by Flywheel

Install and Activate Divi on a Localhost website

Now that we have a locally hosted website, it is time to install the Divi theme.

  1. Go to the Elegant Themes website and log in to your account.

  2. Download the Divi theme to your computer.

  3. Go to WordPress Dashboard (of the freshly created local hosted website) → Appearance → Themes.

    WordPress add a new theme

  4. Click the Add New button → Upload Theme.

  5. Choose the zip file downloaded in step 2.

  6. Click on the Install Now button.

    Activate Divi theme

  7. Click on Activate.

    Activate Divi Theme
Did this answer your question?