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

Question :

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

Answer :

I’m trying to install , an open-source Microblogging application on my Windows development server using XAMPP as per the

The website cannot find PEAR, and throws the below errors:

Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file or directory in C:xampplitehtdocslaconicalibcommon.php on line 31

Fatal error: require_once() [function.require]: Failed opening required ‘PEAR.php’ (include_path=’.;xampplitephppearPEAR’) in C:xampplitehtdocslaconicalibcommon.php on line 31

  1. PEAR is located in C:xampplitephppear
  2. phpinfo() shows me that the include path is .;xampplitephppear

What am I doing wrong? Why isn’t the PEAR folder being included?

Read More  Calling Table-Valued SQL Functions From .NET

,

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, “xampplitephppearPEAR” to read “C:xampplitephppear“. 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.

Read More  How to create a non-interactive window in MFC

That’s the answer Getting PEAR to work on XAMPP (Apache/MySQL stack on Windows), Hope this helps those looking for an answer. Then we suggest to do a search for the next question and find the answer only on our site.

Disclaimer :

The answers provided above are only to be used to guide the learning process. The questions above are open-ended questions, meaning that many answers are not fixed as above. I hope this article can be useful, Thank you