Laragon Local Server is such a robust tool for locally hosting your website. It is fast and powerful, providing you with a serene development environment for building applications with PHP, Node.js, Python, Java, Go and Ruby among others.
When it comes to WordPress CMS, Laragon makes it super easy to install it alongside the database for the website.
The process is seamless as it allows you to install WordPress with one click as seen in the image below:
If the above process does not work for you, then you have to do it manually. The procedure below outlines how to achieve this:
(I assume you have already installed Laragon)
Start Apache and MySQL
Launch Laragon and click on “Start All” to activate Apache Web Server and MySQL database. (yes, WordPress is database-driven.)
Download and Run WordPress
Extract the zip folder. Open the extracted folder and copy the folder named “wordpress.”
Open your Laragon Control Panel and open the root directory of your website by clicking on “root.”
The folder will be opened with “index.php” file located in the folder. Paste the copied “wordpress” folder there.
Rename it with the name you want to to use for the website. I renamed mine as “ben” and this will be the name of my local website, when I enter “localhost/ben” into the web browser.
Enter the website address (in this case, localhost/ben) into the address bar to proceed with the WordPress set-up. You should be redirected to the WordPress Configuration (config) file set up.
Select your preferred language and hit “Continue” to proceed.
Click on “Let’s go!” to move to the next screen.
Create a Database
To supply the required database details, we need to create one. To do this, open the Laragon control panel and click on the “Menu” or right-click on an empty space on the Laragon control Panel.
Hover over “MySQL” and click on “Create database.”
Enter a preferred name for the database and click on “OK.” (Note: The database name does not necessarily have to be the same as the website name.)
Let’s get back to our WordPress set-up page to enter the database details:
- Database name: enter the name of the database created in the previous step.
- Username: root
- Password: leave blank
- Database Host: leave the default value “localhost”
- Table Prefix: leave default value
After clicking on Submit, you should see the success message below. Click on “Run the Installation.”
Fill the fields displayed with respective details. You would use the Username and Password to login into your WordPress website’s dashboard. Proceed to “Install WordPress.”
You should see the success message and the login button below.
Now, login by entering the username and password provided in the previous step. You would now be taken to your dashboard, which serves as a control panel for your website.
Note: your WordPress dashboard can always be accessed by logging in through any of these URLs:
Your website can be accessed at localhost/websitename; and example is localhost/ben in this tutorial.
Enter this URL to take a look at your website. Congratulations! You just created a local WordPress website.
Do you have any comments regarding How to manually install WordPress with Laragon? Drop them in the comments section below.