Pear on Xampp Windows
Ever tried to install a pear library like MDB2_Driver_pgsql, only to find out that it refuses to download because the PGSQL extension is not enabled. So assuming XAMPP is installed in C:\Xampp, you hop over to C:\Xampp\Apache\bin\php.ini and enable it, switch back to C:\Xampp\php\ and go: pear install MDB2_Driver_pgsql.
Again it tells you, cannot download driver until pgsql is enabled! WTF. Look at the bloody php.ini file, it is enabled, apache was restarted, and heck, it even appears in phpinfo().
Take a deep breath and relax. Now go to C:\Xampp\php and open the php.ini file there. Enable the PGSQL extension and retry the pear install command.
Now you are probably thinking “This is not the php.ini file that Apache uses”. You are right, but it is the php.ini file that PEAR uses. {Roll your eyes}
BTW, if you sick of this issue and just want the flippin PEAR libraries, you could always do a force install.
pear install -f MDB2_Driver_pgsql

Francisco
This is the correct instalation
( in steps )
0.-
change directory to
( path xampp instalation ) \xampp\pear
1.- Execute
go-pear
2.- Execute
pear install MDB2
3.- ( For PostgreSQL ) Execute
pear install pear/MDB2#pgsql
and thats works.
I request excuses by my little English.
A greeting from Argentina
Francisco Labrune flabrune@365helpdesk.com
JSc
PHP normally has two php.ini files – the Apache-module one and the Command-Line (CLI) one.
If you are using the command-line interface to configure PEAR, PHP will of course run it under CLI mode.