Skip to content

Mukesh Chapagain Blog

  • PHP
    • PHP
    • Laravel
    • WordPress
    • Joomla
  • Magento
    • Magento 2
    • Magento Extension
  • Node.js
    • Node.js
    • Javascript
    • jQuery
  • Database
    • MySQL
    • MongoDB
  • Data Science
    • Machine Learning
    • Recommender System
    • Natural Language Processing (NLP)
    • Sentiment Analysis
    • Python
    • R
  • Categories
    • Blockchain
      • Hyperledger Composer
      • Hyperledger-Fabric
    • Other
      • Cryptography
      • Data Structures & Algorithms
      • Git
      • LaTeX
      • Linux
      • Ubuntu
      • Xubuntu
      • Google
      • Google AppScript
  • About
    • About
    • Contact
    • Privacy Policy

Home » Wordpress » WordPress MU: Admin login problem

WordPress MU: Admin login problem

December 25, 2014April 19, 2010 by Mukesh Chapagain
Categories Wordpress Tags admin, install, login, problem, Wordpress, wordpress-mu
FacebookTweetLinkedInPinPrintEmailShares

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. Thanks.

Related posts:

  1. Joomla: Admin login problem [Solution]
  2. WordPress Fix: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s)
  3. Magento 2: Admin Login Error – Your current session has been expired
  4. Magento Admin login problem
Categories Wordpress Tags admin, install, login, problem, Wordpress, wordpress-mu
Magento: Setup multiple currency shop
Magento: Get Product Collection by Type

About

Mukesh Chapagain Hi, I’m Mukesh Chapagain — a web developer, programmer, and tech enthusiast. Whether you're a beginner or an experienced developer, you’ll find tips, tutorials, and insights to help you navigate the ever-evolving world of technology. Happy coding! 🚀 about...

         

Subscribe via Email



Categories

Most Viewed

  • How to Calculate Inverter & Battery Backup Time? - 428,020 views
  • Very Simple Add, Edit, Delete, View (CRUD) in PHP & MySQL [Beginner Tutorial] - 415,646 views
  • LaTeX: Generate dummy text (lorem ipsum) in your document - 228,046 views
  • GPG: Remove keys from your public keyring? - 201,573 views
  • Magento: How to get attribute name and value? - 188,264 views

Recent Posts

  • Magento: The store that was requested wasn’t found. Verify the store and try again.
  • Magento2: Check Services version on Adobe Cloud Server
  • Magento 2 API: Add Products to Cart & Checkout Place Order
  • Magento 2 API: Create New Customer
  • Magento 2 API: Get Categories

Recent Posts

  • Magento: The store that was requested wasn’t found. Verify the store and try again.
  • Magento2: Check Services version on Adobe Cloud Server
  • Magento 2 API: Add Products to Cart & Checkout Place Order
  • Magento 2 API: Create New Customer
  • Magento 2 API: Get Categories

Most Viewed

  • How to Calculate Inverter & Battery Backup Time? - 428,020 views
  • Very Simple Add, Edit, Delete, View (CRUD) in PHP & MySQL [Beginner Tutorial] - 415,646 views
  • LaTeX: Generate dummy text (lorem ipsum) in your document - 228,046 views
  • GPG: Remove keys from your public keyring? - 201,573 views
  • Magento: How to get attribute name and value? - 188,264 views

Tag Cloud

admin Adobe Commerce api array attribute block category checkout CLI command line crud currency customer Database error extension git Google grid HTML image Javascript Joomla jQuery latex Linux login Magento magento2 magento 2 module MySQL natural language processing NLP nltk nodejs order PHP product python shopping cart template Ubuntu url Wordpress
© 2025 Mukesh Chapagain Blog
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkPrivacy policy