How do I install MySQL modules within PHP? Also if php is running as a module within apache you will need to restart the apache server to pickup the changes. Hi Scott, Did you install cURL on your server? How difficult was it? Did you have to compile PHP after?

Below is a list of drivers that may be suitable for your device. Why do i see many drivers? With the different devices, they can have the same driver, it's because they all use the same chip manufacturer. Network controller driver for hp 250. If you are looking for an update, pickup the latest one. How to select driver?

Active10 years, 11 months ago

I've updated php.ini and moved php_mysql.dll as explained in steps 6 and 8 here.

I get this error…

MySQL doesn't show up in my phpinfo; report.

I've updated the c:Windowsphp.ini file from

to

Result: no change.

Mysql

I changed the php.ini value of extension_dir thusly:

Result: much more in the phpinfo; report, but MySQL still isn't working.

I copied the file libmysql.dll from folder C:php to folders C:WindowsSystem32 and C:Windows

Result: no change.

I stopped and restarted IIS.

Result: new, different errors instead!

I found several .php files in the website where I had to set variables:

Result: The site works!

Community
Zack PetersonZack Peterson
31.9k76 gold badges196 silver badges278 bronze badges

4 Answers

As the others say these two values in php.ini are crucial.

I have the following in my php.ini: note the trailing slash - not sure if it is needed - but it does work.

Also it is worth ensuring that you only have one copy of php.ini on your machine - I've had problems with this where I've been editting a php.ini file which php isn't using and getting very frustrated until I realised.

Also if php is running as a module within apache you will need to restart the apache server to pickup the changes. Wise to do this in anycase if you're not sure.

a 'php -m' from the cmd prompt will show you the modules that are loaded from the ini file.

Richard HarrisonRichard Harrison
17.9k3 gold badges34 silver badges63 bronze badges

In the php.ini file, check if the extention path configuration is valid.

vIceBergvIceBerg
2,6045 gold badges34 silver badges51 bronze badges

You will need to enable the extension=php_mysql.dll option in the php.ini as well. Also, make sure that the file is in the extension_dir you set.

You can read more about it at:

Harrison FiskHarrison FiskPhp curl install
6,3803 gold badges20 silver badges14 bronze badges

On a completely different note, might I suggest WampServer? It should get you up and running with a Apache/PHP/MySQL install in no time.

You could even compare the WampServer config files with your own to see where you originally went wrong.

Mysql Module Php

leekleek

Php

7,3557 gold badges38 silver badges59 bronze badges

Php Windows Apache

Not the answer you're looking for? Browse other questions tagged phpmysqlwindows or ask your own question.