I haven't run across any topics related to an issue I am having.

I got drupal 5 installed with no problems. I created my first account (admin) but when I tried to login, i get re-directed right back to the login page and when I click on "administer" or "create content", I get a "not authorized" message.

My initial thought was that i typed in the wrong password. However, when I type in a wrong password, I get a message, "incorrect username/password". So, i am using the right username and password; there is just something else going on.

By the way, I have reset my password in the database and generated the MD5 sum of it. Still no luck.

Thanks for the help

Comments

jhenline’s picture

looks like some information is available here: http://drupal.org/node/6696

lots of things to try. i'll report back when/if I find a solid fix.

ben soo’s picture

Once i unpacked Drupal 5.0, set up the database, made sure sites/default/settings.php is set up properly, run /install.php, and input the username and email address for user 1, i get sent to user/1/edit and the page says;

Access denied
You are not authorized to access this page.

i take the account info that's been mailed to me and use those to log in and same thing happens.

4.7 runs merrily on the same machine in a separate installation.

i seem to be following instructions; can't see if i'm doing anything wrong. Can anyone help? i've looked over all the threads here about problem installs and haven't found anything that helped.

i'm afraid to upgrade the 4.7 installation now.. unless of course upgrading is less buggy than a fresh install as i've tried.

We are in the process of migrating to Drupal from an old site we'd accumulated over time out of bits, and Drupal 5.0 came out as we're doing this so much of our work so far is 4.7, but obv. we'd like to move to 5.0 before we go live.

b

ben soo’s picture

i found this:

http://drupal.org/node/102114

so i checked, and indeed we are running PHP 5.2. Dunno if that's got anything to do with it.

b

ben soo’s picture

As suggested here:

http://drupal.org/node/113282

commenting out this section in sites/default/settings.php worked:

/**
* We try to set the correct cookie domain. If you are experiencing problems
* try commenting out the code below or specifying the cookie domain by hand.
*/
if (isset($_SERVER['HTTP_HOST'])) {
  $domain = '.'. preg_replace('`^www.`', '', $_SERVER['HTTP_HOST']);
  // Per RFC 2109, cookie domains must contain at least one dot other than the
  // first. For hosts such as 'localhost', we don't set a cookie domain.
  if (count(explode('.', $domain)) > 2) {
    ini_set('session.cookie_domain', $domain);
  }
}

Thanks again.

b

ivanegg’s picture

Hey, ben soo

Thanks a lot ! This one Finally Works for me !

MaraudeR’s picture

My drupal installation at home is called test.librexpresion.org because I use it for testing, so that regexp with the www suffix just dont work, I've changed '^www.`' by '^test.`' and it works fine as expected.