Running LAMP on Windows Server 2008 – webcast and screencasts now available

ws2008 I don't know about you, but that title sounds odd to me.  Why on earth would you run the LAMP stack on Windows?  Well for one thing LAMP commonly refers to Linux, Apache, MySQL and PHP.  So running LAMP on Windows Server 2008 really means running it in a virtual machine and the only supported method for doing that at the moment is via SUSE Enterprise Server from Novell.  This was discussed in the webcast Running Open Source Software (OSS) on Windows Server with IIS7 that I delivered yesterday.

In order to take one or more open source applications to the Windows platform, you might choose the prudent and safe route.  First running the entire LAMP stack in a VM.  Next, you might decide to remove the L and run the AMP portions on Windows Server 2008.  That's where the meat of the webcast I did today really starts.  You'll see in the second webcast demo we install Apache.  Later we install PHP, MySQL then Drupal on top of all of that.

The purpose of the webcast is to highlight the migration and coexistence that is possible.  You don't have to totally tear down everything you know and love then replace it.  Windows Server 2008 will be happy to run Apache, MySQL and PHP.  If you decide to replace pieces of that solution over time, you can do so pretty easily and that is demonstrated in the webcast replay.

I decided to record a higher fidelity version of some of the demos and instead of using the Drupal software used in the webcast, I used a common blogging software product called WordPress.  So here are the screencasts.

Part 1 - Installing PHP on Windows Server 2008 and IIS7 (length 8:51)

Downloading and installing PHP is pretty easy.  Testing that it is installed successfully is super easy via the phpinfo() function.  Learning to use PHP effectively is a little harder but the product has been around for years so there are a ton of books on using it with Linux or Windows.

Get Microsoft Silverlight

Part 2 - Installing MySQL on Windows Server 2008 (length 5:39)

MySQL is a popular database product used for a variety of applications on the Internet.  Just like Apache and PHP, MySQL can be installed and used on Windows Server 2008 as well.  In the linked webcast replay above I spent some time creating a table, inserting some data, the executing a query against the database to confirm it works. 

In this short screencast, we just go through the motions of installation, configuration, and creation of the database we'll use with the blogging software.  We'll know soon enough if we made any mistakes.

Get Microsoft Silverlight

Part 3 - Installing WordPress on the Windows, IIS7, MySQL, PHP (length 5:13)

WordPress is blogging software widely used on the Internet.  I actually have a WordPress blog but I haven't posted anything to it in six months.  It's part of the hosting plan we use for my wife's websites so you'll likely run across it in your hosting adventures.  One of the reasons it's so popular is because it's so easy to install and customize.  Check out the screencast below. See what I mean?

Get Microsoft Silverlight

There were several important points made in the webcast.  You should consider downloading it and watching the entire 90 minutes when you have some spare time.  I think you'll find that there are some nuggets of information there that you may now be aware of.  Like:

  • Apache runs really well on Windows Server 2008
  • MySQL runs really well on Windows Server 2008
  • PHP runs really well on Windows Server 2008
  • You can replace Apache with IIS7 and the applications will hardly notice
  • All of the above runs really well on Windows Server 2008 Core.
  • Migration is easy but not perfect so as always, test, test, test
  • IIS7 stores a lot of configuration data in XML and is easily edited like Apache, but unlike Apache, picks up the changes dynamically without a restart
  • And lots more!!!


Comments (9)
  1. Dave says:

    Nice series Keith! This has been very helpful for me as I was curious how to run PHP and MySQL on Windows Server 2008. I’m going to attempt a core installation of them though 🙂



  2. Rob says:

    I’ve done this before on 2008 (not core, though).  I completely redid my main LAMP site this way and it was dead easy.  Yikes, great setup but bad acronym… Windows Iis Mysql Php…. 🙂

  3. Keith Combs says:

    I know.  But WIMP is better than WAMP.

  4. Dave says:

    Well I got PHP5 and MySQL 5.1 running on Windows Server Core but I was a little disappointed to find out that you can’t use the IIS7 Manager  to manage a Server Core installation of IIS7. Looks like i’ll have to use Windows Web Server 2008 for my WIMP with WordPress server.



  5. NL_dev says:

    [quote] IIS7 stores a lot of configuration data in XML and is easily edited like Apache, but unlike Apache, picks up the changes dynamically without a restart [/quote]

    For a few years now (pre iis 6 release) Apache has a –graceful flag which makes the server reread the configuration file WITHOUT restarting

    next time do your homework before write bullsh*t on perfectly good and superior products

  6. Keith Combs says:

    What I am referring to and what the USR1 signal do are two different animals.  The -grace command line control arg signals the apache complex to quiesce by telling the child processes to finish their transactions and exit.  After that occurs, the config file is re-read and log file rotation can occur.

    So what I said wasn’t bull ka ka.

    But we are probably splitting hairs here.  The reason I said what I said is because some restarts on my tested were required to pick up some of the changes for PHP and MySQL (as I recall).  It was a manual process.  Telling the apache server to re-read the config files via graceful is still a manual thing for the adminstrator unless you’ve automated that in some way.  Have you?

    No such manual intervention is needed by IIS7.  You make a change, it gets picked up.

  7. Jack says:

    >the entire 90 minutes<

    I see no trace of link nor the location of these / this web cast.  Where is it?

  8. Keith Combs says:

    what happens when you click the hypperlinked word "webcast" or "webcast replay" above in the body of the post?

Comments are closed.

Skip to main content