Premium WordPress Theme: Installing XAMPP

When developing a website I have always worked on a live development server. This allows me to build the site on the exact server setup to that the live site will run. When developing this of course can be a slow process due to the constant uploading of changes to view their impact on the website.
I’ve always viewed installing a local server such as Apache to be a complicated and messy affair. However after reading the Installing WordPress Locally post by the WebDesignerWall the process did not seem as complicated as I once imagined.

Installing XAMPP

Being a complete novice in the area of server setup I simply followed the guide laid out on the WebDesignerWall. I chose XAMPP to install for the simple reason of its mention in the post and with a lack of knowledge in alternatives it seemed the quickest and easiest option.

The installation of the software was remarkable smooth; the only potential issue flagged was that of installing the software in the Program Files folder of Microsoft Vista due to the Operating Systems administrator rights functionality.

Creating a Database

As a developer I know my way around phpMyAdmin enough to create a new database, which coupled with the examples in the WDW post this should have been an easy job. But locating phpMyAdmin was where I failed. In this case I had to refer to the Internet to tell me that the software was accessible via http://localhost/phpmyadmin/. Once here I was able to create the database with ease.

Installing WordPress

Finally this is a section of the process I was familiar with. On this occasion I downloaded WordPress 2.6.3, unzipped the files and placed them in C:/xampp/htdocs/wordpress/.
To install WordPress I would have to update the wp-config.php file to allow it to uninstall the relevant information into the database I had just created. With no clear indication of the information required for this I had to use the Internet again. My problem was due to not knowing that the DB_PASSWORD should be left blank with using a local server.

The resulting information was:

1
2
3
4
define('DB_NAME', 'wordpress');    // The name of the database
define('DB_USER', 'root');     // Your MySQL username
define('DB_PASSWORD', ''); // ...and password
define('DB_HOST', 'localhost');    // 99% chance you won't need to

After correcting the settings all that was required was to visit the /wp-admin/install.php file within the browser and follow the instructions to complete the install.

Conclusion

Although I had a couple of issues along the way I was impressed by the simplicity of installing XAMPP. I’m yet to be won over to the process of working locally rather than on a live server but I do see its potential when developing a theme on something as standardised as WordPress.

Coming Next

Now that WordPress is installed I am going to look into installing a few currently available themes and see how they are built and how they implement some of the more non standard features of a theme. Afterwards I will then look at starting the design work on my own theme.

2 Comments
  • From my experience of using XAMPP in a similar setup to how you have mentioned above, it is worth taking the time and effort to create your database, database users and passwords as close as you can get to those of your live web server.

    Whilst not all shared web hosts allow for localhost to be used, it is worth setting up the same database users and passwords as it will same time in the long run when uploading files to the live server, and vice versa without having to concern yourself too much with multiple database connection/configuration files.

    Scott Mallinson | www.scottmallinson.com 19th December 2008 @ 2:29 pm

  • I’ve not used XAMPP yet, although I did look at it for running a live USB stick.

    Just to add my 2 pence…. I use http://www.wampserver.com/en/

    Douglas Radburn | douglasradburn.co.uk 22nd December 2008 @ 9:57 am

Write a comment
Avatar

Return to top