WordPress.org

Ready to get started?Download WordPress

Forums

failed opening req wp-db.php | Fatal Error on wp-i (5 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    I've tried installing according to the 5 minute install guide, but my university server gives an error, could this be a mysql problem, or something that I can solve myself (no admin rights for students of course)?
    Fatal error: Failed opening required '/usr/local/apache/htdocs/~sander17/blog//b2-include/wp-db.php' (include_path='.:/usr/freeware/lib32/php') in //b2config.php on line 338
    Any help would be welcome,
    Regards,
    Sander van Dragt

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    btw, you can see the phpinfo here (that might help):
    http://student-kmt.hku.nl/~sander17/info.php

  3. Alex King
    Member
    Posted 10 years ago #

    Looks like you have a trailing slash you shouldn't in your path somewhere... careful on the settings that say "no trailing slashes" - they mean it. :) (This is something we should catch when you save your prefs.)

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    There are no trailing slashes in any of the variables I've changed, I'm really sure of that. :/ WordPress miscalculates the paths at the end of the b2-config.php it seems like. or our server is not set up correctly somehow.
    "/ This should get us the relative path of WordPress and the absolute path on the server. Yipee!"
    perhaps if someone could give an example of the relative path and absolute path on their server I could change them according to my server. (in case it's that)

  5. Anonymous
    Unregistered
    Posted 10 years ago #

    WordPress incorrectly assumes that Document_root is a basis for the absolute path it seems.
    changing the following helped me solve that particular problem (now i need mysql permission hehe). Our apache configuration gets the user webspace from outside the apache folder. :)
    from:
    for ($i = 3; $i < count($url); $i++) {
    to
    for ($i = 4; $i < count($url); $i++) {
    and from:
    $abspath = getenv('DOCUMENT_ROOT') . $relpath . '/';
    to:
    $abspath = "/usr/people/sander17/public_html" . $relpath . '/';

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.