P
P
pornoacter2022-04-20 20:27:15
PHP
pornoacter, 2022-04-20 20:27:15

The index.php file is loaded instead of entering the site. Why is that?

The index.php file is loaded instead of logging in to a site on local hosting. This is in the file itself

<?php
/**
 * Front to the WordPress application. This file doesn't do anything, but loads
 * wp-blog-header.php which does and tells WordPress to load the theme.
 *
 * @package WordPress
 */

/**
 * Tells WordPress to load the WordPress theme and output it.
 *
 * @var bool
 */
define( 'WP_USE_THEMES', true );

/** Loads the WordPress Environment and Template */
require __DIR__ . '/wp-blog-header.php';

Please tell me what is the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2022-04-20
@pornoacter

There is no one to transfer the script to processing and the http server simply gives it as a file. You need to configure PHP-FPM or, if using Apache, enable the appropriate module.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question