Getting PEAR to work on XAMPP (Apache/MySQL stack on Windows)

后端 未结 8 1473
醉酒成梦
醉酒成梦 2020-11-30 06:24

I\'m trying to install Laconica, an open-source Microblogging application on my Windows development server using XAMPP as per the instructions provided.

The website c

相关标签:
8条回答
  • 2020-11-30 06:55

    Try adding the drive letter:

    include_path='.;c:\xampplite\php\pear\PEAR'
    

    also verify that PEAR.php is actually there, it might be in \php\ instead:

    include_path='.;c:\xampplite\php'
    
    0 讨论(0)
  • 2020-11-30 06:58

    I tried all of the other answers first but none of them seemed to work so I set the pear path statically in the pear config file

    C:\xampp\php\pear\Config.php

    find this code:

    if (!defined('PEAR_INSTALL_DIR') || !PEAR_INSTALL_DIR) {
        $PEAR_INSTALL_DIR = PHP_LIBDIR . DIRECTORY_SEPARATOR . 'pear';
    } 
    else {
        $PEAR_INSTALL_DIR = PEAR_INSTALL_DIR;
    }
    

    and just replace it with this:

    $PEAR_INSTALL_DIR = "C:\\xampp\\php\\pear";
    

    I restarted apache and used the command:

    pear config-all 
    

    make sure the all of the paths no longer start with C:\php\pear

    0 讨论(0)
提交回复
热议问题