How-To: Install WordPress on Windows Home Server

Tue, May 6, 2008

  |  Drashna

A while back, we showed you how to Install PHP on IIS on your Windows Home Server.  Thanks to feedback from the community, it has been cleaned up, cleared up, and refined – the section on how to install MySQL has been expanded to include details and brief descriptions.  What we didn’t show you in that tutorial was how to install pre-made php software packages. There are many free packages that you can use, and that are very feature rich and useful for any number of different purposes.  We have a few tutorials ready for you on how to install these packages and the first up is blogging software, WordPress due to its popularity and demand.  We Got Served runs on Wordpress (although not on Windows Home Server) and is a simple but powerful solution for anyone who wants to start a blog. Here we go:

Check out the WGS Wiki for the most up to date version!

What you will need

What to do

First thing’s first, and you will need to download WordPress and MySQL and put them on a network share. Then you are going to either use Remote Desktop Connection or Advanced Admin Console to gain access to the server.

Install WordPress

After the database is installed, we are going to extract all the WordPress files to "c:\inetpub\blog\". Feel free to change blog to anything else, but it is easier to name it something obvious. It should look something like this:

inetpub_blog.jpg

You may notice the "wp-config.php" files. All the important database information is in there in plain text, including the password. This is why I recommend installing to the system drive rather than leaving it on the shares.  It may be a bit paranoid, but do you want somebody getting access to your database?

After extracting the files, right click on the “blog” directly, and select “Properties”. Find the “Security” tab and click the “Advanced” button. Add the user "IUSR_SERVER", replacing "SERVER" with whatever you named your server. For instance, I named my server "UMMON", so I added "IUSR_UMMON". Now give that user Full Control. Enable “Replace permission entries on all child objects with entries shown here that apply to child objects”, and click okay.

  • This will reset permissions on the files, and will revert back to being unchecked when it is done.

Now find “Administrative Tools” and open “Internet Information Services.” Under your computer’s name there is three entries. Open “Websites”, and then find “Default Web Site.” Right click on it and open the “New” group and select “Virtual Directory.” Not Virtual Directory from file. Now give the alias “blog” or whatever you want. This will be the path to your WordPress installation. Click “Next” and set the path to “C:\inetpub\blog” or whatever you named the directory. Click “Next”. It will give you options for the new virtual directory. Tell it to “Read”, and “Run scripts”.

Now you are done setting up the web service side of things.

Virtual Dir

Now you need to create the database.

Configure Database

If you haven’t installed MySQL yet, head over here first. Go the the start menu, and run “MySQL Command Line Client”. This will immediately ask you to enter a password. Enter the password you used when setting up MySQL. Now you need to create the database that WordPress is going to use. We’re going to use the name “wordpress” for the database. Feel free to change the name to whatever you want. It should look like this:

mysql> create database wordpress;
Query OK, 1 row affected (0.01 sec)

Now that we have created the database, we need to create a user specifically for WordPress because using the root account is very unsafe and we recommended that you never do it. So we are going to create the username and give it permission to use the new database. The username we are going to use is “wpadmin” and the password “wppassword”. It should look like this:

mysql> use wordpress;
Database changed
mysql> GRANT ALL PRIVILEGES ON wordpress.* to wpadmin@localhost IDENTIFIED BY 'wppassword';
Query OK, 0 rows affected (0.01 sec)

Now you have the database and the info you need. Again, you will need to remember this or write it down.

Configure WordPress

Now navigate to your blog. It should look something like: "https://yourserver.homeserver.com/blog/" and you should see a page like this:

450px Blog config How To: Install WordPress on Windows Home Server

Just follow the screens until you get to the database configuration page. Use “wordpress” for the database name, “wpadmin” for the username and “wppassword” for the password. Don’t change the database host, but feel free to change the table prefix if you so desire, or if you are hosting more than one wordpress installation on the database. Just input the information that you want for the rest of it, and you’re done. Seriously, that is it. Just log into the site with the password it supplies and change whatever you want. You are a happy owner of a WordPress Blog.

450px Wp success How To: Install WordPress on Windows Home Server
Oh, the password is randomly generated, and that was the password for a testblog site I made just for this tutorial. So I know it does work. And for those wondering, that was a test install, not my main.

Done

Now you are done. Log on and blog away!  For more, head over to the We Got Served Wiki.

Stay tuned for more PHP software packages!

 

Similar Posts:

This post was written by:

Drashna - who has written 23 posts on We Got Served.


Contact the author

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

