Difference between revisions of "WAMP Server Install"

Jump to navigation Jump to search
m
Formatting and Meta
m (Added WIMP link)
m (Formatting and Meta)
Line 1: Line 1:
'''Windows, Apache, MySQL and PHP ([http://www.wikipedia.org/wiki/WAMP WAMP]) install guide for a Windows 2008 64bit server.'''
'''Windows, Apache, MySQL and PHP ([http://www.wikipedia.org/wiki/WAMP WAMP]) install guide for a Windows 2008 64bit server.'''
For Windows, IIS, MySQL and PHP (WIMP) see http://blogs.iis.net/bills/archive/2006/09/19/How-to-install-PHP-on-IIS7-_2800_RC1_2900_.aspx
For Windows, IIS, MySQL and PHP (WIMP) see http://blogs.iis.net/bills/archive/2006/09/19/How-to-install-PHP-on-IIS7-_2800_RC1_2900_.aspx


Line 8: Line 9:
There are numerous [http://en.wikipedia.org/wiki/Comparison_of_WAMPs install bundles] that can supposedly do the job for you, they're always a little out of date, and [http://www.php.net/manual/en/install.windows.php none are endorsed by PHP].  I'm not saying don't consider them, but just do it in a well thought out way.
There are numerous [http://en.wikipedia.org/wiki/Comparison_of_WAMPs install bundles] that can supposedly do the job for you, they're always a little out of date, and [http://www.php.net/manual/en/install.windows.php none are endorsed by PHP].  I'm not saying don't consider them, but just do it in a well thought out way.


= Downloads =
== Downloads ==
The following are required to complete an installation.
The following are required to complete an installation.


== Apache ==
=== Apache ===
Don't download Apache from apache.org, these have not been compiled with the latest Microsoft Visual Studio compiler (VC10), and so do not have the improvements in stability and performance that that provide, and more importantly, are not compatible with the latest VC9 compiled PHP binaries (so will restrict you to older versions).
Don't download Apache from apache.org, these have not been compiled with the latest Microsoft Visual Studio compiler (VC10), and so do not have the improvements in stability and performance that that provide, and more importantly, are not compatible with the latest VC9 compiled PHP binaries (so will restrict you to older versions).


Line 24: Line 25:
** Rename <code> vcredist_x86.exe </code> to <code> vcredist_x86-2010.exe </code>
** Rename <code> vcredist_x86.exe </code> to <code> vcredist_x86-2010.exe </code>


== PHP ==
=== PHP ===
Download the latest thread-safe ZIP package from http://windows.php.net/download/
Download the latest thread-safe ZIP package from http://windows.php.net/download/
* '''PHP VC9 x86 Thread Safe'''
* '''PHP VC9 x86 Thread Safe'''
Line 33: Line 34:
** Rename <code> vcredist_x86.exe </code> to <code> vcredist_x86-2008.exe </code>
** Rename <code> vcredist_x86.exe </code> to <code> vcredist_x86-2008.exe </code>


== MySQL ==
=== MySQL ===
Download the compete package from http://www.mysql.com/downloads/installer/
Download the compete package from http://www.mysql.com/downloads/installer/
* '''MySQL Installer'''
* '''MySQL Installer'''
Line 41: Line 42:


Prerequisites which also need to be downloaded...
Prerequisites which also need to be downloaded...
* '''.NET Framework v4.0''', from http://go.microsoft.com/fwlink?LinkId=181012 (ignore any additional guff that Microsoft suggest you donwload).   
* '''.NET Framework v4.0''', from http://go.microsoft.com/fwlink?LinkId=181012 (ignore any additional guff that Microsoft suggest you download).   
** EG <code> dotNetFx40_Client_setup.exe </code>
** EG <code> dotNetFx40_Client_setup.exe </code>
** Note that this is just a downloader, it doesn't actually include .NET, if the machine you are installing to doesn't have internet access, download from here http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24872 instead, EG <code> dotNetFx40_Client_x86_x64.exe </code>
** Note that this is just a downloader, it doesn't actually include .NET, if the machine you are installing to doesn't have internet access, download from here http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=24872 instead, EG <code> dotNetFx40_Client_x86_x64.exe </code>


= Installation =
== Installation ==
If installing on a Virtual Machine, take a Snapshot 1st, and maybe even at regular intervals once you're happy each component is properly installed.
If installing on a Virtual Machine, take a Snapshot 1st, and maybe even at regular intervals once you're happy each component is properly installed.


This procedure assumes you already have a fully working Windows 2008 server, and will install software files to the C:\ drive, with data and website files being located on D:\.
This procedure assumes you already have a fully working Windows 2008 server, and will install software files to the C:\ drive, with data and website files being located on D:\.


== Pre-Requisite Components ==
=== Pre-Requisite Components ===
# Install Microsoft Visual C++ Redistributable Packages
# Install Microsoft Visual C++ Redistributable Packages
#* <code> vcredist_x86-2008.exe </code>
#* <code> vcredist_x86-2008.exe </code>
Line 59: Line 60:
# Perform a Windows Update to ensure all components are up to date
# Perform a Windows Update to ensure all components are up to date


== MySQL ==
=== MySQL ===
* <code> mysql-installer-5.5.23.0.msi </code>
* <code> mysql-installer-5.5.23.0.msi </code>
# Select '''Install MySQL Products''' and click '''Next'''
# Select '''Install MySQL Products''' and click '''Next'''
Line 88: Line 89:
## Assuming the service starts, delete <code>C:\ProgramData\MySQL\MySQL Server 5.5\data-old\</code>
## Assuming the service starts, delete <code>C:\ProgramData\MySQL\MySQL Server 5.5\data-old\</code>


== Apache ==
=== Apache ===
* <code> httpd-2.4.2-win32.zip </code>
* <code> httpd-2.4.2-win32.zip </code>
# Uncompress the file, and move the <code>Apache24</code> folder to <code>C:\Program Files (x86)\</code>
# Uncompress the file, and move the <code>Apache24</code> folder to <code>C:\Program Files (x86)\</code>
Line 104: Line 105:
# You should now be able to browse to the server (http://yourserver), and get a basic "It works!" page back, in case of errors, double check your config file, and check the Windows Application log
# You should now be able to browse to the server (http://yourserver), and get a basic "It works!" page back, in case of errors, double check your config file, and check the Windows Application log


== PHP ==
=== PHP ===
* <code> php-5.4.0-Win32-VC9-x86.zip </code>
* <code> php-5.4.0-Win32-VC9-x86.zip </code>
# Uncompress the file, move the resultant folder to <code> C:\Program Files (x86)\ </code>, and rename to <code>PHP</code>
# Uncompress the file, move the resultant folder to <code> C:\Program Files (x86)\ </code>, and rename to <code>PHP</code>
Line 119: Line 120:
# Restart the Apache, in case of errors, double check your config file, and check the Windows Application log
# Restart the Apache, in case of errors, double check your config file, and check the Windows Application log


= Testing and Troubleshooting =
== Testing and Troubleshooting ==
In order to test your install, you need 3 files in your <code>D:\Apache\htdocs</code> folder
In order to test your install, you need 3 files in your <code>D:\Apache\htdocs</code> folder
* '''<code>index.html</code>'''
* '''<code>index.html</code>'''

Navigation menu