Can't log in after installation

Having trouble installing serendipity?
Post Reply
sfinsf2011
Regular
Posts: 6
Joined: Sun Aug 21, 2011 10:06 pm

Can't log in after installation

Post by sfinsf2011 »

Installed newest version of Serendipity (1.5.5) and can't log in to admin.

I've been through this forum and looked over the issues...
Yes I have deleted the config_local.inc file and started over. After the second attempt, looked at the user/pass combo in that file and it is identical to what I am entering. Also checked my author info in the DB - it is also the same.

Can anyone tell me what's going on and how to fix it?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Can't log in after installation

Post by Timbalu »

You are aware, your Database user/pass is not == Serendipity admin user/pass, are you?
Is this a fresh install or an upgrade?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
sfinsf2011
Regular
Posts: 6
Joined: Sun Aug 21, 2011 10:06 pm

Re: Can't log in after installation

Post by sfinsf2011 »

I am aware of this, one is for PHP query requesting DB permissions, the other is for sy9 admin.
But if I have the same user/pass combos for both, I would think it's a moot point.

This was an install to upgrade to the latest version - 1.5.5. I upgraded this way: collected the old website files into a directory on my server, downloaded the new Serendipity archive, unzipped and uploaded. Then ran the script. Got no errors in the advanced installation process.

When I couldn't log in I downloaded the config file and saw that my user/pass was the same as I was using to attempt to log in. Also deleted the old config_local.inc file that was hiding in the directory holding the old files. Cleared browser cache, tried both Safari and FF (Mac OS) but no luck.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Can't log in after installation

Post by garvinhicking »

Hi!

From which version did you upgrade from? To me it sounds as if maybe you re-executed an installation instead of enforcing an upgrade.

The proper upgrade path is outlined in the FAQ on www.s9y.org - you should *never* delete the config_local file, as it contains the information about which version is currently installed. This is required to perform database upgrades! If you instead reinstall, s9y preservers the current DB structure and then you are running an out-of-sync database.

The proper thing for you to do is now to edit your serendipity_config_local.inc.php file and set the versionInstalled string to the version you had installed previously; then access your blog, and you should see an information screen that informs you about the DB pgrades that are performed.

Most importantly, in s9y 1.5 the authentication has been improved to use salted SHA1 hashes instead of md5, which also resulted in a new coulmn (hashtype) in the serendipity_authors DB table, and a new hashing of your password when you successfully log in.

HTH,

Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sfinsf2011
Regular
Posts: 6
Joined: Sun Aug 21, 2011 10:06 pm

Re: Can't log in after installation

Post by sfinsf2011 »

Thanks for the info Garvin. I will try and restore the files and DB and start over.
sfinsf2011
Regular
Posts: 6
Joined: Sun Aug 21, 2011 10:06 pm

Re: Can't log in after installation

Post by sfinsf2011 »

Garvin: I restored my old site, and then followed directions to upgrade. Didn't get any error messages, everything checked out ok. Ran the brief sql script as instructed in the upgrade and got a message that everything was fine.

Once completed I tried to log in - still got rejected. Downloaded the new the serendipity_config_local.inc file, it contains exactly the same user/pass I am trying to use to log in. Also looked at the DB for serendipity_authors and it too contains the same user/pass.

Really confused now. I have access through FTP and phpmyadmin to update anything I need to change or fix, but everything looks correct. So where's the missing link? If what I am seeing in both the DB and config file is exactly my user/pass, what's screwing things up?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Can't log in after installation

Post by Timbalu »

If its not the same user/pass combination which is making trouble here, there should be left some not well upgrading in proceeding from md5 to sha, as Garvin said. But this normally throws an error. Have a look into your webservers log files. If you are relative sure this could be your issue, search for "fixlogin" in this forum, to get a repair script.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
sfinsf2011
Regular
Posts: 6
Joined: Sun Aug 21, 2011 10:06 pm

Re: Can't log in after installation

Post by sfinsf2011 »

There seems to be some encryption problems. I ran the "test.php" and it's giving me some long encrypted string as the expected password.

After my first installation problems, I did change my database password in "serendipity_authors" - changed it from one that was encrypted to a readable password. So that could be the problem. I just don't know how or why it keeps asking me for the encrypted pw when the DB row now has an unencrypted string.

Right now I just changed the pw in the DB to the encrypted string that was returned by test.php, but still no login. Probably it's not that simple? I admit I know little about encryption.
sfinsf2011
Regular
Posts: 6
Joined: Sun Aug 21, 2011 10:06 pm

Re: Can't log in after installation

Post by sfinsf2011 »

OK checked my DB and set the author PW field to encrypt - now it works. Not sure how it got messed up in the first place but I can log in now.

Will now carry on with customizing 1.5.5. And will definitely look for a PW reset module for sy9, hope one is available... :)
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Can't log in after installation

Post by Timbalu »

Yes, please never change this until you really know what you are doing. Serendipity is deeply based to use pw encryption SHA1, placed as encryped string to the database.
You can easily change your password in the Serendipity Admin panel.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Post Reply