Admin not logging in after move

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
hatts
New Member
New Member
Posts: 7
Joined: Sun Jun 17, 2012 3:06 am

Admin not logging in after move

Post 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?
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: Admin not logging in after move

Post by calguy1000 »

Check your .htaccess file.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
hatts
New Member
New Member
Posts: 7
Joined: Sun Jun 17, 2012 3:06 am

Re: Admin not logging in after move

Post 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?
staartmees
Power Poster
Power Poster
Posts: 1049
Joined: Wed Mar 19, 2008 4:54 pm

Re: Admin not logging in after move

Post by staartmees »

to see a .htaccess-file you must force your FTP-client to show hidden files.
hatts
New Member
New Member
Posts: 7
Joined: Sun Jun 17, 2012 3:06 am

Re: Admin not logging in after move

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Admin not logging in after move

Post 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...
hatts
New Member
New Member
Posts: 7
Joined: Sun Jun 17, 2012 3:06 am

Re: Admin not logging in after move

Post 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.
hatts
New Member
New Member
Posts: 7
Joined: Sun Jun 17, 2012 3:06 am

Re: Admin not logging in after move

Post 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?
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: Admin not logging in after move

Post 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.
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
hatts
New Member
New Member
Posts: 7
Joined: Sun Jun 17, 2012 3:06 am

Re: Admin not logging in after move

Post 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.
fredp
Forum Members
Forum Members
Posts: 218
Joined: Sun Jul 27, 2008 1:36 am

Re: Admin not logging in after move

Post 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. ;-)
Nearly all men can stand adversity, but if you want to test a man's character, give him power.
- Abraham Lincoln
Locked

Return to “[locked] Installation, Setup and Upgrade”