Iain Posted September 26, 2011 Share Posted September 26, 2011 So the site we're working on has been moved to a nearly-live server. After a battle with getting the htaccess file to be recognised it's all working, except the logins. It's recognising the usernames and passwords as being correct (it doesn't bring up an error unless we type something in wrong) but it just redirects to the login page instead of taking us into the list of pages... Any ideas? Link to comment Share on other sites More sharing options...
Soma Posted September 26, 2011 Share Posted September 26, 2011 there was the same problem already, may have a search in the forums... ;D http://processwire.com/talk/index.php/topic,33.0.html Link to comment Share on other sites More sharing options...
Frank Vèssia Posted September 26, 2011 Share Posted September 26, 2011 try to empty the sessions folder... Link to comment Share on other sites More sharing options...
apeisa Posted September 26, 2011 Share Posted September 26, 2011 there was the same problem already, may have a search in the forums... ;D http://processwire.com/talk/index.php/topic,33.0.html Yep, I had the same problem and it starts from here: http://processwire.com/talk/index.php/topic,33.msg2820.html#msg2820 In my case it was different .htaccess file that caused problems. It seems that you have had little fight with .htaccess, but it might be that there is still some problems... Link to comment Share on other sites More sharing options...
Iain Posted September 26, 2011 Author Share Posted September 26, 2011 Right. I installed a new copy of PW, imported the database and got loads of errors I didn't understand. Realised I'd copied PW2.0 data into a PW2.1 installation, so installed PW2.0 afresh and imported the data and the old files (except config.php, .htaccess and the wire folder. It worked mostly, but wouldn't log me in. Said the username and password was wrong. There was much swearing and tantrum throwing, until I followed Sevarf's idea which sorted it. If the deadline for this going live wasn't tomorrow, and if they weren't still throwing stuff at us that we asked for 3 months ago, this might not be so stressful. Thanks for the help though everyone, I don't know if it was the htaccess file that broke it, I've tried too many things to know for sure! Link to comment Share on other sites More sharing options...
ryan Posted September 26, 2011 Share Posted September 26, 2011 You mentioned that you didn't include the /site/config.php from your old installation in your new installation. Your logins won't work if you do this because /site/config.php includes a line at the bottom that looks like this: $config->userAuthSalt = '...'; That is the key to your passwords. If someone ever gets access to your database or a copy of a dump file, they shouldn't be able to decrypt the passwords if they don't have that key. Likewise, a PW install won't be able to work with passwords in a system without the original key that created them. So if you installed a fresh copy of PW 2.0, you'll either want to use the old /site/config.php …OR… copy the last line out of the bottom (that looks like the above) and paste it into your new /site/config.php (replacing the one that's already there). These keys are generated uniquely for each site. Btw, I do have a PW20 to PW21 upgrade process if you want to beta test it this week. I did just upgrade the skyscrapers demo site to PW21 and so far so good. Though note that it does not attempt to copy over users, roles or permissions at present… these things are too different between PW20 and PW21. What it does is create a site profile of your old site. Then you install a fresh copy of PW21 and use the profile it created rather than the one that PW comes with. Link to comment Share on other sites More sharing options...
Iain Posted September 26, 2011 Author Share Posted September 26, 2011 Ah yeah, I did something with that Salt line. Might've copied it. Can't remember. This site should be live tonight all being well, so I'd be interested in testing the upgrade routine on our dev server if you need someone to test it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now