How To Install WordPress on Your PC

Posted on February 4, 2011

0


Using WordPress through wordpress.com can is a good way to learn about the power of this mature content management system. Even just a tour of WordPress’ feature set is enough to suggest many uses for this adaptable publishing platform.

One of the more inventive WordPress adaptations is Commentpress, a WordPress plugin designed to allow many people to discuss the same published text, paragraph by paragraph.

You can browse the WordPress plugins library to see more of what developers are doing with WordPress.

Now, in order to develop themes and plugins for WordPress, it helps to run WordPress locally, on your own personal computer. What follows are instructions that tell you how to do this by using XAMPP and the latest version of WordPress.

XAMPP Installation Instructions

  • Click here an download the XAMPP Installer Package to your computer.
  • When it has downloaded, view the file in your Downloads folder or your browser’s Downloads list.
  • Double click on the installer’s icon and install XAMPP to C:/xampp
  • Run the XAMPP control panel.
  • Start Apache (you might have to set a security exception on your computer to allow it to run Apache)
  • Start MySQL

WordPress Installation Instructions

  • Download the latest version of WordPress: http://wordpress.org/download/
  • Unzip WordPress
  • Place the WordPress folder inside the folder C:\xampp\htdocs
  • Point your web browser to http://localhost/xampp/index.php in your web browser
  • Look at the left hand sidebar of the page that appears in your web browser
    Open Tools > phpMyAdmin
  • Create a database called wordpress. Choose the MySQL connection collation: utf8_unicode_ci when you create the database.
  • Go into your WordPress folder. Find the file wp-config-sample.php Open wp-config-sample.php in Notepad++
  • In your web browser, go to http://localhost/security/xamppsecurity.php. Set a password for your MySQL access. Keep your username as “root”.
    You may have to stop and restart MySQL for your password change to take effect.
  • Start XAMPP by running C:\xampp\xampp-control.exeIn the XAMPP control panel, start Apache and MySQL
  • In Notepad++, edit the following section of wp-config-sample.php (lines 18 – 28) as follows:define(‘DB_NAME’, ‘wordpress’); // The name of the databasedefine(‘DB_USER’, ‘root’); // Your MySQL usernamedefine(‘DB_PASSWORD’, ‘[the password you chose]’); // …and passworddefine(‘DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value
  • Save the edited file to the wordpress folder as wp-config.php
  • Go to http://localhost/wordpress/wp-admin/install.php. Fill out the form that appears in your web browser. In doing so, you will create a title, a username and password for your new wordpress blog.
  • Click “Install WordPress” at the bottom of the form.

You should now be good to go.

hat tip: http://www.tamba2.org.uk/wordpress/xampp/

Advertisements
Posted in: Web II