Monday, August 10, 2009

How to configure wordpress with easy PHP

What do you do when you want to test WordPress Themes and Plugins before activating them on your blog? Do you test them online and waste bandwidth? Well, there is a better way. With EasyPHP you can test WordPress Themes and Plugins offline. EasyPHP is a program that allows to easily install Apache, MySQL and PHP.

Here I will show you how to setup WordPress in EasyPHP. Before continuing download the latest version of WordPress and EasyPHP.

After installing EasyPHP you will find it has a www folder. If you installed the program in the default directory, the path will be C:\Program Files\EasyPHP1-8\www. Unzip WordPress into the www folder, in a folder called ‘WordPress’.

Now open wp-config-sample.php and find the following code

define('DB_NAME', 'wordpress');
define('DB_USER', 'username');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');

This is where you define the MySQL settings for WordPress. Enter the Database name,username and password. You do not need to change the host name. These are the settings I am going to use

define('DB_NAME', 'wpblog');
define('DB_USER', 'sopheak');
define('DB_PASSWORD', 'password');
define('DB_HOST', 'localhost');

Save the file and rename it to wp-config.php

Double Click the EasyPHP icon on the system tray. Click the ‘e’ icon and select Administration

Click the e icon

Now click Manage Database. The page you see now is the phpMyAdmin. From here you can create the Database for Wordpress. Under Create New Database enter the database name you entered in the wp-config.php file and click Create.

Click the back button of your browser and go to Privileges. To create a new user click Add a new user.

Create new User

Enter the login information that you had earlier entered on wp-config.php. Click Check All and then Go.

Enter login information

Now enter http://127.0.0.1/wordpress/wp-admin/install.php in your browser. If you have configured the database properly, you will be presented with this page

Welcome to Wordpress Installation

Click First Step. Enter your Weblog title and email address and click Continue to Second Step. You will now be given a username and a random password. Note that password carefully!

If you lose it, you will have to delete the tables from the database yourself, and re-install WordPress.

That’s it! You just setup Wordpress on EasyPHP.

You can login by going to http://127.0.0.1/wordpress/wp-login.php. You can change your password by going to Users in the WordPress Admin Panel.

No comments:

Post a Comment