How to setup WordPress in EasyPHP

ADVERTISEMENTS

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', 'johntp');
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.

banner

Search JohnTP.com or view a random post

To receive this blogs articles for FREE on your email inbox, just enter your email address below and click 'Go':

Enter your email address: or .

Find out what I am doing currently by .

19 responses so far,

  1. 1

    Madhur Kapoor

    June 3, 2006 at 1:25 pm

    Nice Tutorial John. But while entering the MySQL information , do we need to enter our site\’s info?

  2. 2

    Shivaranjan

    June 3, 2006 at 2:30 pm

    Thanks John for the Tutorial. And it will be useful for people like me…

  3. 3

    CypherHackz

    June 3, 2006 at 3:47 pm

    I use WampServer. You can download it for free here: http://www.wampserver.com

  4. 4

    johntp

    June 3, 2006 at 4:05 pm

    Madhur- dataone information? Are you talking about the MySQL settings?

  5. 5

    Abhinav

    June 3, 2006 at 5:03 pm

    I prefer webserver on stick. It’s great for working on the move.

  6. 6

    Cory

    June 3, 2006 at 6:21 pm

    yea, i use something like webserver on a stick as well and its great

  7. 7

    johntp

    June 4, 2006 at 9:20 pm

    Madhur- You just have to enter the Database name, username and password in the MySQL settings.

  8. 8

    Sam

    July 31, 2006 at 2:25 pm

    Hello,
    I have surfed on the net I have found your blog. It’s amazing.

  9. 9

    newskoo

    August 3, 2006 at 12:22 pm

    so nice. thanks a lot. it helps me solve a lot of problems

  10. 10

    Armchair Anarchist

    August 20, 2006 at 11:23 pm

    Hey there John, wondered if you could tell me what I’m doing wrong?

    I followed the instructions exactly as above, and everything works fine until the wordpress installation process, where it just seems to hang with the ‘creating tables and filling them’ message for (literally) as long as I care to leave it.

    Having tried this a couple of times, if I exit from that screen and try to login to the installation, all the tables have been entered (as can be seen in the PHPmyadmin screens), but of course I don’t have the damned password to login with! I’m thinking that maybe it hangs up because it’s trying to send an email from a non-existent server? Very frustrating!

    Can you spare me any admice here? Is there any way to retrieve the password from the data in the tables?

  11. 11

    Venu

    August 21, 2006 at 1:18 am

    I use xampp for the same.. works like a charm :)
    i had a post written on it back some time :
    http://www.venukb.com/blog/200.....ress-blog/

  12. 12

    chaitu

    September 19, 2006 at 12:01 pm

    Hi
    Thanks its nice and it helped me a lot in installing APache

  13. 13

    Daniel

    September 25, 2006 at 9:11 am

    Hey
    I followed ur instructions to install EasyPHP now it is working thanks yaaaaaaar.1031 exchanges

  14. 14

    Margret

    November 18, 2006 at 2:22 pm

    Hello,
    I have surfed on the net I have found your blog. It’s amazing.

  15. 15

    dyohanan

    November 18, 2006 at 11:21 pm

    Hi John I have to tell you that I spend 15 minutes since I download both programs and installed on my computer. This tutorial is for simply mortals.

    I visited your blog for a while and I think is one of the best I saw ever. Congratulations and continue with your great job on this blog.

  16. 16

    dyohanan

    November 24, 2006 at 12:05 am

    Everything works just fine, but I have a question, how can I export all the info I enter here to my server database?



Copyright ©2005-2008 JohnTP, All rights reserved.