How to do first system verification on a server [closed]

1

When installing WordPress for the first time on the localhost / server it presents forms and a step-by-step registration of a first user admin.

I would like to understand how I do a verification of these and how the system understands that it is the first installation.

I'm developing a mini-blog for the portfolio and would like to do exactly what Wordpress does when running for the first time.

    
asked by anonymous 24.07.2017 / 03:47

1 answer

1

The fundamental step WordPress uses to understand whether or not it is already installed is to look for the wp-config.php file, this happens in the file wp-load.php , around line 34 .

If it does not find this file in the allowed places (in the root of the site, a folder above the root), the system loads some functions and calls the file wp-admin/setup-config.php .

At setup-config.php it checks whether the wp-config-sample.php file exists, and from there, displays the form you see, starting with the screen to select a language.

    
24.07.2017 / 12:38