ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Control Panel login problem

January 03, 2011 1:57pm

Subscribe [2]
  • #1 / Jan 03, 2011 1:57pm

    MjMAC87

    4 posts

    I have recently just copied everything from httpdocs for my EE site along with the mysql databases in order to do a Re-Image of my server.

    I am running a CentOS 5 server with Plesk 10 and PHP 5.3 installed. I copied everything back up to the server and everything is working just fine for all my other sites and my EE site is loading with no problems at all, however though, I am unable to login to the EE control panel?

    I tried both logging in through my front end form and the EE CP, my front went one displays the message that I am now logged in but returns me to the site and I am not in at all. On the other hand the EE CP just reloads the login form and I am not logged in at all.

    Thanks in advance,
    MjMAC87

  • #2 / Jan 04, 2011 9:14am

    Sue Crocker

    26054 posts

    MjMAC87, which version/build of EE2.x are you using? You can find that by looking in your /system/expressionengine/config/config.php file.

    Look for something like:

    $config['app_version'] = '213';

    While you have the file open, please add:

    $config['cookie_domain'] = ".example.com";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
    $config['user_session_type'] = "c";
    $config['require_ip_for_login'] = "n";
    $config['require_ip_for_posting'] = "n"; 
    $config['secure_forms'] = "n";

    Replace .example.com with your actual domain.

    Does that help?

  • #3 / Jan 04, 2011 2:43pm

    MjMAC87

    4 posts

    Hi Sue,

    Thanks for the reply, I added the above to the config file and didn’t get anywhere. I had a thought about MySQL and when I loaded up phpmyadmin it turned out all the databases were in read only mode.

    So I SSHd into my server and had a look at my copied databases at their ownership against the ones already installed with MySQL. Turned out that they all has been set to Root instead of MySQL.

    At least I know now, will save me a lot of problems later when swapping around from dev to live versions on different servers lol

  • #4 / Jan 05, 2011 8:54am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases