When I create a web server it was working ok but now when I go to my site this shows instead of the website

 * 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' );
  • 2
    Have you installed php and the need php modules? – George Udosen Mar 17 '17 at 16:31
  • Have you installed php and the needed php modules? – George Udosen Mar 19 '17 at 16:58

You are seeing the text of your index.php rather than running it because apache is not running. Try

sudo systemctl restart apache2.service

More documentation on running apache can be found here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.