How to install wordpress multi-site in local host using Xampp

WordPress is free web development software that provides us the opportunities to develop the website or blog according to our needs. If you want to install WordPress Multi-site in localhost, you have to read this article carefully. After reading this article you will be able to install wordpress multi-site in localhost using XAMPP. In this post, we will cover the whole process to make that happen. As there are several program that provide this opportunity, but here we will be using XAMPP to run a “local host or web server” on your local computer that will provide us the option to host web sites. You have to install Xampp local server for WordPress and WordPress Multi-site to run your website or blog.  PHP and MySQL are included for the purpose of making it work easily. Don’t worry; the whole process is much simpler, easy and quicker.

First Install XAMPP On Your Computer:

  • First of all download and Install XAMPP and Start the Services. Please click here to   the download page of Xampp local server. Other necessary files are found here.
    You have downloaded the “Installer” package which is an executable that you can double-click instantly after downloading.
  • You are required to leave all the setting as defaults during setup or installation process. Also give the permission to the software to go through the firewall, and install each and everything to the default folder on my computer.
  • As installation is completed, you will be asked to launch the Control Panel. Now, go ahead and launch it.
  • As the C-panel is launched, look at the icons present there in the XAMPP Control Panel and click on start button of Apache and MySQL, as shown in the picture.

  • Now in the next step, launch a browser like Google chrome or Mozilla Firefox or other as you wish and type this address http://localhost/phpmyadmin. A new window will open there.

  • Now you have to click on the Databases tab that is present at the top. After clicking on that tab, several other options will open.

 

  • In the next step, look at these options closely and below the Create database box, type in a name for your WordPress database. Please remember this because it will be needed later on, in other steps too, now click the Create button.
  • Remember here that you can add a new user for the database, or just use the “root.”
  • In the next step, visit the address http://localhost/security/xamppsecurity.php  in order to set a password for the “root” user.
  • Now right-click the icon for the XAMPP Control Panel and stop, and then start, MySQL after changing the “root” password.
  • This was Xampp installation that you have completed, now in the next step you will learn how to install WordPress on Xampp local server?

Now Install WordPress Latest Version:
In this next step we will install the latest version of wordpress, It will take just a few minutes.

(A)- First of all go to the www.wordpress.org , and click on the download button to download your package.

(B)- Now you are required to extract the wordpress zip files to your computer.

(C)- Open the wordpress file, now here you have to rename the wp-config-sample.php to wp-config.php, as shown in the screen shot.

(D)- Now change the wp-config.php file in a text editor program like Notepade or Notepad++ and enter in the database name, database user name and password that you have entered in the Xampp Database. Keep notice here that unless you created a new user, the user will be “root” and the password will be that whatever you changed the “root” user’s password to be in the above steps. See below for where to add the database information in the text editor file.

If you can’t find these lines, you can also search it by clicking Control + F and enter the below lines one by one. define(‘DB_NAME’, ‘wp’);define(‘DB_USER’, ‘root’);define(‘DB_PASSWORD’, ‘password’);

(E)- This step is very important, in the wp-config.php file just below the line that says “define (‘WP_DEBUG’, false);” and above the line which says “That’s all, stop editing” type the following line or you can also copy and paste It there to activate WordPress Network capabilities.

define(‘WP_ALLOW_MULTISITE’, true);

(F)- In the next step you have to go to the folder where you have installed XAMPP. If you left everything at the defaults, look at the c:\xampp, here you will find a folder named “htdocs.”  You have to empty the “htdocs” folder and move your unziped WordPress files into it, as clear from the picture below.

(G)- In the next step launce a web browser like Google Chrome, Mozilla Firefox or any other browser of your choice and go to the http://localhost to finish your WordPress installation process.

WordPress Network Setup:

If the above steps were followed in the same order then you are at the right direction, and your WordPress program are able to work on a local system using XAMPP and after a few minutes you will be able to install WordPress Multi-site in local host. As you have made some changes in the WordPress config file, as a result of it, you have “turned on” the ability to have a WordPress Multisite. To bring some further changes and setup the Network, you have to add some other lines to the wp-config.php and .htaccess files.

  • First login to your WordPress local site, to enter into the dashboard, which you will be prompted to do after installation, as shown in the below picture. If you feel any difficulty please take help from the pictures.

 

  • Then you have to click on the Tools=è then click on Network Setup.

 

  • Give a name to the Network, and also verify the Network admin email address.
  • Now you have to click the Install
  • As you click on the install button, here two blocks of code will be shown to you. The code, which is present in the top box, is to be kept in the WordPress config file. Now copy the lines and paste them over the “define(‘WP_ALLOW_MULTISITE’, true);” line in wp-config.php, because it is no further required.
  • In the next step, also copy the lines from the second box and paste them in the .htaccess file that is present in the “htdocs” folder. You have to overwrite all other lines in there that were created by WordPress.
  • Now log out, and then log in again into your WordPress dashboard. The log out tab is present at top right corner of your dashboard.

Congratulations! Finally you are done and you are able to install WordPress Multi-site in localhost. And your WordPress Multi-site setup is activated on your localhost. Keep in mind that in the Network Dashboard you can “network activate” themes and plugins and also make them available for other “sites or blogs” on the network. And now you are in the position to create/edit your blogs or sites from within the dashboard.

 

Leave a Reply

Your email address will not be published. Required fields are marked *