Hi,

I am trying to set up a WAMP - Windows, Apache, MySQL, PHP combination environment on a Windows XP machine.
Apache and PHP together seem to be configured and working fine. MySQL works on its own.
I am able to create dbs, etc.. However I am not able to connect to the database from Apache through PHP.
I keep getting an error (undefined function mysql_connect()) message.
I think there is something wrong in one of the configurations that the libraries for MySQL are not being referenced.
Please help? Below are the details of what I have done so far:



1) Installed Apache

2) Installed PHP (php-5.2.3-Win32.zip)
a) copied all files to c:\php
b) moved c:\php\php5ts.dll to c:\windows\php5ts.dll
c) renamed the file c:\php\php.ini-dist to c:\php\php.ini

3) In c:\php\php.ini
a) doc_root = "c:\webs"
b) extension_dir = "c:\php\ext"

4) In C:\Program Files\Apache Group\Apache2\conf\httpd.conf
a) changed the DocumentRoot entry to: DocumentRoot "C:/webs"
b) changed the Directory entry to: "C:/webs"
c) after the Add Type lines under Media Types I added the lines:

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php .php5
Action application/x-httpd-php "/php/php-cgi.exe"
SetEnv PHPRC "C:/php"

d) changed the DirectoryIndex entry to: index.htm index.html index.php

5) Installed MySQL 5 (mysql-essential 5.0.41-win32.msi) to C:\Program Files\MySQL\MySQL Server 5.0

6) In c:\php\php.ini

a)uncommented extension=php_mysql.dll
b)uncommented extension=php_mysqli.dll
c)uncommented extension=php_pdo_mysql.dll

7) libmySQL.dll is located in C:\Program Files\MySQL\MySQL Server 5.0\bin and in C:\Program Files\Apache Group\Apache2\bin

8) php_mysql.dll and php_mysqli.dll are located in C:\PHP\ext

Please can someone help me with what may be happening? Thanks so much!