Koozali.org: home of the SME Server

Installation kbpublisher

Offline riccge

  • **
  • 36
  • +0/-0
Installation kbpublisher
« on: February 09, 2007, 10:36:30 AM »
Hi,
did anyone try to install kbpublisher (http://kbpublisher.sourceforge.net/) on SME?
I've some problems during configuration of config.inc.php and index.php because i don't really understand php.
Thanks in advance,
Riccardo
......

Offline Ryan483

  • **
  • 28
  • +0/-0
    • http://rspencer.ath.cx
Installation kbpublisher
« Reply #1 on: February 09, 2007, 02:54:21 PM »
You probably need to create a mysql database and point the config.php to it. What part are you stuck on?

Offline riccge

  • **
  • 36
  • +0/-0
Installation kbpublisher
« Reply #2 on: February 09, 2007, 07:29:43 PM »
Warning: main(core/base/BaseApp.php): failed to open stream: No such file or directory in /home/e-smith/files/ibays/kb/html/admin/common.inc.php on line 21

Fatal error: main(): Failed opening required 'core/base/BaseApp.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear:/home/e-smith/files/ibays/Primary/html/admin/lib/:/home/e-smith/files/ibays/Primary/html/admin/lib/Pear') in /home/e-smith/files/ibays/kb/html/admin/common.inc.php on line 21

My config.inc.php:
/* PATHS */
// if you need write this manually, may required on windows or for cron jobs
//$_SERVER['DOCUMENT_ROOT'] = 'c:/Inetpub/wwwroot';
//$_SERVER['HTTP_HOST']     = 'domain.com'

// admin path
$conf['home_dir']         = '/kb/admin/';     // path to admin dir without DOCUMENT_ROOT

// client path
$conf['client_home_dir']  = '/kb/';           // path to kb dir without DOCUMENT_ROOT
$conf['fck_upload_dir']     = '/kb_upload/';    // where FCK editor place uploaded images (relative to DOCUMENT_ROOT)

My index.php:
// full path to admin directory
$app_dir = str_replace('\\', '/', getcwd()) . '/admin/';     // trying to guess
//$app_dir = $_SERVER['DOCUMENT_ROOT'] . '/kb/admin/';       // manually specify it

how do i configure DOCUMENT_ROOT path for SME?

Thank for your suggestion!
......

Offline Ryan483

  • **
  • 28
  • +0/-0
    • http://rspencer.ath.cx
Installation kbpublisher
« Reply #3 on: February 09, 2007, 08:10:23 PM »
Which line is 21?

Offline grattman

  • ****
  • 122
  • +0/-0
Installation kbpublisher
« Reply #4 on: February 09, 2007, 08:32:57 PM »
If you set kb to be your domain folder, then document root would more than likely be:

/home/e-smith/files/ibays/kb/html/

Regardless....for this application the document root for it would be the above if I am not mistaken.

Grattman
...

Offline riccge

  • **
  • 36
  • +0/-0
Installation kbpublisher
« Reply #5 on: February 10, 2007, 07:24:02 PM »
I've correct DOCUMENT_ROOT as suggested but now i've no errors only a blank page
......

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Installation kbpublisher
« Reply #6 on: February 10, 2007, 08:01:15 PM »
Quote from: "riccge"
I've correct DOCUMENT_ROOT as suggested but now i've no errors only a blank page
Try to analyze your logfiles:
/var/log/httpd/error_log and /var/log/httpd/access_log and perhaps also /var/log/messages.

Furthermore you should enable error logging and display errors on screen until you have succesfully finished installation.

This can be done like this:
Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/php.ini
cp /etc/e-smith/templates/etc/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini

After that:
Code: [Select]
cd /etc/e-smith/templates-custom/etc/php.ini
pico 30ErrorHandling

Modify the second line to read:
Code: [Select]
display_errors          = On
After that issue the following commands:
Code: [Select]
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart

Now access your page again and see what the error is.
If everything works you remove the 30ErrorHandling file from the /etc/e-smith/templates-custom/etc/php.ini folder and issue the last two lines again:
Code: [Select]
expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline riccge

  • **
  • 36
  • +0/-0
Installation kbpublisher
« Reply #7 on: March 16, 2007, 12:35:27 AM »
Really headache:

Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/e-smith/files/ibays/kbpublisher/) in /home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear/HTML/BBCodeParser.php on line 85

Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear/HTML/BBCodeParser.php on line 85

Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear:/home/e-smith/files/ibays/kbpublisher/html/admin/lib/:/home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear') in /home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear/HTML/BBCodeParser.php on line 85
......

Offline riccge

  • **
  • 36
  • +0/-0
Installation kbpublisher
« Reply #8 on: March 16, 2007, 07:23:59 PM »
...and finally Knowledge Base is working!!
......

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Installation kbpublisher
« Reply #9 on: March 16, 2007, 10:40:03 PM »
Hi riccge,

I get the same message:

Quote
Warning: main(): open_basedir restriction in effect. File(/usr/share/pear/PEAR.php) is not within the allowed path(s): (/home/e-smith/files/ibays/kbpublisher/) in /home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear/HTML/BBCodeParser.php on line 85

Warning: main(PEAR.php): failed to open stream: Operation not permitted in /home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear/HTML/BBCodeParser.php on line 85

Fatal error: main(): Failed opening required 'PEAR.php' (include_path='.:/usr/share/pear-addons:/usr/share/pear:/home/e-smith/files/ibays/kbpublisher/html/admin/lib/:/home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear') in /home/e-smith/files/ibays/kbpublisher/html/admin/lib/Pear/HTML/BBCodeParser.php on line 85


How did you solve that?
Rien
(The Netherlands)......

Offline Rien

  • *
  • 216
  • +0/-0
    • http://www.taurix.nl
Installation kbpublisher
« Reply #10 on: March 17, 2007, 12:44:17 PM »
I found the answer:

in file knowledgebase/admin/config.inc.php
find and comment line  
$include_path[] = ini_get('include_path');
Rien
(The Netherlands)......

Offline riccge

  • **
  • 36
  • +0/-0
Installation kbpublisher
« Reply #11 on: March 17, 2007, 01:49:22 PM »
Quote from: "Rien"
I found the answer:

in file knowledgebase/admin/config.inc.php
find and comment line  
$include_path[] = ini_get('include_path');


I solved in another way:

db accounts setprop kbpublisher PHPBaseDir /home/e-smith/files/ibays/kbpublisher:/usr/share/pear:/usr/share/pear-addons
......