I have an unusual request, I have a php script that I have just purchased called Secureloads.
Below is their explanation as to how it works
How It Works
Secureloads works by defining and controlling access permissions on subfolders within your protected file area. It is ideally suited to control online access to folders with software updates, manuals, e-books, reports, datasheets or any other downloadable digital products. If you need feedback as new files from certain clients, you can allow upload access to a group of users to certain subfolders.
The access permissions can vary from "nothing at all" when a user could not even see the subfolder contents, to "everything possible" to allow uploading files, creating new subfolders, updating and deleting existing files and subfolders. Any access level in between is also possible including allowing downloads of existing files only. Secureloads is very flexible and for example, one group of users can upload to a subfolder while certain other group will have no access to this subfolder at all.
Apart from other secure downloads area software applications, Secureloads protects the real files and subfolders on your webserver rather than content stored in a database. Although Secureloads features the fully featured file management interface, the key benefit for this architecture is that the system owner can upload the protected files through FTP or local file explorer. This allows you to give out files of very large size (up to gigabytes).
In tech language, Secureloads is a web-based multi-user file management software with fully featured user and group access permission functions.
Secureloads is internationally-ready. All the language specific details are defined in one language file. It is a matter of 15 minutes to translate the program interface into your native language. If you have clients of different nations, you can create several language options. Your clients will be able to switch to the language they prefer.
When you want to download a folder of images you simply check the box next to the folder and the select the 'action' zip and download - only problem is that it comes back with a error "Internal Server Error, this is an error with your script, check your error log for more information." when the folder it is trying to zip and download contains a lot of files and the files are large, say 30 files of 25mb each) the log reads " [Wed Feb 25 09:39:33 2009] [error] [client 86.148.195.115] FATAL: erealloc(): Unable to allocate 146430677 bytes, referer: http://www.catalystglobal-vault.com/?mwst=path:/events
[Wed Feb 25 10:04:04 2009] [error] [client 86.148.195.115] Premature end of script headers: index.php, referer: http://www.catalystglobal-vault.com/?mwst=path:/events
[Wed Feb 25 10:09:39 2009] [error] [client 212.103.233.1] (12)Cannot allocate memory: couldn't create child process: /usr/lib/suphp/suphp for /domains/c/a/catalystglobal-vault.com/public_html/index.php
Anyone any ideas as to why it should be doing this - or any ideas for an alternative script you may know of that does similar things.
Many thanks in advance for any help you can give to me
help required
Moderator: General Moderators
Re: help required
Looks to me from that log output like its trying to download the whole zip file into RAM and running out of space. Have you tried doing it with a single file first to check the process works?
-
amanuensis
- Forum Newbie
- Posts: 4
- Joined: Wed Feb 25, 2009 3:43 am
Re: help required
Thanks for you reply
Yes I have no trouble with a single file or a folder with a lot of small files inside of it.
It is only a problem when the folder I am wanting to zip and download has a lot of files inside of it.
Yes I have no trouble with a single file or a folder with a lot of small files inside of it.
It is only a problem when the folder I am wanting to zip and download has a lot of files inside of it.
Re: help required
I'd say check their options or preferences about temporary files or directories, because it is trying to it all in RAM, not on disk. I don't know the script, so can't give you specifics, but it looks like a config setting. I used to have the same issue using NCFTP years ago.
-
amanuensis
- Forum Newbie
- Posts: 4
- Joined: Wed Feb 25, 2009 3:43 am
Re: help required
Do you know of a script that can do something similar - it works great except for that problem - give me the ability to allocate users with access only to the folders I give them permission to, and then allows them to download the files and folders within the folder I have given them permission to view - each folder when requested to be downloaded goes off to zip itself before it downloads and that is where the problem lies - i would love to find a reliable progem that can do that but have looked everywhere - Do you know of one?
Re: help required
You can just use your .htaccess file on the root of your website, If you are using Cpanel you can also change the options so it blocks access to certain directorys, EG. They would need a Username & Password to enter.
-
amanuensis
- Forum Newbie
- Posts: 4
- Joined: Wed Feb 25, 2009 3:43 am
Re: help required
Hi thanks for the recommendation - although I am not sure how that would allow downloads.
Re: help required
True, Best thought is to look at Sourceforge.net.