Web Hosting Talk







View Full Version : Adding, mysql support to a php install


techwebhosting
07-08-2006, 06:25 PM
Hey, I just got done installing php 5.1 on an IIS 6.0 server, and I need help installing, mysql drivers so that I can use mysql for forums. Thats basicly what this server is for, but can someone enlighten me on how to do so.

emevas1977
07-08-2006, 07:54 PM
doing a quick search for "installing mysql on iis 6" will bring up a ton of sites. The only advice i can give is be patient... it took me a couple hours to get it installed on a iis 6 server, it is all about where you place the driver. I am not sure how i eventually got it working, but it is def where you place the driver.

sorry if this was not much help

Burhan
07-09-2006, 01:19 AM
First thing you do, is uncomment the extension in your php.ini file. By uncomment, I mean remove the ; that is at the extension= line for either mysql or mysqli depending on which version of MySQL you are using.

Then, make sure that extension_dir directive in php.ini is pointing to the extensions directory (usually ext). You will have this directory if you downloaded the zip archive, but not if you downloaded the self-install executable.

You may also have to move some .dll files to the windows system directory, but this only after the first two steps do not work.

UK-Networks
07-10-2006, 02:04 AM
You do not need to move .dll's to your windows dir, this is generally bad practice in a production environment. What you should do is add "C:\php;" at the start of your System Path variable.

Also in php.ini you need to uncomment
extension = mysql.dll
and then add the line

extension = mysqli.dll


Rgds,
Chris