Configuration WAMP

De FrozenWiki
Aller à la navigation Aller à la recherche

1. Install Apache (2.0.x)

  • Download from : http://httpd.apache.org/
  • Execute : apache_?.?.??-win32-x86-no_ssl.msi
  • Choose to install only for the current user, on port 8080
  • Choose a Custom install
  • Remove Build headers and libraries
  • Remove APR iconv code pages
  • Perform the Install
  • Kill the Apache Monitor that was launched in system tray
  • Remove the Apache Monitor from the Startup items (Start menu >> Programs >> Startup)

2. Install PHP (4.4.x)

  • Download from : http://www.php.net/
  • Unzip the contents of : php-?.?.??-Win32.zip into a subdirectory of the apache installation (C:\Program Files\Apache Group\Apache2\php-?.?.?)
  • Edit httpd.conf in the Apache installation and add:
LoadModule php4_module 	"c:/progra~1/apache~1/apache2/php-?.?.?/sapi/php4apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/progra~1/apache~1/apache2/php-?.?.?"
  • In httpd.conf, add index.php at the end of the line : DirectoryIndex index.html index.html.var
  • Copy the php.ini-dist into php.ini in the root directory of the PHP install
  • Copy the php4ts.dll from the root directory of the PHP install to the bin directory of the Apache install
  • Edit php.ini and add the following lines:
include_path = ".;c:\progra~1\apache~1\apache2\php-?.?.?\includes"
extension_dir = "c:\progra~1\apache~1\apache2\php-?.?.?\extensions"
  • Activate some extensions :
extension=php_gd2.dll
extension=php_zip.dll
  • Create a default C:\Program Files\Apache Group\Apache2\htdocs\phpinfo.php with the following contents:
<? phpinfo(); ?>

2.bis Install PHP (5.0.x)

  • Download from : http://www.php.net/
  • Also download the PECL package
  • Unzip the contents of : php-?.?.??-Win32.zip into a subdirectory of the apache installation (C:\Program Files\Apache Group\Apache2\php-?.?.?)
  • Unzip the contents of : pecl-?.?.??-Win32.zip into the ext subdirectory of the PHP installation (C:\Program Files\Apache Group\Apache2\php-?.?.?\ext)
  • Edit httpd.conf in the Apache installation and add:
LoadModule php5_module 	"c:/progra~1/apache~1/apache2/php-?.?.?/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/progra~1/apache~1/apache2/php-?.?.?"
  • In httpd.conf, add "index.php" at the end of the line : DirectoryIndex index.html index.html.var
  • Copy the php.ini-dist into php.ini in the root directory of the PHP install
  • Copy the php5ts.dll from the root directory of the PHP install to the bin directory of the Apache install
  • Copy the libmysql.dll from the root directory of the PHP install to the bin directory of the Apache install
  • Edit php.ini and add the following lines:
include_path = ".;c:\progra~1\apache~1\apache2\php-?.?.?\includes"
extension_dir = "c:\progra~1\apache~1\apache2\php-?.?.?\ext"
  • Activate some extensions :
extension=php_gd2.dll
extension=php_mysql.dll
extension=php_zip.dll
  • Create a default C:\Program Files\Apache Group\Apache2\htdocs\phpinfo.php with the following contents:
<? phpinfo(); ?>

3. Install MySQL (4.1.x)

  • Download from : http://www.mysql.com/
  • Execute the setup.exe from within the ZIP file
  • Choose a Typical Install
  • Select Skip sign-up
  • Select Configure the MySQL server now
  • Choose Detailed Configuration
  • Select Developer Machine
  • Select Multifunctional Database
  • Store on a drive where you have some space
  • Choose Decision Support (DSS)/OLAP
  • Enable TCP/IP Networking
  • Choose Best Support for Multilingualism
  • Keep the Install as a Windows Service selected
  • Uncheck the Launch the MySQL Server automatically checkbox
  • Uncheck the Include Bin directory in Windows PATH checkbox
  • Set the root password
  • Launch MySQL through the Windows service control tool

4. Install PHPMyAdmin (2.6.x)

  • Download from : http://www.phpmyadmin.net/
  • Unzip the package to C:\Program Files\Apache Group\Apache2\htdocs
  • set the following line in the config.inc.php file:
$cfg['Servers'][$i]['auth_type']     = 'http';

5. Install GraphicsMagick (1.1.x Qx)

6. Security Check/Testing