Koozali.org: home of the SME Server

Has anyone setup owl or knowledge tree on sme

lmarkjoseph

Has anyone setup owl or knowledge tree on sme
« on: August 30, 2004, 11:05:18 AM »
Hi,
I am having trouble uploading files to the Documents dir. I can modify the test file, and add url's. I can create new dirs but get the following error when uploading

DEBUG: Upload error
/home/e-smith/files/ibays/owl/html/Documents/serse.rtf

Thanks
Mark

CKConsulting

Has anyone setup owl or knowledge tree on sme
« Reply #1 on: August 30, 2004, 04:44:36 PM »
Check out Sorceforge, there are several post on your issue.the

I have it running so let me know if you can't get it running after you look at the post.


Below is my post from SourceForge
Rick
Rick@CK-Consulting.net

http://sourceforge.net/forum/message.php?msg_id=2686857

-------------------------------------------------
If anyone would like to edit these please do, these are just my notes. I'm new to Linux and I know I have some rights issues as I had to give everyone full control over the Documents dir to get it to work. chmod -R 777 Documents

Build an SME 6.0.1-01 server
Open /server-manager
Remote access
Set “Secure Shell Settings” to “Allow access only from local networks”
Allow Administrative command line...YES
Create Ibay OWL
Delete index.html from ibay
Copy contents of OWL to the new IBAY/html
Set MySql password
# mysqladmin password pass
Create data base
cd /home/e-smith/files/ibays/owl/html/DOCS/sql
mysqladmin -p create intranet
mysql -p intranet < mysql-tables.sql
Edit /html/admin/owl.php
$default->owl_root_url = "/owl";
$default->owl_fs_root = "/home/e-smith/files/ibays/owl/html";
$default->owl_FileDir = "/home/e-smith/files/ibays/owl/html";
$default->owl_db_pass = "zoom";
$default->debug = true;
$default->admin_login_to_browse_page = true;

Set Permissions
cd /cd /home/e-smith/files/ibays/owl/html
mkdir Documents
cd /home/e-smith/files/ibays/owl
chmod -R 775 html
chown -R root.root html
cd html
chown -R nobody.nobody Documents
chmod -R 777 Documents
Edit /etc/httpd/conf/httpd.conf
From:

< Directory /home/e-smith/files/ibays/owl/html>
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
php_admin_value open_basedir /home/e-smith/files/ibays/owl
</Directory>

To:

<Directory /home/e-smith/files/ibays/owl/html>
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
</Directory>




Rick
Rick@CK-Consulting.nethttp://

lmarkjoseph

Has anyone setup owl or knowledge tree on sme
« Reply #2 on: August 31, 2004, 10:55:56 AM »
Hi Rick,
Had a look at your info. I have already done all that. Still not able to upload file. Also I think according to the docos you should not edit the httpd.conf I think you have to use templates.
Mark

CKConsulting

Has anyone setup owl or knowledge tree on sme
« Reply #3 on: August 31, 2004, 03:00:03 PM »
Thanks, can you explain more on adding the info in templates?
Place a post on sourceforge, B0zz is very helpful.  I set up a test box and he ssh in and we figure out how to get mine working.

Rick

Offline arne

  • *****
  • 1,116
  • +0/-4
Has anyone setup owl or knowledge tree on sme
« Reply #4 on: September 01, 2004, 02:00:33 AM »
After I saw this interesting discussion and also after hearing a little about the owl I have just now made a test installation on a SME 6.01

Of cource I do not know to much about how it should work, but it seems to be working ok with uploading of documents etc.

By the way .. I made the installation variant that will store the documents on the Documents directory, as I believed that will be simpler for the first time.

One big problem with that.. The Dokument directory seems to be completely unprotected so anybody can go into the directory and read the documents. (If I have not made any error with user rights ..) If this is the case I think that is a big argument for rather storing the documents in the database.

Of course I will try to explain how to make the installation, but the clock were just 2:00 in the night now before it were running ..

One thing I am rather courious about: Why do you want to make those changes in the httpd.conf file ??
(I did not see that the instalation guide said anything about that.)(The reason that I am courious is that I believe this "Ovl system" could have a lot of interesting potensials for usage.

Please also inform if you know any information concerning this security issue for the Document directory. It doesen't give much sence to set user right that are valid inside the system as long as anybody can access the same datas direct from the outside of the system without even logging in.
(http://domenename/intranet/Documents/ and you can go right in.)

Will try to explain the installation - but it is a few issues around that.
......

Offline arne

  • *****
  • 1,116
  • +0/-4
Has anyone setup owl or knowledge tree on sme
« Reply #5 on: September 01, 2004, 09:32:17 AM »
Security issue about web access for Documents directory solved (I think) by just mooving the directory two levels up, so its now located directely under the Primary ibay directory. No problem with that as far as tested just now.

It apears that the logon and the document upload and administration also work via the https/ssl encryption, at least in the Primary ibay. Look like that the combination of SME and the Owl is a rather good one. Have not tried document administration via internet yet, but will try it during the day.
......

lmarkjoseph

Has anyone setup owl or knowledge tree on sme
« Reply #6 on: September 01, 2004, 01:21:44 PM »
Moved the Document folder to the primary and set permissions still could not upload. I think must something other than owl causing the problem sothing to do with upload to sme rather than document dir. I can copy files to the doc dir and delete so permissions are ok
Any sugestions

CKConsulting

Has anyone setup owl or knowledge tree on sme
« Reply #7 on: September 01, 2004, 03:36:03 PM »
I made the changes to the httpd.conf file so it would let me upload.  I'm using SME 6.0.1-01, I'm a windowz guy learning Linux so I had to work with B0zz from OWL to help me trouble shoot and I'm not sure why we did what we did but it worked.  :)

Rick

Offline arne

  • *****
  • 1,116
  • +0/-4
Has anyone setup owl or knowledge tree on sme
« Reply #8 on: September 01, 2004, 05:44:07 PM »
lmarkjoseph -> I did not write down any logbook from the installation (as usual), but I think you are right about your conclusion.
 
I can not see any reason why it should be neccessary to change the configuration of the httpd.conf file (or the template.)

On the other hand the SME server has some securuty functions for the php setup that has to be reliefed. This PHP chroot function could restrict the upload.

This restrictions are more "evident" for the new 6.0.1 distribution than the "old" 5.6 distribution. An easy way around all those problems could be to use the 5.6 version of the SME server and then to install the Owl in the Primary ibay. (It used to work on other program with file storing capabilities.)
......

Offline arne

  • *****
  • 1,116
  • +0/-4
Has anyone setup owl or knowledge tree on sme
« Reply #9 on: September 01, 2004, 05:53:44 PM »
By the way I see from the posts above:

< Directory /home/e-smith/files/ibays/owl/html>
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
php_admin_value open_basedir /home/e-smith/files/ibays/owl
</Directory>

To:

<Directory /home/e-smith/files/ibays/owl/html>
AddType application/x-httpd-php .php .php3 .phtml
AddType application/x-httpd-php-source .phps
</Directory>

Of cource now I understand .. this look like just another way of reliefing the restrictions for the php upload (By removing the base directory that will restrict the php upload function to this area. Php upload migt also be able to access the /tmp file at the server).
......

Offline arne

  • *****
  • 1,116
  • +0/-4
Has anyone setup owl or knowledge tree on sme
« Reply #10 on: September 01, 2004, 06:00:33 PM »
The basic mod of my server were done according to this discussion:
http://forums.contribs.org/index.php?topic=23353.0
......