0

I'm using appliance2014, went trough all the steps in pset7, phpmyadmin seems to be working fine, but whenever I try the link specified in the problem set, where I'm supposed to test the server after I do all the steps, it says the login page should pop-up, but all I see is blank page, just like the one on the screenshot.

If anyone has any idea what's going on, any kind of help is appreciated.

This is what I get when I try to reach any of the .php files

3
  • I get the same problem too. I have checked the permissions with ls -l and ls -ld and they are all correct but still I just get this screen. A lot of people seem to have this issue. Jan 16, 2015 at 7:38
  • same problem here! In addition, inspecting element in Chrome gives 500 Internal Server Error Jan 18, 2015 at 3:49
  • Check my new post, I hope it helps. :)
    – kappa
    Jan 18, 2015 at 15:49

1 Answer 1

0

Somehow, after some debugging I've realized the problem lies in redirecting, more precisely when you are supposed to check for authentication in your config.php file, so I've rewritten that code and it seems to work all fine for me now. If you want to give it a try on your own code replace your code with this one:

 // require authentication for all pages except /login.php, /logout.php, and /register.php
 if (!preg_match("{(?:login|logout|register)\.php$}", $_SERVER["PHP_SELF"]))
    {
    if (empty($_SESSION["id"]))
    {
        redirect("login.php");
    }
}
1
  • I tried copying and pasting this solution in place of the original code there to no effect. Did you put it in the exact place the original authentication code was? Admittedly, the code snippet might be functioning properly and I wouldn't notice because when I go directly to the login.php page, all I get is a white screen.
    – Michael F
    Jan 21, 2015 at 21:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .