Page 1 of 1

PEAR fix for portable XAMPP 1.8.1

PostPosted: 24. May 2013 23:26
by Wernight
PEAR is missing important enviroment variables:

Issue:
1. Run php/pear.bat
2. pear config-show
3. Note some folders like C:\php\

Solution:
1. Add to php/pear.bat:

Code: Select all
IF "%PHP_PEAR_DOC_DIR%"=="" SET "PHP_PEAR_DOC_DIR=\xampp\php\docs"
IF "%PHP_PEAR_CFG_DIR%"=="" SET "PHP_PEAR_CFG_DIR=\xampp\php\cfg"
IF "%PHP_PEAR_TEST_DIR%"=="" SET "PHP_PEAR_TEST_DIR=\xampp\php\tests"
IF "%PHP_PEAR_WWW_DIR%"=="" SET "PHP_PEAR_WWW_DIR=\xampp\php\www"

Re: PEAR fix for portable XAMPP 1.8.1

PostPosted: 25. May 2013 09:54
by Altrea
Hi Wernight,

Thanks for pointing that out. The XAMPP control panel has the choice of an own preconfigured shell which sets these and some other PEAR parameters and some include paths. Try it out :D

best wishes,
Altrea