Forums

Unable to login to Admin from a new install (3 posts)

  1. kidoosh
    Member
    Posted 1 year ago #

    Hello. I've searched these forum and the web for a solution, but haven't found one that worked for me, so I thought I'd ask this here -

    I just installed WPMU 2.7 in the root of my domain http://kidoosh.com/ However, I can't seem to log in to the admin area. I kept getting to this page - http://kidoosh.com/index.php/wp-login.php

    Also, index.php seems to keep popping up in the URLs (as seen in the URL above) - and I don't know how to get rid of it.

    I've tried all the suggested fixes here about altering wp-settings.php and wp-config.php . But, nothing worked.

    This is site is on VPS hosting.

    I'm a long-time WP.org user and has installed/set-up several individual blogs. But, this is my first time installing WP-MU. I've already encountered a few hiccups, but have managed to sort them out w/the help of this forum + my VPS tech support. But, I can't get over this particular hurdle. So, I'd really, really appreciate your help in this.

  2. Ovidiu
    Member
    Posted 1 year ago #

    I have no idea where that index.php is coming from. can we see your .htaccess?
    what did you modify inside wp-settings.php and wp-config.php? you shouldn't really fiddle inside there... well at least not until you know exactly what you're doing.

  3. kidoosh
    Member
    Posted 1 year ago #

    Thanks, Ovidiu. Here's my .htaccess :


    RewriteEngine On
    RewriteBase /

    #uploaded files
    RewriteRule ^(.*/)?files/$ index.php [L]
    RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
    RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

    # add a trailing slash to /wp-admin
    RewriteCond %{REQUEST_URI} ^.*/wp-admin$
    RewriteRule ^(.+)$ $1/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule . - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    <IfModule mod_security.c>
    <Files async-upload.php>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </Files>
    </IfModule>

    I just found the tip here at the forums to do this on wp-settings.php -

    around line 261:


    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', '.' . $current_site->domain);

    changed to:

    if ( !defined('COOKIE_DOMAIN') )
    define('COOKIE_DOMAIN', '.' . $_SERVER['HTTP_HOST']);

    and add this in config.php -


    define('ADMIN_COOKIE_PATH', '/');
    define('COOKIE_DOMAIN', '');
    define('COOKIEPATH', '');
    define('SITECOOKIEPATH', '');

Topic Closed

This topic has been closed to new replies.

About this Topic