Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th November 2008, 12:11
Melchior Melchior is offline
Junior Member
 
Join Date: Jul 2007
Location: Germany, Darmstadt
Posts: 25
Thanks: 5
Thanked 1 Time in 1 Post
Default Supplying big downloadable files on a webserver (>1gb)

Hi there,

I need a solution to supply big files over a webserver. Those should be downloaded auth-protected (login/passwd) over http and php.

Until now I used mod_xsendfile (click) with Apache 2.2 to do this. This works like a charm tested with maxsize of 100MB. It's a small extension for apache that get's active by a header-manipulation (via php) after the file was requested by the user...

Now it's necessary to cover files up to 5 GB.

Has somebody experience with those large files? I don't have anyone so it's hard for me to estimate this.

Perhaps it's better to bet on Lighty webserver instead using apache?

thx for help.
melchior
Reply With Quote
Sponsored Links
  #2  
Old 15th November 2008, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
Default

I don't think it's a problem to serve large files with a normal Apache or Lighttpd installation (without any extra modules). When you download a Linux DVD or CD iso file, the isos are also being served by a normal Apache or Lighttpd.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 17th November 2008, 17:50
Melchior Melchior is offline
Junior Member
 
Join Date: Jul 2007
Location: Germany, Darmstadt
Posts: 25
Thanks: 5
Thanked 1 Time in 1 Post
Default

hi falko,

thx for reply.
top forum. top support. and top ISPCONFIG. I love it!

My doubts to provide a large file came up that the file gets served dynamic by php.

Some time ago I tried to this to supply a 100MB file.

When I clicked on download the download started extremely delayed. I think this happened because php was loading the whole file in memory before it began to start it.

I tested a workaround I read on php.net to supply the file as chunked file segmemts but it didn't solved the delay at all.

So at all I switched over to use mod_xsendfile for apache. And this works very great.

And that's why I'm so afraid. If mod_xsendfile won't work with files upto 5 gb I'll have no chance to get it work with apache

thx and best regards,
marco
Reply With Quote
  #4  
Old 18th November 2008, 16:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,748 Times in 2,579 Posts
 
Default

If you want to use PHP for processing the download, you can find some classes here: http://www.phpclasses.org/browse/

We're using one of these classes to process our VM downloads, but I don't remember the name or link of the class...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
Melchior (18th November 2008)
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 18:26
User constantly loggin into mail? bswinnerton Installation/Configuration 2 24th March 2008 01:12
Big client log files Jorem Installation/Configuration 2 13th November 2007 10:52
big files give 403 access denied reinier Installation/Configuration 0 22nd April 2007 12:31
Network questions regarding Ubuntu Server lubod Installation/Configuration 7 3rd January 2007 19:53


All times are GMT +2. The time now is 16:08.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.