How to Install XAMPP and WordPress Locally
The XAMPP & WordPress combination is greatly used for website development. While XAMPP provides the local server environment, the WordPress is a web development platform. XAMPP is the most common localhost application used by the developers. Being cross platform, it can be used on Windows, Linux and OSx. In this article we will discuss the installation of XAMPP and WordPress on Windows.
Get start with setup
Download XAMPP for windows from apachefriends.org. Then, run the installer to get start with the XAMPP setup.
In the component wizard, all the components are by default selected. You can uncheck the components that you don’t plan to use.
Let’s quickly go through these components.
Apache– It is the HTTP web server, and essential to run the website.
MySQL– It is the database server.
FileZilla FTP server– It is used for setting up an FTP server.
Mercury Mail Server– It is used for setting up a mail transport system.
Tomcat– It is an application server, which runs Java based web applications.
PHP– It is a server side scripting language used for making dynamic web pages.
Perl– This language is widely used by the programmers for writing CGI scripts.
PhpMyAdmin– It is a necessary component to handle the administration of MySQL.
Webalizer– It is a web log file analyzer, which generates statistical reports about how many people visit a website and what do they look for in the website
Fake Sendmail– For testing email transfer on localhost, Fake Sendmail is used. If you are going to work on such a project which involves sending emails, then this component will come in your use.
We have chosen the Apache, MySQL, PHP and phpMyAdmin since these are necessarily required for WordPress installation. As we don’t have any plan to use the rest components, we have unchecked them all.
After selecting the components, you will be prompted to specify a location where you want to install XAMPP. Once you specify the location, the setup will be ready to install.
Start Apache and MySQL
Once the installation is complete, open XAMPP control panel. For this, find the xampp-control.exe inside XAMPP folder and launch it. Default location of XAMPP folder is C:\xampp
Having to open the control panel, start the Apache and MySQL components. As you will start these components, their Admin links will become clickable. Then, select MySQL “Admin” for moving ahead to phpMyAdmin or you can open it from here http://localhost/phpmyadmin .
Create MySQL Database
On phpMyAdmin interface, find the “Databases” tool on the top-left side and create the database. For example, we have created the database by the name wordpress.
Unzip WordPress zip file
After creating the database, we are set to start the installation of WordPress. Now, we are going to download WordPress.
Once the download is complete, extract the zip file to C:\xampp\htdocs\. If you’ve extracted the package correctly, you will see the “wordpress” folder inside htdocs.
Next step is to browse this URL- http://localhost/wordress in your browser for initializing the actual installation of WordPress.
Select language on the screen and continue.
Fill database information
Fill the name of database which you have created in the above step. In our case it is’ wordpress’. Fill “root” in username field and leave the password field blank, and fill localhost the database host field.
In the last field, you may define a prefix to all the database tables, and submit.
Fill in the website information
In the next step, you are prompted to set the title of your site and fill up user information, like site title, username, password and Email.
Fill up the required fields, and press “Install WordPress”.
That’s it. You have installed WordPress. Now, you are in business.
Log in to dashboard
Now, you have installed WordPress locally. You can move on to the dashboard by clicking on the Log in button.