From: Carsten K. <car...@ma...> - 2001-12-18 23:38:27
|
Sorry, I made a mistake in my previous instructions. The *correct* way to add a path in the php.ini file follows: include_path = ".:/usr/local/whatever/share/php"; (No changes to the rest of the instructions.) I also fixed my instructions which Adam added to the Wiki FAQ. <http://phpwiki.sourceforge.net/phpwiki/FrequentlyAskedQuestions> Carsten On Tuesday, December 18, 2001, at 04:28 pm, Carsten Klapp wrote: > > Hi Tara, > > Yes this happened to me too, Jeff explained the problem as written in > index.php. This error indicates PHPWiki can't find its PEAR libraries. > > (I added a couple lines specifically mentioning this error to index.php. > Probably it should go in the docs too.) > > 1. Do a search for PEAR.php to find out where it is. On unix-ish systems > this would be: > locate PEAR.php > 2. Add the path to this file into index.php, something like: > ini_set('include_path', '.:/usr/local/whatever/share/php'); > 2. Alternatively you can edit the php.ini (probably at /usr/local/lib/php. > ini) file and add the path in there (if you have root access to the > server) > . The advantage of this is that php will be able to find it's PEAR > libraries even for other non-wiki php software: > ini_set('include_path', '.:/usr/local/whatever/share/php'); > > PhpWiki already searches a number of common directories for the PEAR > libraries, so I'd like to see what directory yours was installed into. > > Carsten |