Page 2 of 2

Posted: Wed Nov 30, 2005 5:23 am
by Jenk
Skittlewidth wrote:
Jenk wrote:and if on Windows, copy the libmysql.dll and php_mysql.dll files into the C:\Windows\System32 directory, it will not work if they are anywhere else.
Not so, you just need to make sure you've correctly set your extension_dir e.g:

Code: Select all

extension_dir = "c:\PHP\ext"
I did this a few days ago after reformating my machine, following the recommended install instructions in the text file for the PHP5 binary.

Also changed Apache to load my ini file from the PHP folder which has made upgrading and maintanence so much easier now that everything is in one place. (I upgraded to 5.1.1 the following evening)

Only trouble I had was loading the mysql.dll funnily enough. Everytime I restarted apache2 it couldn't find the dll despite the path being correct.

After rebooting the computer it worked fine. I guess the dlls hadn't registered when I unzipped the PHP package or something. I never went near the System32 folder.
Yes so.

It's a well known bug that if the libmysql.dll and php_mysql.dll files are not in the Sys32 directory then PHP will fail to load them. I'd tried booting, manually registering and setting both the ext dir and the path env var, still no joy.

Might have been fixed in 5.1.x as I am on 5.0.8 iirc.

Posted: Wed Nov 30, 2005 5:51 am
by Skittlewidth
I had it working on 5.0.4 before upgrading. I'm *almost* certain that the dlls weren't in system32 then but will have to go check my pc when I get back from work. It was freshly formatted so there weren't any remnants from previous PHP installs.

I always used to put them in system32 with PHP4, and as you say that was just the way you had to do it, but I always used to use the windows installer so this is the first time I've used the zip package and actually read the whole install.txt file and seen that there was another way.

Posted: Wed Nov 30, 2005 8:37 am
by Jenk
rgr, might also "just be one of those things" that some people get, some don't. :)

Posted: Wed Nov 30, 2005 11:41 pm
by pleigh
ok i've had enough confusion here...can someone point me, or list here step-by-step configuration of php5 so i can access my database(mysql)...i tried every advise posted here but i'm not lucky enough to have it working...and it confuses me now... :oops: ...i also tried to read the intall teaxt from the binary files of php 5, but it made me more confused...any help will be greatly appreciated... :)

p.s. i really can't get it...why they removed the support for mysql like they did to php 4... :(

Posted: Thu Dec 01, 2005 3:59 am
by Jenk
Have you checked to see if an instance of the mysql server is running?

Posted: Thu Dec 01, 2005 4:03 am
by n00b Saibot
Jenk wrote:Have you checked to see if an instance of the mysql server is running?
Did you see the mighty [SOLVED] in the topic name :wink: