Getting Pear to Work on Xampp (Apache/MySQL Stack on Windows)

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

You need to fix your include_path system variable to point to the correct location.

To fix it edit the php.ini file. In that file you will find a line that says, "include_path = ...". (You can find out what the location of php.ini by running phpinfo() on a page.) Fix the part of the line that says, "\xampplite\php\pear\PEAR" to read "C:\xampplite\php\pear". Make sure to leave the semi-colons before and/or after the line in place.

Restart PHP and you should be good to go. To restart PHP in IIS you can restart the application pool assigned to your site or, better yet, restart IIS all together.

Trouble with Pear in XAMPP

You cannot fix the pear.ini-in-c:\windows problem unfortunately.

A solution is to run the terminal as administrator, and run the pear install command in it.

If you want to modify the locations, use pear config-set key value.

Xampp - Incorrect PEAR data_dir setting

I fixed the issue by resetting phing parameters using the commands

pear config-set doc_dir C:\xampp\php\pear\docs
pear config-set cfg_dir C:\xampp\php\pear\cfg
pear config-set data_dir C:\xampp\php\pear\data
pear config-set cache_dir C:\xampp\php\pear\cache
pear config-set download_dir C:\xampp\php\pear\download
pear config-set temp_dir C:\xampp\php\pear\temp
pear config-set test_dir C:\xampp\php\pear\tests
pear config-set www_dir C:\xampp\php\pear\www

Then reinstalled phing by

pear install phing/phing

Now build is working fine.

Current directory (./) is not within PHP include path XAMMP

You need to fix your include_path in php.ini.

In that file you will find a line that says something similar to:

include_path = C:\xampp7\php\PEAR.

To fix change the line below

from

include_path=C:\xampp7\php\PEAR

to

include_path=".;C:\xampp7\php\PEAR"

Why won't PEAR work on my PHP Windows installation?

Based on your comments, it looks like your include_path is wrong. Go change your PHP.ini and set your include path to:

include_path = ".;C:\wamp\bin\php\php5.3.10\pear"


Related Topics



Leave a reply



Submit