Installing a Local Wordpress Blog

Apr 20th, 07 | 1 remark

A couple days ago I wrote about how to set up a local testing ground for Wordpress theming using XAMPP, but what about setting up your blog itself to run locally? With just a few clicks in your phpMyAdmin panel, and some tweaks to your config file, you’ll be running with a pseudo blog in no time. First, unzip all the associated Wordpress files from the download and save them to a new folder in the xampp/htdocs directory, for example C:\Program Files\xampp\htdocs\testblog.

In your browser, navigate to http://localhost/phpmyadmin/. Under the heading “Create new database”, enter the name you want to give it and click “create”. The page will refresh, confirming that you have in fact just created a database. From there, navigate to the home page of phpMyAdmin, then follow the Privileges link. If you try to click over to Priviliges without returning home first, you’ll get a funky error. This is where you’ll add a user and set the permissions for that user.

php_myadmin.jpg

  • At the top of the “Add new user” page, you’ll see a prompt for username, host and password. Enter whatever names you’d like, taking care that the “use text field” options are selected in both drop-down boxes.
  • For the host name, select local from the drop-down and leave the input field blank.
  • Click “check all” under Global Privileges (assuming of course that you’re going to give yourself access to everything).
  • Click “go” at the bottom of the page. Again it will refresh, showing that you’ve created a new user. Now you’re ready to head over to your HTML editor, and make a couple changes to your config file.
  • Just as you would for a live Wordpress blog, rename your wp-config-sample.php file to wp-config.php, and open it up. You’ll see the following:
define('DB_NAME', 'somedatabase'); define('DB_USER', 'someuser'); define('DB_PASSWORD', 'anypassword'); define('DB_HOST', 'localhost');

Change the database name, user, and password to reflect the names you just chose in your PMA panel. You won’t need to change anything for DB_HOST. Save and navigate to http://localhost/testblog/ in your browser. Follow the screen prompts and you’re done!


  1. SEO

    SEOと言うのは、検索エンジン最適化を指す、時にSEO最適化SEO対策とも言います、SEOは英文Search Engine Optimizationの略語で、日本語で言うのはセオ、喩えにすれば人は目でサイトのデザイン性やコンテンツの良さを確認としたら、SEOはソースコードの最適化や外部及び内部の手段で検索エンジンを馴染むように修正して上位を目指す一連の施策っていうこと。

Post your remark

Other Recent Articles

In Reviews »

Clever Development With Coda

07/15/08
If you follow design related blogs, it seems you can't click a mouse anymore without Coda's icon making an appearance. I heard about this software long before buying my Mac, but because it's exclusive to that platform, I was never able to give it a test run. Now eight ... [ » ]

In Inspiration »

Have You Ever?

06/25/08
If you know me very well, you know how important music is in my life. It's playing at all times in my house, and I embrace all kinds of genres. I don't talk about it much on this blog, but I should. Music and creativity, in my opinion, are inextricably ... [ » ]

In Design »

The Evolution of a Logo (I Can Live With)

06/19/08
One of the most frustrating things for me since I started writing on this blog was the lack of a logo I really loved. That's not to say I haven't tried. But logo design, to me, is kind of a thing all it's own and I'm just not very good ... [ » ]