Koozali.org: home of the SME Server

list files on webpage

Offline funkusmunkus

  • *
  • 220
  • +0/-0
list files on webpage
« on: June 30, 2004, 04:27:20 AM »
Hi all,
I'm still getting to know e-smith (linux in general) and i was hoping someone can help me out with this little issue i'm having, i created an Ibay and set restricted access to it by using a htaccess contrib, but i wanted a user to be able to put files there, and remote users logon and get the list of the available files in that Ibay, and be able to download them(i know it sounds simple but for the life of me i don't know how)
about the setup : I made write access only to the group and read access to anyone(for that Ibay), but with the htaccess contrib they won't be able to access it anyway without the username and password, i'm running 5.6u in server/gateway mode.
Cheers all
.........

Offline genzil

  • ***
  • 51
  • +0/-0
    • http://www.tuxx.org.uk
list files on webpage
« Reply #1 on: June 30, 2004, 07:42:34 PM »
First - upgrade to version 6 if you can.

Failing that...
Second - change to the ibay (from the command prompt or ssh) where you have put the files.
Third - open a file called .htaccess or create it
Fourth - Add the following text: Options +Indexes
Fifth - save and reload the web site where you have files

If you have problems then make sure that you don't have an index.html or similar in that folder.

The proper way would be to edit the template but I'll leave you to investigate that yourself.
Smile :-)......

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
list files on webpage
« Reply #2 on: July 01, 2004, 09:59:14 AM »
Personally, I use the Webshare contrib for this sort of thing.  It's ideal for this job.  Do a search on here for it.  You should also give serious thought to upgrading to SME 6
--
Nick......

Offline funkusmunkus

  • *
  • 220
  • +0/-0
list files on webpage
« Reply #3 on: July 02, 2004, 09:36:28 AM »
Thanx both for you replys, genzil i put that line Options +Indexes in the .htaccess file, but your still talking to someone who's a networking guy, nothing at all to do with webpage design(goes right over my head) how do i get it to list the files in the (files) folder?
NickR my first option was to use a webshare contrib but i didn't get it to work, I am thinking about moving up to sme 6, it just means a weekends work, while no ones around, and that means extra $$ for over time, big no no in the place i'm at :P
if they agree i'll do that right away.
Cheers again
.........

Offline funkusmunkus

  • *
  • 220
  • +0/-0
list files on webpage
« Reply #4 on: July 05, 2004, 05:59:43 AM »
I actually got the webshare working this time, but it has a limit of 2MB, is there a way to make it larger?
.........

Offline NickR

  • *
  • 283
  • +0/-0
    • http://www.witzendcs.co.uk/
list files on webpage
« Reply #5 on: July 05, 2004, 08:46:53 PM »
Quote from: "funkusmunkus"
I actually got the webshare working this time, but it has a limit of 2MB, is there a way to make it larger?


Yup - easy when you know how ;-)  This increases it to 50Mb, adjust the number to suit.

/sbin/e-smith/config setprop php UploadMaxFilesize 50000000

/etc/e-smith/events/actions/conf-php

/etc/rc.d/init.d/httpd-e-smith graceful
--
Nick......

Offline funkusmunkus

  • *
  • 220
  • +0/-0
list files on webpage
« Reply #6 on: July 06, 2004, 08:09:21 AM »
Sorry NickR, it didn't increase the size of uploads, i had to go into /etc/php.ini, and change it for the time being, i know its a temp colution, but for the time being it was the only way
Cheers
.........

Offline genzil

  • ***
  • 51
  • +0/-0
    • http://www.tuxx.org.uk
list files on webpage
« Reply #7 on: July 07, 2004, 11:52:28 AM »
To get it to list files in the files folder create the same file in the files folder.

The access the files folder, ie go to http://www.foobar.com/ibay-name/files
Smile :-)......