Wordpress url http://localhost:17486/ shows php code instead of webpage RRS feed

  • Question

  • User98539599 posted


    I am new to wordpress and  i followed link to install Wordpress on windows 10 Pro with Microsoft WebMatrix.

    Installation went well and when i try to open this url which shows under sites it is showing php code as below:-

     * 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' );

    Please let me know things to check if I am missing anything though I have googled a lot and not able to figure out yet.

    Tuesday, June 13, 2017 8:05 PM

All replies

  • User-460007017 posted

    Hi nehas2616,

    It seems that the IIS express recognize the .php file as text/pkain instead of a php file.

    Webmatrix use IIS express instead of IIS by default, so please check whether PHP for IIS express has been installed in web platform installer. Then hen you open the PHP site, it should detect the PHP automatically. You could also go to webmatix->open site->site tab->settings enable PHP->select the PHP version.

    You could set wordpress by following this link:


    Best Regards,

    Yuk Ding

    Wednesday, June 14, 2017 3:26 AM