You are on page 1of 2

Configuration of WAMP

[apache 2.2.4, mysql_essential 5.0.37, php 5.2.1]

Edit Apache httpd configuration file

LoadModule php5_module ‘c:/php/php5apache2_2.dll’

AddType application/x-httpd-php .php

PHPIniDir ‘c:/php/ ‘

[make sure php is in system path]

Unzip php to c:/php

Rename php.ini-recommended file to php.ini

Edit php.ini
doc_root = ‘$apache_dir\htdocs’

extension_dir = ‘c:/php/ext’

dispay_errors = on

uncomment ‘ ;extension = php_mysql.dll’ [remove the ; in front]

[make sure mysql is in system path]

Copy c:\php\ext\php_mysql.dll to c:\windows

Copy c:\php\libmysql.dll to c:\windows

Copy php.ini & php5ts.dll to c:\windows

Restart Apache

Adding php & mysql to system path

• Right-click My Computer

• Click on Properties

• Choose Advanced tab

• Click on Environment variables

• Under system variables, choose path and click on edit

• At the end of the variable value, which looks like this …\system32\wbem ; add path of php and
click the OK button

• Restart your computer

NB : When installing mysql, enable the option to include mysql in system path

$apache_dir = C:\Program Files\Apache Software Foundation\Apache2.2 [or the path apache can be
found on, on your computer]