Page 1 of 1

Admin not logging in after move

Posted: Wed Aug 08, 2012 2:39 pm
by hatts
I am running CMSMS 1.10.3, with Apache 2.22.14 and MySQL 5.1.63 on Linux

After successfully installing and using CMSMS on my dev subdomain, I just attempted to move the site to my live root domain.

The site displays great, and the content is intact. But I cannot log in to admin panel, I get the classic reloading of the login page that has stricken so many before me. It just reloads the page and shows empty login fields.

Here's the kicker: after trying to reinstall CMSMS without default tables or content, clicking the "log into admin panel" shortcut (seen right after the installation process) works perfectly! However, trying to log in the normal way again (domain.com/admin/) gives me the old problem.

Debug throws no warnings, but there's something of interest at the bottom, it says "no session found" and "no cookies found."

Am I missing something?

Re: Admin not logging in after move

Posted: Wed Aug 08, 2012 9:20 pm
by calguy1000
Check your .htaccess file.

Re: Admin not logging in after move

Posted: Mon Aug 13, 2012 3:05 am
by hatts
I'm not seeing an .htaccess in the root directory. Does CMSMS have a default .htaccess that should've been installed?

If I find it, what shall I check for?

Re: Admin not logging in after move

Posted: Mon Aug 13, 2012 7:27 am
by staartmees
to see a .htaccess-file you must force your FTP-client to show hidden files.

Re: Admin not logging in after move

Posted: Mon Aug 13, 2012 1:52 pm
by hatts
Hidden files are forced visible and I have no .htaccess

Is there a default example .htaccess somewhere? I couldn't find it in the docs.

If I make one from scratch, what should I make sure to include in order to have the best chance of eliminating my problem?

Re: Admin not logging in after move

Posted: Mon Aug 13, 2012 7:06 pm
by Dr.CSS
They were saying that you may have an unseen htaccess that would/might prevent you from logging in etc. if there isn't one you don't need it till you set up pretty URLs for now don't use one...

I would suggest going into the DB and making sure it has the correct users in it...

Re: Admin not logging in after move

Posted: Tue Aug 14, 2012 1:36 pm
by hatts
Righto. Well I can't access the CP with any of my 3 users.

Is there anyone available to troubleshoot this issue on a paid subcontractor basis? Client is getting antsy, otherwise I'd just trudge through it myself.

Re: Admin not logging in after move

Posted: Wed Aug 15, 2012 3:08 am
by hatts
Also of note: I can't even get it to throw a "wrong password" warning at me.

Is there a value I could look for in one of the database tables?

Re: Admin not logging in after move

Posted: Wed Aug 15, 2012 11:04 am
by fredp
hatts wrote:...it says "no session found" and "no cookies found." ...
Hi,

Have you checked that your PHP session.save_path config directive points to a writable directory? If necessary, you can check <?php phpinfo(); ?> output.

Re: Admin not logging in after move

Posted: Wed Aug 15, 2012 1:59 pm
by hatts
fredp wrote: Have you checked that your PHP session.save_path config directive points to a writable directory? If necessary, you can check <?php phpinfo(); ?> output.
Hi fredp, thanks for responding. I think it's definitely related to the session/cookie thing. Unfortunately I am just a designer so I don't know the slightest thing about php.

Could you point me to a file or a mysql table in which I could inspect the directory in question?

Thanks again, everyone, for your patience.

Re: Admin not logging in after move

Posted: Wed Aug 15, 2012 8:32 pm
by fredp
I see. Well, in short, phpinfo() is a PHP function that will output a *large* amount of info about your PHP environment. WARNING: some of the information displayed might be used to compromise your site; so keep it safe and secure!

I found some instructions in another topic on the forum that you might find useful. They were used to investigate a different problem, but the instructions should still apply:
genestevo wrote:1. Open Notepad
2. Type (exactly as shown inc' space) <?php phpinfo();?>
3. Save as info.php
4. Upload to root of directory you're trying to install to
5. Open browser and enter: yourdomain.xyz/your directory/info.php
This should display a page filled with PHP related info. You might then search for the string 'session.save_path' on the output page. That should tell you what directory PHP is using for session files for your site. See if that exists and is writeable by PHP.

Also, you should remove the info.php file, or whatever you called it, from the server when you're done for security reasons. It's easy enough to recreate it and you don't want some evil type using it to see your site's private bits. ;-)