extension_dir doesn't change even php.ini is edited

liunx

Guest
Hi everyone.

Here are my specs

Apache 2
PHP 5.1.2

I knw that php5 doesnt have the mysql lib addded into it so i copied the whole ext folder to c:\php
so now the extension folder is c:\php\ext
And i set the extension_dir value to that.
But when i do a phpinfo() and execute it
It says c:\php5
i tried changing extension_dir value but that c:\php5 stays the same

I need to load the php_mysql.dll extension but it doesn't work because of this.
Php 4 worked perfectly and i could see the MySQL module when phpinfo() was executed..

I tried searching for a solution for this problem on the web and coudn't get an answer..I used the php msi installer to install php..

Please help me..

thanks a lot! :)when you change anything in php.ini you have to restart Apache, so be sure you did that.i did that..but the value still stay as c:\php5
I edited the ini file which resides inside windows folder..so it is the correct one..if i dont get this right then i have install php4. :(In phpinfo(), what does it say the configuration file path is?Configuration File (php.ini) Path C:\WINDOWS

Trust me dude i checked everything..and now in the process of having the older one installed..
Very strange. :(nnow i installed php4 and i can now see the MySQL module when phpinfo() is called..and the changes made to the extension_dir in the ini file is reflected in phpinfo()...

Am i the only one having this problem or sommeone else has got it..Next step im going to do is follow the upgrading documentation done by php.net and upgrade the php4 to php5. Wish me luck..!

And another problem.. when i try to connect to mySQL db. it says.. cannot connect to it!. very strange.. I jst wrote a small script to test it..but everytime i do run it it gives me the falue condition message... i provided the correct credentials.

it would be nice if anyone could help me out.. I just found the beuty of php-mysql and want ot try it!

cheersAt last eureka! got everything to work! i followed this <!-- m --><a class="postlink" href="http://www.ricocheting.com/server/php.html">http://www.ricocheting.com/server/php.html</a><!-- m -->

But prior to that i uninstall php, mysql, and apache. also i removed the folders inside program files and also inside application data related to the apps.. which are resided inside documents & settings -> your username -> application data and also at favorites(links) application data.. in favorties the application data folder is hidden so u may wana turn on the show hidden folders in folder options at control panel.

U MUST delete the apache folder from program files and the application data prior to doing anything or else you will get the problems i've got! which drived me nuts for two days..it seems some older versions of different software were conflicting with each other..

Also please remove libmysql.dll and php.ini files from the windows dir or system32 dir prior to installation.. hope this helps u guys who are having the same problem
 
Back
Top