Learn how to install XAMPP on your Windows PC and have a WordPress site (including Multisite) running on it in just a few minutes.XAMPP is a free, open sourc. Follow this XAMPP Installation Tutorial. Please be aware this is only for 64bit. How to Install WordPress on Xampp? Step 1 – Download and Run XAMPP on Your PC. To download XAMPP, visit XAMPP’s official website and click on the download. Step 2 – Download the Latest Version of WordPress. Now you are ready to install WordPress on localhost and create your. Step 3 – Create a. Installation Of XAMPP Step 1: Download And Install XAMPP. This is the very first step in your way to install WordPress. You have to download. Step 2: Test The Server. In order to install XAMPP WordPress on windows, you have to run two modules ie. Step 3: Add WordPress Files.
So you want to install a WordPress Multi-site Network on your local computer using XAMPP, huh? (you like that HTML Goodies throwback?)
Well, in this article, and the accompanying video I will go through the process to make that happen. I will be using XAMPP to run a “web server” on my local machine allowing me to host web sites. PHP and MySQL are included making it work easily for WordPress and WordPress Multi-site. While I am using XAMPP in this example, I might suggest USBWebServer to run a local site web server as the process is much simpler and quicker. Beyond that though I am not sure of the advantages or disadvantages of either.
If you want to install WordPress multi-site on a live server then check this tutorial.
WordPress Multi-site Setup on XAMPP
WP Multi-site Setup Video Tutorial
First, Download and Install XAMPP and Start the Services
- Do a Google search for “XAMPP” or head right to https://www.apachefriends.org/xampp.html
- In the video I demonstrated using XAMPP for Windows because I have a Windows machine. Those files are found here.
- I downloaded the “Installer” package which is an executable that you can just double-click immediately after downloading.
- During setup I allowed all the defaults. I gave the software permission to go through the firewall, and let everything install to the default folder on my machine.
- After installation you will be asked to launch the Control Panel. Go ahead and launch it. Don’t expect anything exciting, it just creates an icon in the system tray.
- Right-click the tray icon for the XAMPP Control Panel and start Apache and MySQL.
- Next, visit http://localhost/phpmyadmin
- Click on the Databases tab across the top.
- Below the Create database box type in a name for your WordPress database (and make note of it) and click the Create button.
- You can add a new user for the database, or just use “root.”
- Visit http://localhost/security/xamppsecurity.php to set a password for the “root” user.
- Right-click the tray icon for the XAMPP Control Panel and stop, and then start, MySQL after changing the “root” password.
Now, Let’s Install the Latest Version of WordPress
In this next part, we go through a typical installation of WordPress with one small change.
1) First, grab the latest installation package from WordPress.org.
2) Extract the files to your computer.
3) Rename wp-config-sample.php to wp-config.php.
4) Modify the wp-config.php file in a text editor and enter in the database name, and database user name and password. Unless you created a new user, the user will be “root” and the password will be whatever you changed the “root” user’s password to be in the steps above. See below for where to add the database info:
5) Now, in the wp-config.php file just below the line that says “define(‘WP_DEBUG’, false);” and above the line that says “That’s all, stop editing” place the following line to activate WordPress Network capabilities.
3 https itch io game assets. 6) Visit the folder where you installed XAMPP to. If you left everything at the defaults, look for c:xampp. In there will be a folder called “htdocs.” Empty that folder and move the WordPress files into it.
7) Finish the WordPress installation process by going to http://localhost in your web browser.
Now, Setup the WordPress Network
After following the above steps we are at the point where we got WordPress working on a local machine using XAMPP. And we have “turned on” the ability to have a WordPress Multisite by modifying the WordPress config file. Now, let’s setup the Network by adding some more lines to the wp-config.php and .htaccess files.
1) Login to your WordPress dashboard, which you will be prompted to do after installation.
2) Click Tools >> Network Setup.
3) Give the Network a title, and verify the Network admin email address.
4) Click the Install button.
5) Now you will be presented with two blocks of code. The code in the top box is to be placed into the WordPress config file (the same one where we turned on the ability to have a WordPress Network). Copy the lines and paste them over the “define(‘WP_ALLOW_MULTISITE’, true);” line in wp-config.php. In other words, overwrite that line as it’s no longer needed.
6) Copy the lines from the second box and paste them in the .htaccess file found in the “htdocs” folder. Overwrite all other lines in there that were created by WordPress.
7) Log out, then log back into your WordPress dashboard.
Now, WordPress Multi-site (or Network) is setup on your localhost. In the Network Dashboard you can “network activate” themes and plugins making them available to other “sites” on the network. You can also create/edit sites from within the dashboard.
Installing WordPress on your computer can be a great step towards building a testing environment for your WordPress themes and plugins. WordPress can be installed both on Mac and Windows and upon successful installation it runs just like the live site. The beauty of installing WordPress on your localhost is that you can carry out a variety of tests without worrying that things will go wrong. I will be illustrating how to install WordPress on one of the most common desktop servers – Xampp. For you to follow this tutorial you need to download and install Xampp.
Installing WordPress on Localhost Xampp
Before we get started with WordPress installation, you need to have Xampp running on your computer. You can download Xampp from here, installation of Xampp is easy since should click on the .exe file and allow it to run.
You should follow the installation prompts like installation procedure of any other software or.exe files. It also important to note that Xampp utilizes the same port 80 and 443 as Skype and at times there is a conflict between the two.
You can solve this conflict by editing the Skype ports or editing Xampp settings to use different ports instead of port 80 and 443. When you create the new ports for Xampp your localhost address will have to change to include the ports.
Example; if you have the new port as 80, your localhost address will be;
http://localhost:80 or http://127.0.0.1:80
If you want to run Xampp server without editing the ports on Skype or Xampp you can run one at a time. This means you can switch off Skype in order to run Apache sever. Detailed Installation of Xampp is beyond the scope of this tutorial.
Installing WordPress on Xampp
Step 1: Start, Test Xampp Server and Create Site Folder
The first step when installing WordPress is to start your Xampp server, ensure you start Apache and MySQL. Click on the start button to start running Apache server and MySQL database.
After starting the server we need to check from the browser if everything is running on well. To check we should type on the browser localhost or 127.0.0.1. If the server is up and running well you should see the following screen:
The second step is to create site folder inside htdocs folder. In Xampp server the site lives in a folder named htdocs;
We will name our site Demo so we need to create the folder inside htdocs and name it ‘Demo’ then check on the browser to see if the folder is visible.
We now check on the browser to see where we will be installing WordPress.
Step 2: Download WordPress and Extra into the Site Folder
Download WordPress and extra it in the folder we created inside the htdocs folder. To download WordPress official site and click on the .zip download file to begin downloading WordPress.
After downloading WordPress we should now extract it to our Demo folder and test it on the browser to see if it’s ready for installation.
After extracting WordPress to the Demo folder we need to copy all the files to from the WordPress folder to the Demo folder. After extracting and copying the file your demo folder should look like this;
Now we should test the site on the browser to see if WordPress is ready for installation. If you have followed all the steps correctly, you should now see the WordPress setup page as shown below;
Step 3: Create WordPress Database
WordPress runs on MySQL database and we need to begin by creating the database before we start running WordPress installation. It’s important you understand that the database we are creating will be linked to WordPress in a file called wp-config.php. We will therefore require the following database details to setup WordPress successfully;
Database name – this is the name of the actual database
Database username – this is the name of database user with Global Privileges
Database password – this is the password of the database
Database host – this is the host of our site, in this case it is the localhost
To create the WordPress database we need to open Phpmyadmin and create the database, create a user then assign the user Global Privileges. To open Phpmyadmin we need to type on the browser;
http://127.0.0.1/phpmyadmin or http://localhost/phpmyadmin
Click on the databases to begin creating the WordPress database and you should now fill out the name of your database and click create button;
After creating the database we need to create a user and allow the user to have all the privileges. To create the user first select the database you created then navigate to privileges on the top menu, under privileges click on add new user. After clicking on add user, you should now type in the database login details that include the name of the user, host and the password of the database.
At this stage you should remember the host should remain as localhost. This also applies when you create a database on hosting since localhost means within the same environment.
After creating the database user we now need to give the user all the privileges. Under the login details form there is a section of allocating Global Privileges to the user. We need to check all and click on go to allocate all the privileges to the user we created.
Step 4: WordPress Installation
Now we need to go back to our WordPress setup and begin the installation since we now have the database details. Click on let’s go button and fill the name of the database, name of the database user and the password of the database as we had set up in Phpmyadmin console.
When you click on submit you should now see the screen that shows your database details are right and you can now run the WordPress installation. Click on run installation to begin the process of installing WordPress on your local Xampp server.
Now fill the site’s details that include the site’s name, WordPress admin username, admin password, admin email and whether you should discourage the search engines from indexing the site.
After filling these details you should click on install WordPress and complete by logging in to test if your WordPress installation is successful.
If you have followed all the steps correctly, you should see the screen showing you have successfully installed WordPress on your Xampp server.
Step 5: Test Your Installation and Check the wp-config.php file
After filling the details above and clicking on install WordPress, you should now be ready you login and test your new WordPress installation as well as review the wp-config.php file to see what is in there.
Let’s now login and see how our site looks like:
As you can see above we have successfully installed WordPress and login and everything works well. If we navigate to our htdocs folder then to the site’s folder – demo we can open and see the wp-config.php file.
This is a very important file since it is what links the WordPress application phase to the MySQL database. When you open this file you will see the following code:
// ** MySQL settings - ** //
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
Install Xampp And Wordpress
/** Database Charset to use in creating database tables. */
/** The Database Collate type. Don't change this if in doubt. */
If you carefully look at this code, it details the database we created in Phpmyadmin, the username, the password and the host. These details are very important for any WordPress installation. As you will see in manual WordPress installation, these details are filled to connect WordPress to the database that exists in the server.
If you would like this WordPress installation to serve as your development environment there is a small edit we need to carry out in the wp-config.php file to allow for error reporting.
By default when you install WordPress on your localhost the debugging mode will be turned off. You need to look for this line of code in wp-config.php and change the Boolean value to TRUE.
You should edit it to look as shown below;
Xampp Windows 10
We have successfully, installed WordPress on localhost Xampp server
Wordpress Localhost Xampp
In the next tutorial, I will be installing WordPress on Wamp Server another popular desktop server. I hope this tutorial has guided you and enlightened you on how to install WordPress on localhost. If you have any questions, comments, compliments or further inquiries please get in touch using the comments section below.