I have a plugin that requires the PEAR Package “HTTP/HTTP_Request2”. How do I go about installing PEAR Packages for use in a local site?
Warning : require_once(HTTP/Request2.php): Failed to open stream: No such file or directory in /Users/steve/LocalSites/mydev/app/public/wp-content/plugins/dcpMyPlugin/includes/dcpMyPlugin.mimeoClasses.php on line 16
First - I placed a copy of my PEAR directory, including the Packages I need (copied from my production server) in the localwp site at ~sitedir/conf/php/pear, then modified the ~sitedir/conf/php/php.ini.hbs file to add the pear directory to the include_path: .:/usr/share/php:/Users/jdonovan/LocalSites/~sitedir/conf/php/pear
This provided access to the PEAR Packages I need and resolved the problem.