WordPress Meets XAMPP
These are the steps on how to install WordPress on your computer using XAMPP. Working with WordPress on an actual Web Server is not always the best approach. This is especially true when designing, developing, modifying or customizing themes. Using an online server takes up a lot of time, puts the site and it’s contents at risk and uses unnecessary web resource.
To make developing WordPress and it’s themes a fun, hassle-free and efficient experience, it is better to use your computer as the Server that will hold the files while you tinker with them. This also gives you something to do in the event of losing internet connection. I’m assuming you have already installed xampp so these are just steps to install WordPress on xampp…
Install WordPress on XAMPP
- Download wordpress.zip from wordpress.org.
- Create a Folder inside the HTDOCS folder which is located in your XAMPP folder.
- Rename the new folder. We’ll use the name TEST for example.
- Extract the contents of wordpress.zip inside the TEST folder.
- Make sure XAMPP is running then open your browser and type localhost in the address bar, press enter.
- XAMPP homepage shows up, find and click phpMyAdmin.
- phpMyAdmin page shows up, click Databases on the menu.
- Create a database for your WordPress installation. We’ll use testdb for example.
- Now that the needed files are in place, it is now time to actually install WordPress.
- Go to your TEST folder, find wp-config-sample.php and rename it to wp-config.php, then open it.
- Change the values of the following:
/** The name of the database for WordPress */ define('DB_NAME', 'database_name_here'); /** MySQL database username */ define('DB_USER', 'username_here'); /** MySQL database password */ define('DB_PASSWORD', 'password_here'); /** MySQL hostname */ define('DB_HOST', 'localhost');
Change them to this:
/** The name of the database for WordPress */ define('DB_NAME', 'testdb'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', ''); /** MySQL hostname */ define('DB_HOST', 'localhost');
- The password is left blank. Save the changes and close wp-config.php.
- Go back to your browser and type this in the address bar:
localhost/test/wp-admin/install.php, press enter.
- Fill up the WordPress Installation Form and you are done.
- To visit your WordPress site in XAMPP,
type this in the address bar: localhost/test, press enter.
Bookmark it so you won’t have to type it every time you view your site.
It’s really very easy to install wordpress on xampp, it just has a lot of steps to follow.