Title: Browser downloading index.php
Last modified: August 22, 2016

---

# Browser downloading index.php

 *  [Netsoft24](https://wordpress.org/support/users/netsoft24/)
 * (@netsoft24)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/browser-downloading-indexphp/)
 * 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](https://wordpress.org/support/users/netsoft24/)
 * (@netsoft24)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/browser-downloading-indexphp/#post-5426876)
 * 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](https://wordpress.org/support/users/netsoft24/)
 * (@netsoft24)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/browser-downloading-indexphp/#post-5426877)
 * 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.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 1 participant
 * Last reply from: [Netsoft24](https://wordpress.org/support/users/netsoft24/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/browser-downloading-indexphp/#post-5426877)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
