PEAR on Windows: How to change pear.ini location

前端 未结 5 1493
闹比i
闹比i 2021-02-07 00:44

I am trying to install a PEAR package into my recent XAMPP PHP installation (PHP 5.3.1) on Windows 7 64-bit.

Installing new packages fails because PEAR tries to access <

5条回答
  •  温柔的废话
    2021-02-07 01:08

    To change the path from c:\windows\pear.ini to c:\path_to_xampp\php\pear.ini you can download this file at http://pear.php.net/go-pear.phar and place it in your c:\path_to_xampp\php folder. Run:

    php go-pear.phar

    Change the location of your pear.ini (11) to c:\path_to_xampp\php ($prefix\pear.ini). Save and run the new file c:\path_to_xampp\php\PEAR_ENV.reg. Log out of Windows and run (in c:\path_to_xampp\php)

    pear config-show

    Now you can see that the path has been updated :)

提交回复
热议问题