- MAXIMUMpcguides Windows Vista - http://maximumpcguides.com/windows-vista -
How-to Create a Windows Vista IIS7 MySQL PHP Web Server
Posted By Brent Trahan On September 3, 2007 @ 3:25 pm In All, Complete Tasks, Misc, Vista, Windows | 88 Comments
This guide shows you how to create a Windows Vista powered web server using IIS7, MySQL, and PHP (WIMP). I know, I know, a WIMP server doesn’t sound too appealing. Trust me, this server is far from a wimp and will blow your socks off if you provide the right hardware.
Note: This is a generic WIMP server that’s capable of running [1] WordPress, [2] PHPbb, and other popular PHP and MySQL powered web sites. You might have to change a few things to get your WIMP server running just right depending on your usage.
Before you go too far you need to know that IIS7 running on Windows Vista is full featured with a few limitations.
Before you right this type of server off because it’s limited you need to realize if you ever reach one of the limitations you’ll have so much traffic you could probably buy an actual server with one day’s pay from the web site.
The Limitations
First thing first, we need to install a web server.
The root of the default web site is located at C:\inetpub\wwwroot. Your web site goes there.
Now that we have a web server we need support for PHP. In this example I’m installing PHP 5.2.4.
Lets test to make sure php is installed and running correctly.
Note: Remove the space between < ? in < ? phoInfo() ?>. I had to add the space so the command doesn’t execute on this page.
Note: A common mistake when saving test.php is to save it as test.php.txt. Don’t forget to select All files under Save as type and then name the file test.php in notepad.
Before we can install MySQL we need to disable UAC in Windows Vista.
Note: You can turn UAC back on after everything has been installed and working.
Now we can install MySQL. In this example I’m going to install MySQL Community Edition 5.0.45.
Note: It seems some versions other than 5.0.45 of MySQL silently errors out during installation. I’m not sure if this is a bug or not but Dustin has provided a great [14] fix in the comments.
Note: If you get a Connection Error, click Retry and it should work. This is caused by a slower computer not starting the MySQL service fast enough.
Now that you have MySQL installed and running lets install the GUI Tools to make managing databases easy.
Remember: Root’s password is the one you set when you installed MySQL.
Now that you have a working WIMP lets open it up to the world. All internet (HTTP) traffic passes through port 80. Let’s open port 80 to the world.
Because Windows Vista is not meant to be a server out of the box its priorities are backwards when it’s being used as a web server. Windows Vista prioritizes programs like Word before background services like IIS7 to give the end user the best experience possible. Since we’re configuring Windows Vista as a web server background services need to be Vistas priority instead of programs.
Let’s set Windows Vista’s services as a higher priority than programs to squeeze the most speed out of it as we can.
A web server with low to modest traffic doesn’t have to be a powerful machine to get the job done. Any modern PC with at least 1GBs of RAM (2GBs recommended for MySQL) will do fine. If you become one of the fortunate ones who receives enough traffic to need a high performance web server here are a few hardware tips.
Article printed from MAXIMUMpcguides Windows Vista: http://maximumpcguides.com/windows-vista
URL to article: http://maximumpcguides.com/windows-vista/how-to-create-a-windows-vista-iis7-mysql-php-web-server/
URLs in this post:
[1] WordPress: http://wordpress.org/
[2] PHPbb: http://www.phpbb.com/
[3] FileZilla FTP Server: http://filezilla-project.org/
[4] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server1.PNG
[5] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server2.PNG
[6] http://www.php.net/downloads.php: http://www.php.net/downloads.php
[7] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server3.PNG
[8] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server4.PNG
[9] http://dev.mysql.com/downloads/mysql/5.0.html#win32: http://dev.mysql.com/downloads/mysql/5.0.html#win32
[10] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server5.PNG
[11] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server6.PNG
[12] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server7.PNG
[13] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server8.PNG
[14] fix in the comments: #comment-1810
[15] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server9.PNG
[16] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server10.PNG
[17] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server11.PNG
[18] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server12.PNG
[19] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server13.PNG
[20] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server14.PNG
[21] http://dev.mysql.com/downloads/gui-tools/5.0.html: http://dev.mysql.com/downloads/gui-tools/5.0.html
[22] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server15.PNG
[23] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/wimp_server16.PNG
[24] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/open_port_80_1.PNG
[25] Image: http://www.maximumpcguides.com/wp-content/uploads/2007/09/open_port_80_2.PNG
Click here to print.
Copyright © 2008 MAXIMUMpcguides Windows Vista. All rights reserved.