Koozali.org: home of the SME Server

Webshare Contrib

Offline del

  • *
  • 765
  • +0/-0
Webshare Contrib
« 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
If at first you don't succeed, then sky-diving is not for you!
"Life is like a coin. You can spend it anyway you wish, but you can only spend it once." --Author Unknown

Offline mmccarn

  • *
  • 2,656
  • +10/-0
Webshare Contrib
« Reply #1 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...

Offline jdanvers

  • ***
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
webshare
« Reply #2 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 -=-
-=- jd -=-

Offline piran

  • *****
  • 502
  • +0/-0
Webshare Contrib
« Reply #3 on: November 23, 2006, 01:56:57 AM »
/opt/webshare/

Offline jdanvers

  • ***
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
Webshare Contrib
« Reply #4 on: November 23, 2006, 01:58:57 AM »
perfect - thanks!

-=- jd -=-
-=- jd -=-

Offline Tib

  • *
  • 571
  • +0/-0
    • http://www.tibors.net
Webshare Contrib
« Reply #5 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

Offline jdanvers

  • ***
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
Webshare Contrib
« Reply #6 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 -=-
-=- jd -=-

Offline girkers

  • *
  • 296
  • +0/-0
    • gk computer services
Webshare Contrib
« Reply #7 on: November 23, 2006, 04:50:10 AM »
Does this pose a security risk by not isolating it to an ibay?

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Webshare Contrib
« Reply #8 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?
"It should just work" if it doesn't report it. Thanks!

Offline nigeltodd

  • ****
  • 82
  • +0/-0
    • http://nigelt.dyndns.org
Webshare Contrib
« Reply #9 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?
smoke-free since June 24th, 2004............

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Webshare Contrib
« Reply #10 on: April 16, 2007, 07:54:25 PM »
Did you use https not http (mind the s)?
"It should just work" if it doesn't report it. Thanks!

Offline nigeltodd

  • ****
  • 82
  • +0/-0
    • http://nigelt.dyndns.org
Webshare Contrib
« Reply #11 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!!
smoke-free since June 24th, 2004............

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Webshare Contrib
« Reply #12 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).
"It should just work" if it doesn't report it. Thanks!

Offline nigeltodd

  • ****
  • 82
  • +0/-0
    • http://nigelt.dyndns.org
Webshare Contrib
« Reply #13 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
smoke-free since June 24th, 2004............

Offline bpivk

  • *
  • 908
  • +0/-0
    • http://www.bezigrad.com
Webshare Contrib
« Reply #14 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
"It should just work" if it doesn't report it. Thanks!