Title: Getting Index.php code on my screen
Last modified: July 29, 2019

---

# Getting Index.php code on my screen

 *  Resolved [karthickr](https://wordpress.org/support/users/karthickr/)
 * (@karthickr)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/getting-index-php-code-on-my-screen/)
 * Hello,
 * As I migrated the WordPress site from Digital Ocean to Azure, once moved the 
   files and database into the new azure server, then configured the root location
   in the apache config file. Then, check the site link, but showing only the index.
   php code like below.
 *     ```
       <?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 have installed the PHP v7.2 in my server. Can you please solve my bug or share
   your ideas here.
 * Thanks,
    Karthick R

Viewing 1 replies (of 1 total)

 *  [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * (@binarywc)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/getting-index-php-code-on-my-screen/#post-11777670)
 * Personally, I am not too familiar with Azure but I do not know that there is 
   extra configurations you need to implement in order for Azure to recognize php
   is installed once these extra configurations are in place the site should load
   fine.
 * Hope this gets you headed in the right direction. Once you find a solution please
   tag the thread as resolved.

Viewing 1 replies (of 1 total)

The topic ‘Getting Index.php code on my screen’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Davood Denavi](https://wordpress.org/support/users/binarywc/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/getting-index-php-code-on-my-screen/#post-11777670)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
