Pear on Xampp Windows

Posted on the July 22nd, 2006 under Uncategorized by Tohir

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



2 Responses to 'Pear on Xampp Windows'

  1. June 24, 2007 at 12:39 pm
    Francisco
  2. August 21, 2007 at 9:31 am
    JSc

Leave a Reply




XHTML::
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>