20 Responses to “How-To: Install WordPress on Windows Home Server”

  1. Sippervixx Says:

    If you get ‘Your PHP installation appears to be missing the MySQL which is required for WordPress’, copy ‘libmySQL.dll’ from the \bin folder of the MySQL installation to the ./PHP directory. Make sure to rename the existing file ‘libmySQL.dll_bak.dll.

    http://www.phpbuilder.com/board/showthread.php?t=10339599

    Reply

  2. Drashna Says:

    Sippervixx: Another way to avoid that is to make sure when you are installing mysql, to add the mysql dir to the path variable. This basically accomplishes the same thing, but with less chance of errors.

    But thanks for the info. :)

    Reply

  3. Remkus Says:

    I was thinking about doing exactly this, adding WordPress to my Home Server. One to have a test platform and a second install to use as a backup tool for anything digitalized such as certain important mail. Thanks for the tutorial.

    p.s. love the new theme!

    Reply

  4. Michael Says:

    I have a problem. I am by no means a mysql or php expert. I got through everything up to the point where you navigate to the blog site. When I do that I get a “Page cannot be found” error. I know I am getting to the directory because i can create an index.htm and it will load. I checked the documents setting and index.php is there.

    What am I missing?

    Thanks.

    Reply

  5. Drashna Says:

    Michael, sounds like you haven’t added php5isapi.dll as a handler for php files. Try going over the tutorial step by step again.

    If you are still having problems, check out the WGS forum for help and people who have similar problems: http://forum.wegotserved.co.uk/index.php?showtopic=1795

    Reply

  6. Stephanie Says:

    Wow thanks! I have been blogging for quite a while now but I still see myself as a new user in so many ways. Sooner or later I plan to get into all of this and I will be referring to this blog to get me through it. Thanks I really appreciate it!

    Reply

  7. Idris Says:

    How to change file permission ?? if insstall whitout fantastico..

    Reply

  8. Spoon Says:

    Well, perhaps it’s not too late to bring this thread back to life. Anyway, Hey Everyone,

    I’m running a WHS in my home and I’m getting ready to install WordPress as my blog now. My question is would it be a risk or perhaps a problem to install the WordPress files to a D: shared directory on the server opposed to the norm c:\inetpub\blog directory on the server? FYI, “blog” can be named anything of course. In other words, could I copy all the WordsPress files to the pooled storage opposed to a non-pooled storage drive such as C:?

    Thanks in advance,
    -Spoon

    Reply

  9. Ray Says:

    Hi,

    Once You have the Wordpress installed on a server at home how do you configure to get published out to the internet?

    Regards,

    Reply

  10. Vlad Says:

    Thanks for the tips. I myself had a lot of trouble getting php and mysql to work on IIS.

    Reply

  11. bayu Says:

    nice tutorial mate, i will do in my home server, thanks.

    Reply

Trackbacks/Pingbacks

  1. WordPress Wednesday News: Which Bookmarklet, WordPress 2.5.1 Mandatory Upgrade, WordPress Plugin Contest, WordCamp 2008 in San Francisco, and WordPress Mugs : The Blog Herald - 08. May, 2008

    [...] 10, giving us 30 days of non-stop fabulous Plugins! WordPress on a Windows Home Server: Install We Got Served offers tips for installing WordPress on the new Windows Home [...]

  2. Schneiders in the ‘claw » It’s Alive! - 02. Nov, 2008

    [...] How to install WordPress on your WHS [...]

  3. How To Install WordPress on Windows Home Server We Got Served | Shed Kits - 27. May, 2009

    [...] How To Install WordPress on Windows Home Server We Got Served Posted by root 1 day 1 hour 14 minutes ago (http://www.wegotserved.co.uk) Reply quote comment tags message wordpress on a windows home server install we got served offers tips for installing ces 2009 cloud storage configuration digital media receiver get started terms of use privacy policy advertise with us powered by wordpress Discuss  |  Bury |  News | how to install wordpress on windows home server we got served [...]

  4. How To Install WordPress on Windows Home Server We Got Served | Outdoor Ceiling Fans - 31. May, 2009

    [...] How To Install WordPress on Windows Home Server We Got Served Posted by root 1 hour 8 minutes ago (http://www.wegotserved.co.uk) Once you have the wordpress installed on a server at home how do you quote comment tags message wordpress on a windows home server install we got served us powered by wordpress discuss bury news how to install wordpress on Discuss  |  Bury |  News | How To Install WordPress on Windows Home Server We Got Served [...]

  5. How To Install WordPress on Windows Home Server We Got Served | Outdoor Ceiling Fans - 31. May, 2009

    [...] How To Install WordPress on Windows Home Server We Got Served Posted by root 10 hours ago (http://www.wegotserved.co.uk) Once you have the wordpress installed on a server at home how do you quote comment tags message wordpress on a windows home server install we got served us powered by wordpress discuss bury news how to install wordpress on Discuss  |  Bury |  News | How To Install WordPress on Windows Home Server We Got Served [...]

  6. How To Install WordPress on Windows Home Server We Got Served | patio set - 17. Jun, 2009

    [...] How To Install WordPress on Windows Home Server We Got Served Posted by root 14 minutes ago (http://www.wegotserved.com) Don 39 t change the database host but feel free to change the table prefix if quote comment tags message wordpress on a windows home server install we got us powered by wordpress discuss bury news how to install wordpress on how to install wordpress on wi Discuss  |  Bury |  News | How To Install WordPress on Windows Home Server We Got Served [...]

  7. How To Install WordPress on Windows Home Server We Got Served | internet marketing tools - 19. Jun, 2009

    [...] How To Install WordPress on Windows Home Server We Got Served Posted by root 3 days ago (http://www.wegotserved.com) Now find administrative tools and open internet information services reply quote comment tags message wordpress on a windows home server install we us powered by wordpress discuss bury news how to install wordpress on Discuss  |  Bury |  News | How To Install WordPress on Windows Home Server We Got Served [...]

  8. How-To: Install WordPress on Windows Home Server « Personal PC Tech Notes - 04. Feb, 2010

    [...] How-To: Install WordPress on Windows Home Server How-To: Install WordPress on Windows Home Server [...]

  9. How-To: Install WordPress on Windows Home Server « John Colon Blog - 19. Feb, 2010

    [...] How-To: Install WordPress on Windows Home Server [...]

Leave a Reply