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:
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
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 on your computer where this website will be created. Then click Continue.
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.Set up your WordPress username, password, and email — these will be the login details used to access 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 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.
Choose the
zip
file downloaded in step 2.Click on the Install Now button.
Click on Activate.