Admin not logging in after move
Admin not logging in after move
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?
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?
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
Re: Admin not logging in after move
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.
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.
Re: Admin not logging in after move
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?
If I find it, what shall I check for?
-
- Power Poster
- Posts: 1049
- Joined: Wed Mar 19, 2008 4:54 pm
Re: Admin not logging in after move
to see a .htaccess-file you must force your FTP-client to show hidden files.
Re: Admin not logging in after move
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?
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
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...
I would suggest going into the DB and making sure it has the correct users in it...
Re: Admin not logging in after move
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.
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
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?
Is there a value I could look for in one of the database tables?
Re: Admin not logging in after move
Hi,hatts wrote:...it says "no session found" and "no cookies found." ...
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
- Abraham Lincoln
Re: Admin not logging in after move
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.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.
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
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:
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.
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:
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.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
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
- Abraham Lincoln