Когда я создаю веб-сервер, он работал хорошо, но теперь когда я перехожу к своему сайту, это показывает вместо веб-сайта
<?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( dirname( __FILE__ ) . '/wp-blog-header.php' );
Вы видите текст своего index.php вместо того, чтобы выполнить его, потому что апач не работает. Попробуйте
sudo systemctl restart apache2.service
[еще 113], документация относительно рабочего апача может быть найдена здесь .