I’ve finally finished setting up a PEAR Channel for UNL using Chiara_PEAR_Server.
http://pear.unl.edu/
The process is quite complex, at least with the current state of things. Greg Beaver has built a sample PEAR Server installable using PEAR.
The simple way to set up a PEAR Server using available packages should be:
sudo pear channel-discover pear.chiaraquartet.net
sudo pear install -f –alldeps chiara/Chiara_PEAR_Server
sudo pear run-scripts chiara/Chiara_PEAR_Server
Then answer all the questions and it should create the Database, Tables, Admin user login, and write out a file to your document root.
In fact there is a ‘Tutorial’ out there by Tobias Schlitt that basically states exactly that. But I had some trouble along the way.
Changes:
360d359
< return false;
361a361
> return $a;
381c381
< if (!$this->lastversion) {
---
> //if (!$this->lastversion) {
400c400,401
< $dbo->channel = $answers['name'];
---
> $dbo->channel = $this->channel;
404c405
< $dbo->channel = $answers['name'];
---
> $dbo->channel = $this->channel;
412c413
< }
---
> //}
417a419
> /*
420a423
> */
616,617c619,620
< $phpdir = str_replace('\\', '/', 'C:\php5\pear');
< $datadir = str_replace('\\', '/', 'C:\php5\pear\data');
---
> $phpdir = str_replace('\\', '/', '/usr/local/php5/lib/php');
> $datadir = str_replace('\\', '/', '/usr/local/php5/lib/php/data');
With those fixes, I was finally able to get Chiara_PEAR_Server working.