Page 1 of 1

Admin page : can't login

Posted: Thu Dec 15, 2011 4:15 pm
by hanslammerts
Hi,

I'm having a strange issue here that I can't find the solution to in this forum, really.
The problem is that when I want to login on the Admin page, I do get the page itself, but after entering the credentials I'm simply being redirected to the login page again. No errors, not even when I activate debug in config.php. Nothing in error or accesslog, nor in php.log either.
I tried resetting the password of the admin user to admin using the procedure described somewhere in this forum, but that did not solve my problem.
Of course cookies, javascript and popup settings are OK, since I am able to admin my site running at my provider with the same browser.

What I did was the following:
I have a CMSMS site running with my provider. Everything works fine there, but this is a live site, and I wanted to have a develop environment, so I ftp'ed all files in the cmsms directory of the working site to /var/www/cmsms on my Linux server. After this I made a dump of the mysql cmsms database running at my provider, created a new database in mysql on the Linux server at home, and imported the dumped mysql data.
I then had to modify config.php so the urls and paths reflected the new environment.
After this the site was almost OK. I was missing all images. Turned out to be a .htaccess file in /uploads. I renamed this .htaccess file to htaccess.
Now the site is completely browsable on my Linux server at home. Everything seems to work perfectly. Except logging in as administrator to be able to do the developing...... :'(

Does this ring a bell with someone ?

Btw, I'm running Ubuntu 10.04, Apache 2.2.14, PHP 5.3.2 and CMSMS 1.9.4.2.

I hope someone can help me out.
Thanks anyway.

Hans

Re: Admin page : can't login

Posted: Thu Dec 15, 2011 4:41 pm
by calguy1000
CMSMS 1.9.4.2 is no longer supported.

Re: Admin page : can't login

Posted: Fri Dec 16, 2011 12:26 am
by hanslammerts
OK, fair enough.

I just upgraded to the latest version 1.10.2 with schema 35. As far as I could see, there were no errors, but I still have exactly the same problem....

How can I see where things are going wrong ? After filling in the credentials on the login page and hitting submit, no errors or warnings are shown. I just come back to the login page again...
Also, the forgot your password procedure seems to do nothing as well.

Please, what am I doing wrong ?

Hans

Re: Admin page : can't login

Posted: Fri Dec 16, 2011 3:02 pm
by calguy1000
if you are not getting any errors on the login screen then you are probably experiencing a redirection BACK to the login screen even though the login itself is working.

Try clicking the 'back' button on the browser.

If that is the case, then I would suggest that you check your .htaccess file for anything that doesn't correlate with your config.php. I have seen lots of this type of problem.

Re: Admin page : can't login

Posted: Sat Dec 17, 2011 2:42 pm
by hanslammerts
Hi calguy1000,

Thanks for taking the time to read and answer my questions.

Hitting the back button just returns me to my browsers' homepage.
It gets a bit stranger (for me..)
I decided to do a clean install of the latest stable version of CMSMS om my box, without importing any old data from my website.
Just to be sure that there are no strange things in the website data or database. I'm faced with the exact same problem, so I'm beginning to question my PHP installation. The installation procedure, however, does not give me any errors. Everything is green.

On my entire machine I have 6 .htaccess files:

563 Jan 27 2011 /usr/share/zarafa-webaccess/.htaccess
104 Nov 21 17:53 /var/www/cmsms/tmp/.htaccess
412 Nov 5 17:35 /var/www/cmsms/doc/.htaccess
104 Nov 21 17:53 /var/www/cmsms/lib/.htaccess
407 Nov 5 17:35 /var/www/cmsms/plugins/.htaccess
104 Nov 21 17:53 /var/www/cmsms/uploads/.htaccess

As you can see, numbers 2,4 and 6 are equal, and provided during the CMSMS installation.
The first one belongs to an email collaboration package, and should not interfere with CMSMS.
Number 3 and 5 are also provided with the install of CMSMS.

Am I having a problem with one of these .htaccess files, or should I be looking into the installation of PHP more ?

Thanks,

Hans