Entry
PHP: v5: Database: MySql: Microsoft: Windows: How to install PHP v5 with MySql support?
Mar 22nd, 2005 09:07
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 22 March 2005 - 01:53 am ----------------------
PHP: v5: Database: MySql: Microsoft: Windows: How to install PHP v5
with MySql support?
---
Steps: Overview:
1. -Download PHP v5.0.3 zip file [7,433Kb] - 15 Dec 2004
at
http://www.php.net/get/php-5.0.3-Win32.zip/from/a/mirror
2. -Unpack it in e.g. the directory
c:\PHP
(so no installer .exe program should be run)
3. -Copy the file libmysql.dll to your c:\windows or c:\winnt
directory
(or make sure it can be found in your PATH environment variable)
1. Goto this c:\PHP directory
2. Copy libmysql.dll c:\windows
5. -Copy the file
c:\php\php.ini-recommended
in your PHP directory
as the new
php.ini
---
Note:
It is the best general solution to copy this php.ini
to your local PHP directory (that is where your php.exe or
php-cgi.exe file is located, e.g. 'c:\PHP' by default).
This because if you have say PHP 3, PHP 4 and PHP 5 installed on
your computer, they then all have their own php.ini in that case.
And should you keep your php.ini centrally in your c:\windows
directory, then all these different versions will usually try to
use that one php.ini (which is usually only optimized and usable
for only one version of PHP (e.g. PHP5) at once).
Thus possibly delete the central php.ini in your c:\windows
directory and keep a local php.ini in each of your PHP version
directories.
6. -Open this php.ini file in your favorite text editor, and remove
the ';' in front of the line
;extension=php_mysql.dll
1. Then save this php.ini file again
7. -If you now use mysql functions in php v5, they should work
as intended
---
---
Tested successfully on Microsoft Windows XP Professional, running
PHP v5.0.3
Apache v2
MySql v4.1
---
---
Internet: see also:
---
[Internet: source: http://www.google.com search for 'mysql php 5
install windows': http://nl2.php.net/mysql]
----------------------------------------------------------------------