WordPress error: Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in C:\HostingSpaces\xyz\xyz.com\wwwroot\index.php on line 17

You have installed Wordpress and are seeing the following error:

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in C:\HostingSpaces\xyz\xyz.com\wwwroot\index.php on line 17

Warning: require(./wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in C:\HostingSpaces\xyz\xyz.com\wwwroot\index.php on line 17

This is most likely because you have installed wordpress into the wwwroot instead of a sub-directory.  Wordpress be default assumes it will be installed in a sub-directory.

To solve this problem, modify the index.php file as follows only if your WordPress installation is running in your root directory. You only need to change the following line:

require('./wp-blog-header.php');

To this:

require('wp-blog-header.php');

If your WordPress installation is not running in the root directory, then you just need to insert the path to your header file.