Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: riccge 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
-
You probably need to create a mysql database and point the config.php to it. What part are you stuck on?
-
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!
-
Which line is 21?
-
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
-
I've correct DOCUMENT_ROOT as suggested but now i've no errors only a blank page
-
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: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:
cd /etc/e-smith/templates-custom/etc/php.ini
pico 30ErrorHandling
Modify the second line to read:display_errors = On
After that issue the following commands:
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:expand-template /etc/php.ini
/etc/rc7.d/S86httpd-e-smith restart
-
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
-
...and finally Knowledge Base is working!!
-
Hi riccge,
I get the same message:
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?
-
I found the answer:
in file knowledgebase/admin/config.inc.php
find and comment line
$include_path[] = ini_get('include_path');
-
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