Home » Wordpress19 April 2010

WordPress MU: Admin login problem

Scenario:

- I have installed WordPress MU in localhost (local computer).
- I am using Windows XP Operating System.
- I am using WAMP Server.

Problem:

When installing WordPress MU, I was getting the following error:-

Warning! Installing to http://localhost/ is not supported. Please use http://localhost.localdomain/ instead.

I was able to get rid of this warning message by commenting the following line (present at around Line 8 to 10) in index-install.php file present inside the wordpress-mu folder:-

if( $_SERVER[ 'HTTP_HOST' ] == 'localhost' ) {
	die( "<h2>Warning!</h2><p>Installing to http://localhost/ is not supported. Please use <a href='http://localhost.localdomain/'>http://localhost.localdomain/</a> instead.</p>" );
}

By doing this, I was able to install wordpress MU completely in localhost.

But, now I get a strange error. When I try to login to admin panel, I always get redirected back to the login page. I cannot access the dashboard.

Solution:

- Go to C:\WINDOWS\system32\drivers\etc
- Open the file named hosts in notepad
- At the end of the file, write the following:-
127.0.0.1 localhost.localdomain

- Reinstall WordPress MU using localhost.localdomain instead of localhost.

Suppose you have wordpress MU files in a directory named wordpress-mu. Then, you should type the following URL in the browser:-

http://localhost.localdomain/wordpress-mu/

Hope this helps and thanks for reading.

From Mukesh Chapagain's Blog, post WordPress MU: Admin login problem

php magento mukesh chapagain

Get New Post by Email

Find me on

Facebook Twitter Google+ LinkedIn RSS Feed
  • Guest

    This one worked for me