• Good Day,

    Recently I perform a complete web-server migration via Cpanel backup wizards (both new and old server are using Cpanel). After importing and making sure the database and username are imported as well, I edited my local host file to make sure everything is running properly before pointing the domain to the new server.

    However, upon visiting my website, it automatically downloads the index.php.

    I’ve been wondering around Google but to no avail. Can you help me out here?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Netsoft24

    (@netsoft24)

    This is what my index.php looks like: (It downloads this).

    <?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' );
    Thread Starter Netsoft24

    (@netsoft24)

    This is what .htaccess looks like:

    # Use PHP54 as default
    AddHandler application/x-httpd-php54 .php
    <IfModule mod_suphp.c>
        suPHP_ConfigPath /opt/php54/lib
    </IfModule>
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Browser downloading index.php’ is closed to new replies.