KBPublisher Install

From GWAVA Technologies Training
Revision as of 20:18, 29 May 2015 by Stephanf (Talk | contribs)

Jump to: navigation, search

currently using 2.0.1

Contents

Install notes

Notes for installing kbpublisher as I try to upgrade the editor:

Get the installer from sourceforge [1]

Get CKEditor the improved FKEditor [2]

This howto [3] might be handy.

mysql

Install from YaST for now.

apache

Install apache2 and php5 package via YaST

rcapache2 start|stop|status

create index.html file in “/srv/www/htdocs”

<HTML>
<BODY>
HTML Working!
</BODY>
</HTML>

Make sure that php is installed and the module is toggled on in YaST

php

enable php [4] In case the browser wants to save your php files instead of displaying the content, you should enable php support in the /etc/apache2/mod_userdir.conf file. Add the following line to it, just after the <Directory /home/*/public_html> line and restart the server.

Include /etc/apache2/conf.d/php5.conf

Add the following line to /etc/apache2/sysconfig.d/loadmodule.conf [5]

LoadModule php5_module /usr/lib/apache2/mod_php5.so

Create /etc/apache2/conf.d/php5.conf

<IfModule mod_php5.c>
       AddHandler application/x-httpd-php .php4
       AddHandler application/x-httpd-php .php5
       AddHandler application/x-httpd-php .php
       AddHandler application/x-httpd-php-source .php4s
       AddHandler application/x-httpd-php-source .php5s
       AddHandler application/x-httpd-php-source .phps
       DirectoryIndex index.php4
       DirectoryIndex index.php5
       DirectoryIndex index.php
</IfModule>

test php

test php (info.php) which will post info about the php version installed.

<?php
 phpinfo();
?>

Install MySQL for SLES11 64-bit

notes gleaned from previous attempt

got the vm OS up now to figure out how to install kbp: Installation Steps:

1. Unpack distribution package

2. Place it somewhere in your web-server's document root,

  preferably(recommended) the parent directory of your root web directory.
   
  Create directory to store attachments files
  We recommend to name it kb_file and place it somewhere outside
  your document root directory. It should not be accessible via http (web browser)
  
  The structure of directories should look like this:
     
  - kb_file                (for uploads via "Files" module)
  - public_html            (document root)
    |- kb
    |- kb_upload           (for uploads via FCK Editor)        
     
  

3. Create an empty MySQL database to be used by KnowledgebasePublisher

3. Create tables using db dump file at kb/install/db_install.sql

  To upgrade:
    Use DB dump file kb/install/db_upgrade_[version].sql
    Read instructions in file.
    Do not forget to backup old DB.
  

5. Configure your "kb/admin/config.inc.php" configuration file

6. Configure your "kb/index.php" and "kb/rss.php" files if required

  Normaly it should work without modifications.

7. Give your "kb/admin/cache", "kb_upload" and "kb_file" directory full write permissions.

  In unix you can type "chmod 777 cache". On Windows you must go through
  your webserver to give it write permissions

8. You're done. End user screen will be available at www.your_site.com/kb/

  Admin area will be available at www.your_site.com/kb/admin/
  Login: admin
  Password: demo
  DO NOT FORGET TO CHANGE IT!
  

9. Go to "Settings" tab to configure settings

  Make sure you set correct email address at Setting -> Email
  

10. Read FAQ file

11. Enjoy

--- 1 had to unzip the package to get to the instructions

2a. need to install http server/apache2 go into yast to do that, mount the os install disk, enable php5

ah useful list
Document root: “/srv/www/htdocs”
directory:     “/srv/www/htdocs”
alias         “/icons/”, “/usr/share/apache2/icons/”
directory:     “/usr/share/apache2/icons”
ScriptAlias:    /cgi-bin/ “srv/www/cgi-bin/”
Directory    “srv/www/cgi-bin”
mod_userdir.c
Include        /etc/apache2/conf.d/*.conf
include        /etc/apache2/conf.d/apache2-manual?conf
Server Name    kbptest
Server Admin main    root@kbptest
no virtual hosts

Start Apache2 Server when booting

2b. moving kbp_204 to /srv/www/htdocs/kbp_204

2c. creating /srv/www/kb_file

2d. creating /srv/www/htdocs/kb_upload

3a. download Mysql 5.5 since that is what we use for Retain

3b install the rpms for server and client

3c set the password: /usr/bin/mysqladmin -u root password ‘gwava’

3d set datadir: mysql_install_db --datadir=/srv/www/htdocs/kbp_204

3e: log into mysql: mysql -u root -p

3f: create database: CREATE DATABASE kbp DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_bin’;

3g: create kbp mysql user:

GRANT ALL PRIVILEGES ON kbp.* TO 'kbpadmin'@'%' IDENTIFIED BY 'gwava';
GRANT ALL PRIVILEGES ON kbp.* TO 'kbpadmin'@'localhost' IDENTIFIED BY 'gwava';

4a: load dump file: mysql -h hostname -u user --password=password databasename < filename

go to /srv/www/htdocs/kbp_204/kbp_204/install_upgrade and load db_install.sql
mysql -h hostname -u user --password=password kbp< db_install.sql
go into mysql: 
use kbp;
show tables;
make sure there are new tables there.

5. edit "kb/admin/config.inc.php"

makes changes to match with above, (the docs could be so much better)
assuming htdocs/ is document root. only mostly sure about that. 
adding kb_extras/

6. skipping for now

7. chmoding all those places

8: localhost/kb/ = object not found.

sigh
needs php, won’t load. 
reverting snapshot
installing apache2 with php5, perl and python, probably only need php5 but let’s not play with that right now. 


back to kbp

starting over, I just need to get it to work.

https://www.howtoforge.com/installing-apache2-with-php5-and-mysql-support-onopensuse-12.3-lamp

php5 needs mysql first

but first I need to add a repository

http://download.opensuse.org/repositories/server:/php/SLE_11/

mysql> show tables;

-

Why won’t php work?
out of time, rebuild tomorrow.

- Spinning up another VM for kbp with a different version of SLES 11.2 with the most recent date. Hopefully that will work better. kbp just seems to need LAMP, but PHP needs to work then I can get MySQL installed. - a simple html page: (index.html) <HTML> <HEAD> <TITLE>Your Title Here</TITLE> </HEAD> <BODY BGCOLOR="FFFFFF">

<IMG SRC="clouds.jpg" ALIGN="BOTTOM">

<a href="http://somegreatsite.com">Link Name</a> is a link to another nifty site

This is a Header

This is a Medium Header

Send me mail at <a href="mailto:support@yourcompany.com"> support@yourcompany.com</a>.

This is a new paragraph! <P> This is a new paragraph!
This is a new sentence without a paragraph break, in bold italics.


</BODY> </HTML> - Even simpler: (index.html) <HTML> <BODY> Working! </BODY> </HTML> - for testing php (index.html) <html> <head> <title>PHP Test</title> </head> <body> <?php phpinfo(); ?> </body> </html> - just php (info.php) which will post info about the php version installed. <?php

phpinfo();

?> - kbp prerequisites are Apache/PHP and MySQL, So before installing vmtools install php since the disk is in place.

-

Personal tools
Namespaces

Variants
Actions
Home
Exchange
GroupWise
JAVA
Linux
MTK
Retain
GW Monitoring and Reporting (Redline)
GW Disaster Recovery (Reload)
GW Forensics (Reveal)
GWAVA
Secure Messaging Gateway
GW Mailbox Management (Vertigo)
Windows
Other
User Experience
Toolbox
Languages
Toolbox