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.

Local website (DEV) won't login - just displays the login form again.

March 04, 2013 10:05pm

Subscribe [1]
  • #1 / Mar 04, 2013 10:05pm

    cmscss

    144 posts

    We have a multi-site website that we’ve copied locally to MAMP - we can view the site locally so know the database and MAMP setup is correct but can’t login.

    The browser gets directed here on login submit:

    <a href="http://http//site-name/system-admin/index.php?S=0&D=cp&C=login&M=login_form">http://http//site-name/system-admin/index.php?S=0&D=cp&C=login&M=login_form</a>

    Which just loads the login form again.

    We followed the instructions here.

    And have performed the complete list twice (including template sync and clear cache) - the only thing we couldn’t check was admin.php. Our site doesn’t have one so assume this is for newer versions?

    Our system directory has been renamed but the local version is the same as the live version and the top-level index.php contains the correct name:

    $system_path = './custom-name';

    Just not sure what we’ve missed sorry - any pointers in the right direction would be much appreciated.

    Cheers

    Ben

  • #2 / Mar 04, 2013 10:18pm

    cmscss

    144 posts

    Sorry, I manually forced these items in config.php and can now log in:

    $config['site_url'] = "http://example.com/";
    $config['tmpl_file_basepath']   = "/home/user/example.com/templates/";
    $config['theme_folder_url'] = "http://example.com/themes/";
    $config['theme_folder_path'] = "/home/user/example.com/themes/";
    $config['captcha_url'] = "http://example.com/images/captchas/";
    $config['captcha_path'] = "/home/user/example.com/images/captchas/";
    $config['emoticon_url'] = "http://example.com/images/smileys/";
    $config['avatar_url'] = "http://example.com/images/avatars/";
    $config['avatar_path'] = "/home/user/example.com/images/avatars/";
    $config['photo_url'] = "http://example.com/images/member_photos/";
    $config['photo_path'] = "/home/user/example.com/images/member_photos/";
    $config['sig_img_url'] = "http://example.com/images/signature_attachments/";
    $config['sig_img_path'] = "/home/user/example.com/images/signature_attachments/";
    $config['upload_preferences'] = array(
        1 => array(                                                            // ID of upload destination
            'name'        => 'Image Uploads',                          // Display name in control panel
            'server_path' => '/home/user/example.com/images/uploads/', // Server path to upload directory
            'url'         => 'http://example.com/images/uploads/'      // URL of upload directory
        )
    );

    Cheers

    Ben

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

ExpressionEngine News!

#eecms, #events, #releases