PDA

View Full Version : apache - php 5 mysql connectivity problems



ExpertWebHost
November 3rd, 2006, 06:54
hi

earlier i used to use php 4.3 with apache 2.0 (Mysql 4.1) server on my WinME box. yesterday my friend provided me php 5 and i wanted to experiment with it.

I installed php 5 (just extracted the zip file to a folder) and modified httpd.conf file to work with php 5.

Now php 5 is working fine with apache(<?php phpinfo(); ?> works fine)
. but none of the scripts using mysql are connecting. I did not change anything with mysql.

is there any additional configuration reqd for php 5 with apache 2(on windows) to correctly connect to mysql?

thanks for your time.

bp.

krakjoe
November 3rd, 2006, 07:21
take a screen shot of phpinfo where it tells you about mysql extensions....

ExpertWebHost
November 3rd, 2006, 08:39
ok.

here (http://www.proxylist4all.info/phpinfo/phpinfo.htm)is the complete phpinfo o/p dump file..

pl. suggest me what is wrong..

bp.

krakjoe
November 3rd, 2006, 08:54
mysql extensions aren't compiled, you need to compile them, or download the correct version of php5....

ExpertWebHost
November 3rd, 2006, 09:24
Ah. actually all the compiled binaries were already there..

here is what was missing in php.ini file..


; Directory in which the loadable extensions (modules) reside.
extension_dir = "D:\Program Files\php50\ext"

by default extension directory was set to ./ only.

everything is fine now.

thanks joe and have a great day.

bp.

krakjoe
November 3rd, 2006, 09:29
I didn't think of that..... have fun ....

Fried
November 3rd, 2006, 11:59
It's not healthy to run a public server on a winME PC.

ExpertWebHost
November 3rd, 2006, 22:50
I can't even dream of running a public server on my ME box. thats too with my dialup connection!

its just for my personal use.

bp.