PEAR fix for portable XAMPP 1.8.1

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PEAR fix for portable XAMPP 1.8.1

Postby Wernight » 24. May 2013 23:26

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"
User avatar
Wernight
 
Posts: 6
Joined: 18. June 2007 14:23
Location: France/Hong Kong
Operating System: Windows 7 x64

Re: PEAR fix for portable XAMPP 1.8.1

Postby Altrea » 25. May 2013 09:54

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
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 76 guests