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.

Restored on localhost but can not login in CP

April 30, 2012 3:53pm

Subscribe [2]
  • #1 / Apr 30, 2012 3:53pm

    lebisol

    2234 posts

    Howdy,
    I know that version 1.6.6 is old but I am trying to get into CP of fully restored site/db to my localhost.

    - Locally I can do a clean install no issues so server reqs are in place.
    - When site is restored and upon login I can see that the session is created in ‘exp_sessions’ table but the screen just reloads with the session in appended to url “/index.php?S=384ea44a0a9d7f45135475bfbf0935a3e98269db”
    - Different browsers, deleted cookies
    - Deleted cache from ‘EE\sysadmin\cache\db_cache’
    - I have adjusted the ‘config.php’ to the following:

    <?php/
    
    if ( ! defined('EXT')){
    exit('Invalid file request');
    }
    
    $conf['app_version'] = "168";
    $conf['license_number'] = "";
    $conf['debug'] = "1";
    $conf['install_lock'] = "1";
    $conf['db_hostname'] = "localhost";
    $conf['db_username'] = "test";
    $conf['db_password'] = "pass";
    $conf['db_name'] = "my_db";
    $conf['db_type'] = "mysql";
    $conf['db_prefix'] = "exp";
    $conf['db_conntype'] = "0";
    $conf['system_folder'] = "sysadmin";
    $conf['cp_url'] = "http://localhost/EE/sysadmin/index.php";
    $conf['doc_url'] = "http://expressionengine.com/docs/";
    $conf['cookie_prefix'] = "";
    $conf['is_system_on'] = "y";
    $conf['allow_extensions'] = "n";
    $conf['multiple_sites_enabled'] = "n";
    
    
    $config['cookie_domain'] = "";
    $config['cookie_path'] = "";
    $config['cookie_prefix'] = "";
    $config['admin_session_type'] = "c";
    ?>


    Little rusty with EE 1.x so not sure if I missed a step, any help would be appreciated.

     

  • #2 / May 01, 2012 11:33am

    Shane Eckert

    7174 posts

    Hello lebisol,

    I am sorry to hear you are running into this problem.

    What version is this? You said 1.6.6 but the config file says 1.6.8.

    What versions of PHP and MySQL are installed on this localhost?

    Please let me know.

    Cheers,

  • #3 / May 01, 2012 12:12pm

    lebisol

    2234 posts

    Hi Shane,
    Sorry that was my mistake by copy/paste the clean config as test and and never cleaned it up. I installed a clean 1.6.8 and it worked no issues.

    I am working on restoring the EE 1.6.6 and running it all on WAMP:
    mysql = 5.5.8-log
    Apache/2.2.17 (Win32) PHP/5.3.5

    Thank you.

  • #4 / May 01, 2012 4:28pm

    Shane Eckert

    7174 posts

    Hello lebisol,

    So where are things now?

    What can I do to help?

    Cheers,

  • #5 / May 01, 2012 5:26pm

    lebisol

    2234 posts

    They are at the same point of the post…
    restored site of 1.6.6 = can’t login into CP even with the config overrides as above.
    clean install of 1.6.8 = all good

    So any other tricks past the config file tweaks? Must be some path/cookie/session setting…

  • #6 / May 02, 2012 1:34pm

    Shane Eckert

    7174 posts

    Hello lebisol,

    I would double check the paths and make sure file perms are good.

    Anything in the server logs?

    Cheers,

  • #7 / May 02, 2012 10:55pm

    lebisol

    2234 posts

    Hi Shane, thanks for hanging with the thread.
    Permissions seem good, I did not change paths in the db yet as I would rather not mess with it without getting past the login. Authentication seems to be working since when password is incorrect I will get the error back, so the db is being reached ok for the query.
    Nothing significant in the Apache logs:

    127.0.0.1 - - [02/May/2012:19:37:07 -0700] "POST /ee/sysadmin/index.php?S=0&C=login&M=auth HTTP/1.1" 302 -
    127.0.0.1 - - [02/May/2012:19:37:07 -0700] "GET /ee/sysadmin/index.php?S=3f22e50214d66d193ea681b5cae8d193f3257303 HTTP/1.1" 200 7024

    Thanks again.

  • #8 / May 03, 2012 3:07pm

    Shane Eckert

    7174 posts

    Hi lebisol,

    This is a really frustrating one!

    I saw that you cleared the db cache, did you also clear all the other cache?

    This is local right, so not way for me to login and take a look?

    Try blowing away all the cache.

    Thanks,

  • #9 / May 03, 2012 4:43pm

    lebisol

    2234 posts

    Thanks Shane but yeah this is local machine without static IPs so…browsers and cache bit didn’t help.

    I think at this point we close the thread. I was after the templates structure (HTML and CSS) and wanted to avoid having to re-construct the markup out of includes and embeds but at this point ‘quick and dirty’ restore and config override has backfired 😊

    Thanks for the support.

  • #10 / May 03, 2012 4:44pm

    Shane Eckert

    7174 posts

    Hello lebisol,

    I wish we could have figured this out!

    If you need anything else, please just let us know by opening a new thread.

    Thank you,

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

ExpressionEngine News!

#eecms, #events, #releases