I have finally found the solution to the problem of installing WordPress in laragon and I want to share it with all of you in case someone is in the same situation.

Yes, that problem that arises when launching the WordPress installation from “Quick app” skip an error message and get caught.

Decide to install WordPress in Laragon after watching a video by Jose Pascual, if you don’t know him calm @ at the end of the post I will leave you the video where he explains very well (better than me) the whole process of installing Laragon (although this error does not happen to him).

I recommend that you take a look at that video and its channel in general, I am convinced that you will like it.

But first let’s go to the beginning.

What Laragon is and what it is used for

Laragon is a development suite in php and among many other features allows us to have WordPress installed in a local environment.

It is very similar to XAMPP, but it makes things much easier for us and saves WordPress installation in local mode a lot of time and resources.

If you are wondering what it is to have WordPress in local mode, I explain it to you.

Thus, We can install WordPress on our own computer without having to have a domain and a contracted hosting.

We will have a development environment at cost 0 while we work on our project locally (on our computer).

In other words, we make sure that nothing is indexed in Google while we are in the development phase of our website.

Laragon installation

  1. We are going to laragon and in the downloads tab we download the version that interests us, although I recommend the most complete of all.

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

2. We execute the installation file that has been downloaded to us.

  1. Let’s go to settings (little wheel at the top right)

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

  1. In the General tab we activate the box Automatically create virtual hosts and here we can choose the extension that we want for our project.

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

  1. In the Services & Ports tab we activate the box enabled of the SSL field (no other parameter need be changed).

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

This way you can falsify an SSL certificate and simulate that our website has it, this is useful because certain WordPress plugins can give us problems if they do not recognize that our site has the SSL certificate.

  1. We close the preferences window and now we give the button start all for what laragon starts and we will see that both Apache and MySQL have been launched.

Install WordPress in Laragon.

Now we are ready to install WordPress in laragon in such a simple way as the following

  1. We click on menu – quick website creation – WordPress

Here two things can happen.

Once everything goes smoothly, it asks you for the name of the project and everything is installed without any problem.

Two that when installing WordPress in laragon I throw you an error message and the installation stops

If you are one of the first, go ahead, I think you will have no problem continuing with the installation of WordPress because it is super simple, you just have to follow the steps that appear.

If you are one of the seconds, do not despair because after hitting me almost a whole day with the problem, I have found the solution.

How to fix WordPress installation problem in laragon

Important: Stop Laragon

The first thing you have to do is go to the folder where you have installed laragon, and inside www delete the folder that has been created for you with the name of the project.

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

Now go to the folder (inside laragon too) data – mysql and delete the one that has been generated with the name of your project

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

Choose menu – Laragon – laragon.ini (open the latter with the notepad)

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

In this file you have to add what I mark in the photo, with those values ​​and in that place, this is very important for it to work for you.

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

We save (be sure to do it for the change to take effect) and exit.

And that’s it (or almost, another setback may appear, which will also explain how to solve it if it happens to you).

We go back to the laragon screen and start it.

We’re going to menu – Quick website creation – WordPress and you will see how now the installation continues and finally lets us install WordPress in laragon.

But hope that the joy will surely not last you long, or at least, that has happened to me.

When installation is complete and click on the button visit website You may get an error message on the browser screen that the connection to the database could not be established.

Do not despair that the solution is very easy.

Unable to connect to the database (Solution)

Go back to the folder where you have installed Laragon and follow this path Laragon – www – (your project) and run the wp-config.php file to edit it

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

And the only thing you have to modify in this file is the following line

, How to install WordPress in Laragon (SOLUTION to the installation problem from Quick app, Apkadd.com, Apkadd.com

You have to delete what appears between the quotes and leave it empty, as in the photo

Guards and locks

And now yes, we are done.

You stop laragon and you start it again.

You go to the browser window and type {your project}. {tuextension}

voila !!!!

You already see the WordPress settings.

We choose language, fill in the usual fields of user, password, email, etc.

Be sure to choose the option to prevent your site from being indexed, remember that we are local and it will not be indexed anywhere, but it is better to prevent than to cure, lest it leave some trace or some strange configuration and give us problems time to migrate when we have finished the entire development phase.

And now we can get to work on our project.

FINALLY we have WordPress in local environment installed, configured and working.

LEAVE A REPLY

Please enter your comment!
Please enter your name here