sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.52k stars 345 forks source link

Cant Download file, bigger than 1,5MB #406

Closed ghost closed 10 years ago

ghost commented 10 years ago

I have setup SabreDAV with Lighttpd on a old modified AVM FritzBox Router. I can upload files via WebDAV in any filesize i have tryed. For instance, i have tested a File with 15MB. Upload was fine and fast enough. But if i would download this file, either via Browser or via WebDAV Client like TotalCommander, the Download interrupts after getting 1,5MB. Is there anything i could do?

staabm commented 10 years ago

Please have a look at the php-error log if some kind of out-of memory happens.

ghost commented 10 years ago

There was a Problem with output_buffering set to 4096. I had disabled it and restartet lighttpd, but the setting was not used (output_buffering = off in php.ini). After a complete Server Restart, it works. I dont know, why it didnt work only with restarting lighttpd... maybe some strange Problem with fastcgi...

thx for your help.

evert commented 10 years ago

Don't use lighttpd ;) it's a dead project

evert commented 10 years ago

http://sabredav.org/dav/webservers/

ghost commented 10 years ago

Maybe its dead, but its my only real choise. I could choose between Apache and lighttpd. Since this runs on a Internet Router with a 16MB Flash Memory Chip, and i need additional services like PHP, SSH, and Samba,i couldnt use such a Monster like Apache. As a sideffect, lighttpd is much faster on this little machine as Apache. Since its only for my personal use, lighttpd is more than enough for this purpose.

evert commented 10 years ago

What about nginx? Regardless I'm impressed sabredav runs :)

ghost commented 10 years ago

there is no mod for nginx on Freetz available. But it works and this is all what i want.

staabm commented 10 years ago

How did you plug php into the webserver? Using fast_cgi or php-fpm you could save also some memory compared to mod-php

evert commented 10 years ago

A bit crazier perhaps.. but php can also run standalone with php -S

ghost commented 10 years ago

its done via fast_cgi. I didnt like the way fast_cgi uses unix sockets (specialy on a vServer), but in my case, its the best way. BTW: You could found the project under http://freetz.org/. It runs only on some Internet Routers from AVM Germany (and some OEM's). Since this are the most used routers in Germany, its a good way, to host some small little things for my personal needs.

staabm commented 10 years ago

@evert i would not recommend php -S on your router which might publish your personal lan to the whole internet :-)

@bilbob74 sounds cool