admin login failed with debug info

Help
2005-01-29
2012-10-11
  • Dean Hiller
    Dean Hiller
    2005-01-29

    I set the login/passwd in admin.php

    // set these to your preferences. For heaven's sake
    // pick a good password!
    $wikiadmin = "xxx";
    $adminpasswd = "xxx";

    but I still get login denied, so I added some debug info....
    // from the manual, Chapter 16
    if (($PHP_AUTH_USER != $wikiadmin ) ||
    ($PHP_AUTH_PW != $adminpasswd)) {
    Header("WWW-Authenticate: Basic realm=\"PhpWiki\"");
    Header("HTTP/1.0 401 Unauthorized");
    echo gettext ("You entered an invalid login or password.xxx=$PHP_AUTH_USER
    admin=$wikiadmin us=$PHP_AUTH_PW");
    exit;
    }

    I find out PHP_AUTH_PW is "" and so is PHP_AUTH_USER.

    I have no idea what is going on.
    thanks,
    dean

     
    • Reini Urban
      Reini Urban
      2005-01-29

      You need to set register_globals = on
      or use the latest 1.2.x release.

      Otherwise the $PHP_ vars will not be set.

       
      • Rpnvglkc
        Rpnvglkc
        2007-04-05

        I have the latest version 1.2.10 and I have the same issue...

         
      • Rpnvglkc
        Rpnvglkc
        2007-04-05

        I have the latest version 1.2.10 and I have the same issue...maybe they have come out with another version in the last 10 minutes or couple days since i have un-installed and re-installed again again and again.....any suggestions on this..i know i have posted the same issue on another thread