How to Install WordPress on Windows, OS X, or Linux with XAMPP

Posted OnDec 2, 2013     CategoryInstalling WordPress     CommentsNo comment

In this tutorial we’ll be showing you how to install WordPress on Windows, OS X, or Linux, with the help of XAMPP, a powerful, free, and multiplatform Apache, MySQL and PHP stack.

Step 1) Download and install XAMPP for your operating system.

The particulars of installing XAMPP will differ depending on this, and documentation instructions are found on the XAMPP website in the links above.

Please note: Bitnami offer a range of modules for XAMPP. The process for Windows is very straight forward though for OS X you will likely need to start the installer from the command line and use sudo to do so. You are welcome to try this route, or follow the steps below.

Step 2) Download WordPress and extract it into the htdocs folder of the XAMPP install, which will most likely be one of the following depending on your Operating System.

C:\xampp\htdocs
/Applications/XAMPP/htdocs
/opt/lampp/htdocs

By default, the folder is called wordpress and it’s fine to leave that as so.

Step 3) Open up phpMyAdmin and click the Databases in the top menu.

Step 4) Provide a name for your Database and then click Create.

creating a database in phpmyadmin in xampp

You will see a splash message when it’s successful.

Step 5) In the WordPress directory (ie: C:\xampp\htdocs\wordpress), rename the wp-config-sample.php to wp-config.php.

Step 6) Open wp-config.php in an text editor where you’ll see areas for the database details right before your eyes. Fill the database name and credentials in, then save the file. If you’re using XAMPP as we are the username and password will be the same as shown below.

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'xamppdb');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');

Step 7) In your browser, open http://localhost/wordpress where you should be met with the final request for information before installing. Fill the fields out, and click install.

xampp wordpress details

When complete, you’ll be greeted with a Success message and be able to log in to your WordPress site and start working away!


Leave a Reply

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

Send this to friend