Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Fri Nov 24, 2017 9:20 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 23 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Serving Files over 1.5Gb
PostPosted: Mon Oct 02, 2006 4:15 pm 
Offline
Newbie

Joined: Mon Oct 02, 2006 4:09 pm
Posts: 10
Hi,

On my LS2 I am currently running another thttpd server with my own web pages (PERL generated) to serve files to my LinkTheater.
Everything works fine except when I try to serve files over about 1.5Gb the server fails.
I understand this is a known issue with thttpd.

Can anybody recommend another web server already compiled for the LS2 which will serve large files. I had it working using Apache on my own PC but thought it was a bit of overkill, just for media files.
Does Apache on the LS2 serve large files ok??
Is there a smaller web server I could use?

I have tried wizd but didn't like the interface which is why I wrote my own.

Thanks
Simon


Top
   
PostPosted: Mon Oct 02, 2006 4:51 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
i do not think that there is a package for that, but i can recommend to use lighttpd.

http://lighttpd.net/

i compiled in with openlink + devtools for PPC a while ago....you would need to compile it for the LS2.

but that was not that hard as far as i remember. i suppose some guys would thank you if you would compile it and make a package for others.

here is generic info how i create packages:
http://buffalo.nas-central.org/index.php?title=Create_a_package_%28tarball%29_for_distribution

you maybe need to add some additional switches for lighttpd as this is generic info, but in the end you would have a tarball that could be used for distribution.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Mon Oct 02, 2006 5:01 pm 
Offline
Site Admin
User avatar

Joined: Wed Mar 08, 2006 5:00 pm
Posts: 1029
Location: Ottawa, Canada
i second that, lighttpd.
Low resources + nice optional features if you like


Top
   
PostPosted: Mon Oct 02, 2006 5:45 pm 
Offline
Newbie

Joined: Mon Oct 02, 2006 4:09 pm
Posts: 10
Cool, thanks guys, I will check out lighthttpd.
I am still a newbie to linux so people might not want my package! but I will take a look at doing one assuming I manage to get it compiled in the first place!


Top
   
PostPosted: Mon Oct 02, 2006 6:32 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
yes, do it like i always do!

try to compile it :)

after confirming that it works try to make a package.
if you have troubles compiling or especially creating the package: [b:1f174]ask![/b:1f174]

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Tue Oct 03, 2006 3:38 am 
Offline
Site Admin
User avatar

Joined: Sun Jul 17, 2005 4:34 pm
Posts: 5332
I've never heard of a thttpd file size limit, can you point me to your sources please?

EDIT: There's indeed a large file size limit bug against the Debian thttpd version. But at least I could serve those 1.1 GB .VOB files if I wanted to.


Top
   
PostPosted: Tue Oct 03, 2006 4:27 pm 
Offline
Newbie

Joined: Mon Oct 02, 2006 4:09 pm
Posts: 10
I can't point you to any "sources" as I was speaking from my personal experience. any of my files over about 1.4 Gb would not be sent by the thttpd web server resulting in an error 500.
I do not know anything about "versions" other than I am using the one that was pre-installed in my LS2.

I have now compiled lighttpd and it works without the problem.


Top
   
PostPosted: Tue Oct 03, 2006 5:54 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
are you considering to create a package for others?

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Tue Oct 03, 2006 6:22 pm 
Offline
Newbie

Joined: Mon Oct 02, 2006 4:09 pm
Posts: 10
I am considering it... But there are 2 issues...

I wrote some instructions as I went along so I may just post those as it was remarkably easy to do, it may be better for others to just follow the instructions.

The other issue is that I did not follow ALL the instructions to the letter so I do not have a complete install.
The Lighttpd compilation instructions stated that you need "libpcre" and "libz" neither of which seemed to come with the "Pre compiled C development environment" available here. I do not know where to get them from. However on reading the Lighttpd site I realised I could compile it without these and all it would not compile were a couple of modules, none of which I currently need so I went ahead and tried it without.

IMHO a package should really include ALL the modules available, so the instructions may be of more use to people than just the file.


Top
   
PostPosted: Tue Oct 03, 2006 6:39 pm 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
SimonD wrote:
IMHO a package should really include ALL the modules available, so the instructions may be of more use to people than just the file.


well. i think a package with with most of the modules is good enough in the beginning.
ifthe development tools do not allow to compile more modules then this is currently the best package. others won`T be able to compile more without enhancing the development tools.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Tue Oct 03, 2006 6:47 pm 
Offline
Newbie

Joined: Mon Oct 02, 2006 4:09 pm
Posts: 10
OK, I now have a "package" but I've never posted to a Wiki before...
How do I create an article? I got to a page which looked like I was going to trash the menu system so stopped!
I couldn't find an idiots guide...


Top
   
PostPosted: Wed Oct 04, 2006 1:22 am 
Offline
Regular Member

Joined: Wed Sep 07, 2005 6:08 am
Posts: 81
Here is an interesting discussion on Large File Support in Linux

http://www.suse.de/~aj/linux_lfs.html

Apache needs to be version 2.2 to fully support large files
From the 2.2 release notes
Large File Support
httpd is now built with support for files larger than 2GB on modern 32-bit Unix systems. Support for handling >2GB request bodies has also been added.


Top
   
PostPosted: Wed Oct 04, 2006 7:11 am 
Offline
Site Admin
User avatar

Joined: Mon Jul 11, 2005 7:19 am
Posts: 7703
Location: Austria, Vienna
SimonD wrote:
OK, I now have a "package" but I've never posted to a Wiki before...


posting a file to the wiki won`t work ;)...

thats what the downloadsection is for.

i send you the user/password for access to the upload-folder there.

_________________
LS1 (2.6 kernel, foonas svn1062, 750 GB, UBoot 1.2) & LS Pro (FreeLink/jtymod/GenLink, changes all the time)
Thx to all donators!


Top
   
PostPosted: Wed Oct 04, 2006 12:03 pm 
Offline
Site Admin
User avatar

Joined: Wed Mar 08, 2006 5:00 pm
Posts: 1029
Location: Ottawa, Canada
to create a wiki page, first check if there are other pages
covering the same topic. You may just edit an existing one.

A quick way to create a new page:
Search using the Page name you wish to use, say
"Lighttpd compile instrcutions"

on the results page, it will give you a link for creating that page
if you wish.
Best if you are logged in, because people will be able to know you
created that page, instead of some anonymous user.


Top
   
PostPosted: Thu Oct 05, 2006 5:50 am 
Offline
Newbie

Joined: Mon Oct 02, 2006 4:09 pm
Posts: 10
Thanks for the info, I will try to create a page tonight.
The file has been uploaded.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 23 posts ]  Go to page 1 2 Next

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited