troubleshooting Question

Installing Wordpress on Windows/IIS, error when accessing wp-admin/index.php

Avatar of Jayrw
Jayrw asked on
WordPress
4 Comments1 Solution1147 ViewsLast Modified:
Hello, I am trying to add a Wordpress blog to an existing site.  I have the MySQL database set up and loaded, but when I tried to access wordpress/index.php, I got the error

Fatal error: require_once() [function.require]: Failed opening required './wp-blog-header.php'

I went into wordpress/index.php, and changed the reference from './wp-blog-header.php' to 'wp-blog-header.php', and that solved that problem.

But I get the same kind of error when I try to access wordpress/wp-admin/index.php

Fatal error: require_once() [function.require]: Failed opening required '../wp-load.php' (include_path='.;c:\PHP5') in D:\Inetpub\xxxx\wordpress\wp-admin\admin.php on line 20

I looked at the code for admin.php, and I the relative file reference looks OK to me.

if ( defined('ABSPATH') )
require_once(ABSPATH . 'wp-load.php');
else
require_once('../wp-load.php');

If I'm in wordpress/wp-admin/admin.php, I think that the reference of ../wp-load.php should point to wordpress/wp-load.php, which is a valid non-zero-byte file. Any ideas?

It feels like it might be a Windows vs. Linux thing, but I don't know enough to try different things out.

Thanks!
ASKER CERTIFIED SOLUTION
jayarjo

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros