Apr 032014
 

Microsoft’s Web Platform Installer (Web PI) makes installing applications a breeze. In a recent blog post I covered just how easy installing IIS has become using Web PI. In this walkthrough I’m going to cover installing WordPress, PHP, and MySQL using Web PI.  I remember the days when installing these applications was a manual process. Depending on your level of expertise it was quite a challenge to get everything working properly. If you’ve ever tried to uninstall and then reinstall MySQL you know what I mean.  Now thanks to Web PI with just a few clicks of your mouse you can have WordPress, PHP, and MySQL installed on Windows Server 2012 R2 in a few short minutes.

Setting up Your Site

On my test server I have a new installation of Windows Server 2012 R2 with IIS 8. Using the default site you’ll see the familiar IIS 8 welcome page called IISStart.htm. This page is automatically created for the default site when you install IIS. Be sure to delete it once you deploy your files.

image

Launching Web Platform Installer

After installing the IIS role on your server you’ll be able to launch Web PI directly from IIS Manager by clicking on Get New Web Platform Components . The real power and ease of using Web PI to install WordPress, PHP, and MySQL is evident after you choose WordPress and Click Install. Web PI will automatically select the other application dependencies and include them in the installation.

image

 

Choosing MySQL Root Password

Web PI will prompt you to choose a password for the root administrator user for MySQL. Be sure to make a note of this password because it will be needed later and resetting the MySQL root password manually can be challenge.

image

 

Click Accept. The installation will start running.

image

 

Web PI will download and install all the necessary applications. It will complete within a few minutes.

image

 

 

Configuring the site for IIS

At this stage of the installation Web PI will prompt you to choose a few settings for the IIS configuration. You can either install WordPress on an existing site or select New Web Site. I am going to install WordPress into the root of my site so I am using “/” for the application name. If you plan on running WordPress from a subfolder then enter a name for the application. Once the required parameters have been entered you will be able to click Continue.

image

 

 

You will be prompted to enter a few unique phrases to strengthen the password security.

image

 

Once Web PI completes the installation process your new MySQL Database Name, Database User Name, and Database Password will be displayed on the screen. Make a note of these settings. You will need them later to log into the database.

image

 

Installing WordPress

Once Web PI completes its installation process the WordPress installer will be launched. This final step of installing WordPress completes quite quickly. Enter the Site Title, the admin username and password, and your email address. Click Install WordPress to finish setting it up.

image

 

WordPress is now ready for use. Click Log In to go to the WordPress Dashboard.

image

 

image

 

Securing WordPress

Any serious web developer or server admin knows how important it is to secure your web site.  So after I install WordPress the very next thing I do is secure it. There’s a great WordPress plugin called Limit Login Attempts which can help block automated brute force attacks to your login page.  If you wanted to take it a step further you could even use Url Rewrite to block requests except for your own IP which I chose to do when my site was once targeted by brute force attacks. One other plugin you may want to consider is called Bad Behavior. This is a great plugin for mitigating link spam and the robots that deliver it. Combined with Akismet your site’s blog post comments will be spam free.

Summary

WordPress is one of the most widely used free CMS products. Installing WordPress on Windows Server 2012 R2 also requires PHP and MySQL. Now thanks to Web PI installing WordPress, PHP, and MySQl has never been easier. Your site will be up and running in mere minutes. After installation take some extra time to secure the login page and prevent comment spam. Thanks for reading.

Oct 042012
 

If you’re getting started with Windows web development or you just need a lightweight web development tool then check out Microsoft’s WebMatrix 2. Creating, deploying, and maintaining, web sites has never been easier and considering it’s free you can’t beat it. What I like about WebMatrix is that it allows you to install 3rd party products such as blogs or forums from the App Gallery. 

I needed to create a new WordPress blog so that I could test a few things without impacting my production site so I decided to try out WebMatrix.  I was really impressed with how easy the whole process was.  I had a test VM on my PC running Windows 7 Home Edition so my first step was to download and install WebMatrix 2.

image
After completing the install you’ll see the Quick Start menu. I clicked on the App Gallery and picked WordPress.

image

I used the default site name of “WordPress” and clicked Next.

image
This is a really nice feature. The installation detects that I do not have MySQL installed on my Windows 7 VM so it will be installed for my automatically. All I have to do is enter the “root” username and password that I want to use and click next.

image

I was prompted to accept the End User License Agreement so naturally I clicked “I Accept”. It won’t install without it so you have to agree to it.

 

image

After a few moments I was presented with a status update showing everything that was installed on my PC during the installation.

image

So now the installation is done. All that remains is to configure WordPress. This is a really simple step. I just had to enter the site title, the admin username and password, and and email address. I then clicked “Install WordPress”.

image
Now the installation has completed and I can login to WordPress. That’s it. WordPress has been installed locally on my PC. I can start installing new plugins or themes and creating posts.

image

 As I mentioned earlier I was installing this locally on a test VM so its not live yet on a production web server.  However if I wanted to publish this to a 3rd-party server then Webmatrix can handle that for me as well. From the Home Tab I just click on the “Publish” icon.

image

Click on Edit Settings and just enter the Web Deploy settings you need to use for your hosting provider. If you need discount asp.net hosting then look no further than Cytanium.com. I know them personally and have hosted site’s there. They do a great job.

image

WebMatrix is a great product and is easy to use. Using WebMatrix to install and configure a WordPress blog could not have been easier or more straight forward. The entire process from start to finish took about 7 minutes.

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS