• I’m trying to install WordPress on my laptop running Ubuntu 16.04
    I have installed LAMP but when I try to access mt IP I get the following message:

    <?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__ ) . ‘var/www/html/wordepress/wp-blog-header.php’ );
    ?>

Viewing 1 replies (of 1 total)
  • Dion

    (@diondesigns)

    You do not have a PHP handler defined in the Apache configuration, or one is incorrectly defined.

    And if the above is the contents of your WordPress index.php file, then you have another problem. This line:

    require( dirname( __FILE__ ) . 'var/www/html/wordepress/wp-blog-header.php' );

    is incorrect. It should be:

    require( dirname( __FILE__ ) . '/wp-blog-header.php' );
Viewing 1 replies (of 1 total)
  • The topic ‘Installation error in Ubuntu’ is closed to new replies.