Creating a local host environment in the past required a good deal of knowledge about how to set up a Database server and an Apache/Nginx server. Luckily, today, those days are gone.
We can create localhosts environments using any of the following applications:
All of those apps are using similar installation/configuration processes. However, below, we will focus on setting up Local by Flywheel since it is the easiest to get started.
Setting up the local environments using Local by Flywheel
Download the installation package from the official website.
Fill in the Download form, choose your operating system, and fill in the form with your information.
Install and Run the App.
Click on Create a new site button:
In the next screen, choose Create a new site and click Continue:
Give your website a name:
Click Advanced options, and under Local Site Path, choose a folder from your computer where this website will be created and click Continue.
Choose your environment screen is where we can choose the details of your server. If you are unsure what to choose, ensure that the Preferred option is selected and click Continuer. 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.
Set up your WordPress username, password and email - those will be the login details used to login to the WordPress dashboard.
Click on the Add Site button.
Local will download and install WordPress and will launch the server. Once that process is down, you will see a similar screen:
Click on the WP Admin button to access the WordPress admin area.
Install and Activate Divi on a localhost website
Now that we have a running locally hosted website, it is time to install the Divi theme.
Go to the Elegant Themes website and log in to your account.
Download the Divi theme to your computer.
Go to WordPress Dashboard (of the freshly created local hosted website) → Appearance → Themes.
Click the Add New button → Upload Theme.
zipfile downloaded in step 2.
Click on the Install Now button.
Click on Activate.