• Resolved moppy6686

    (@moppy6686)


    I got through the WordPress installation process using this guide and now I just need to complete the installation through the web interface.

    But when I go to my IP address the following text appears instead:

    <?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’ );

    I don’t know what I did wrong or if there is a way to fix it. Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Clayton James

    (@claytonjames)

    That usually indicates that PHP is not running/working/configured properly.

    Thread Starter moppy6686

    (@moppy6686)

    Is there a way to figure out what is wrong with the PHP? Is there a way to reinstall it?

    Thanks!

    Clayton James

    (@claytonjames)

    If you’re on a digital ocean droplet, you may need to consult their docs or contact their support group for assistance. The number of variables involved just aren’t conducive to a quick/simple answer here in the forums. It could be any number of issues.

    Before you do anything else, open a console and run sudo service apache2 restart and then try running the WordPress installation routine again. If PHP still displays as text in your browser:

    ..Assuming you chose to run PHP as an Apache module, go back and review both the Apache and the PHP installation instructions and commands just to be sure you’ve met all the dependencies. It won’t hurt to re-run the installation commands, just pay attention to the console output and see if it picks up anything you may have missed. If it does, it will probably ask for confirmation before it will install anything that’s been overlooked.

    Sarathlal N

    (@sarathlal)

    If you are using PHP7,can you try the below command?

    sudo apt-get install libapache2-mod-php7.0
    sudo service apache2 restart
    Thread Starter moppy6686

    (@moppy6686)

    If you are using PHP7,can you try the below command?

    sudo apt-get install libapache2-mod-php7.0
    sudo service apache2 restart

    THANK YOU!! That worked ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Trying to Complete the Installation Through the Web Interface’ is closed to new replies.