Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: del on November 19, 2006, 04:53:53 AM

Title: Webshare Contrib
Post by: del on November 19, 2006, 04:53:53 AM
Does anyone know if smeserver-webshare-1.0.0-7dmay.noarch.rpm works OK with SME 7? I seem to remember someone having trouble with it along side other contribs. Thanks.

Regards,
Del
Title: Webshare Contrib
Post by: mmccarn on November 19, 2006, 05:47:30 AM
It installed painlessly and worked for me on my "test" server without causing any trouble.

Here's what I did:

mkdir -p /root/webshare
cd /root/webshare
wget http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/smeserver-webshare-1.0.0-7dmay.noarch.rpm
wget http://mirror.contribs.org/smeserver/contribs/dmay/smeserver/7.x/perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm
rpm -Uvh perl-Apache-Htpasswd-1.5.9-1.1.el3.rf.noarch.rpm
rpm -Uvh smeserver-webshare-1.0.0-7dmay.noarch.rpm

- refresh my 'server-manager' session
- click on the new 'Web Shares' link under 'Collaboration'
- create a webshare
- create a user for the webshare
- open the webshare, login, upload a file, download the same file, create a subdirectory...

The only discussion I found about this contrib was from last spring and summer, but the contrib is dated 12-Oct-2006.  Even so, the problems all seemed to be that you have to install perl-Apache-Htpasswd before you install webshare...
Title: webshare
Post by: jdanvers on November 23, 2006, 01:42:25 AM
mmcarn...

Instructions worked like a champ.  ;)  I followed them and the thing works.  Great.  Now comes stupid question time..  I shelled into my box (putty) and tried a locate / whereis, etc...  no joy.  What/where is the ~actual~ path on the server where uploaded files land?  I checked the obvious (to me anyway) /home/e-smith/files/Primary/html and /root/webshare...

I created a test directory and uploaded a test file.  Can't find either of them at the actual filesystem on the box.

Just curious & thanks!  ;)

-=- jd -=-
Title: Webshare Contrib
Post by: piran on November 23, 2006, 01:56:57 AM
/opt/webshare/
Title: Webshare Contrib
Post by: jdanvers on November 23, 2006, 01:58:57 AM
perfect - thanks!

-=- jd -=-
Title: Webshare Contrib
Post by: Tib on November 23, 2006, 02:09:17 AM
jdanvers

did you do a "updatedb" before you did a "locate"?

I don't know how webshare works ... but I found that the database for locate needs to be refreshed so to speak to locate new files.

Regards,

Tib
Title: Webshare Contrib
Post by: jdanvers on November 23, 2006, 02:44:02 AM
Hey Tib...  no I didn't and indeed it did spit out an error re: run the command and then something about seeing some .conf file.  Needless to say - I just shelled back in and ran it....

... it took a minute or two and then the prompt came back.  Used the locate command again and viola! - found the file.  ;)

     ***** screen capture *****

     [root@gateway ~]# locate jdtest
     /opt/webshare/bgshare/files/jdtest

     ***** screen capture *****

Thanks...

-=- jd -=-
Title: Webshare Contrib
Post by: girkers on November 23, 2006, 04:50:10 AM
Does this pose a security risk by not isolating it to an ibay?
Title: Webshare Contrib
Post by: bpivk on November 23, 2006, 06:48:54 PM
Well i would like to make a user that can upload files and users that can only download files. How could i do that?

Ok i just found that this isn't quite what i was looking for. I'm looking for a script that lets me or some other user upload files and unregistered users can download files. Do you know of such scripts?
Title: Webshare Contrib
Post by: nigeltodd on April 16, 2007, 02:11:22 PM
"The requested URL /webshare/bmpfileshare was not found on this server."

I get this message when I try to access the fileshare internally!

Permissions as follows:

[root@bpmserver RPMs]# ls -l /opt/webshare/bpmfileshare/
total 32
drwxr-xr-x  2 root admin 4096 Apr 17 07:41 conf
drwxr-xr-x  2 root admin 4096 Apr 17 07:41 docs
drwxr-xr-x  2 www  www   4096 Apr 17 07:41 files
drwxr-xr-x  2 root admin 4096 Apr 17 07:41 icon
drwxr-xr-x  2 root admin 4096 Apr 17 07:41 incl
-rw-r--r--  1 root admin 2880 Apr 17 07:41 index.php
drwxr-xr-x  2 root admin 4096 Apr 17 07:41 lang
-rw-r--r--  1 root admin 2177 Apr 17 07:41 readme.txt
[root@bpmserver RPMs]#

I have uninstalled and re-installed perl_Apache HTPpaswd, and then Webshare - I have been able to create a webshare, add a user to acces it, but cannot acces - either by machine name or by Ipaddress.

Any thoughts?
Title: Webshare Contrib
Post by: bpivk on April 16, 2007, 07:54:25 PM
Did you use https not http (mind the s)?
Title: Webshare Contrib
Post by: nigeltodd on April 17, 2007, 12:27:04 AM
yes I did!! However I thinnk it has to do with my dyndns - I have 2 SME gateways on this adsl connection - when i went to the relevant servr (www.bpmoz.dyndns.bix) I eneded up on  the webpage for the original server!!

Will investigate further!!
Title: Webshare Contrib
Post by: bpivk on April 17, 2007, 11:17:22 AM
Yes you have the DNS settings wrong because the traffic gets routed to your original server that's why you can't access webshare (because it doesn't exist on your old server).
Title: Webshare Contrib
Post by: nigeltodd on April 17, 2007, 12:36:19 PM
So if I were to move this machine onto it's own modem link, once modem in Bridge mode it should work ok? Is there any way to ensur eit works first before I do that? (I can and will put Webshare onto MY server (nigelt.dyndns.org), ut it does not prove that it works on the bpm one!@

Thanks for your help tho!

Much appreciated

Nigel
Title: Webshare Contrib
Post by: bpivk on April 17, 2007, 02:58:46 PM
Well you can check if it works trough LAN if you enter the ip adress of your server (https://lan/webshare/something) or just route trafic from the other server with Hostnames and addresses but i think that you'll be faster with using lan.

You can also ssh into the server an use links and then enter the url https://localhost/webshare/something