Forum Moderators: coopster

Message Too Old, No Replies

best way to serve files through php/apache?

         

willeffects

9:36 am on Mar 2, 2007 (gmt 0)

10+ Year Member



Hello everyone,

We have a file download site similar to download.com. We currenty store all the files outside of our webroot on the file system and use php to grab the file and send it to the user.

Recently we opened a new section where the file sizes are between 10-20mb (up from 100k files). This has almost killed our server load as each connection lasts almost 100x longer and the number of concurrent apache procs to handle them is way up.

Im wondering what the most effecient way is to serve files like this. Is there a way to load them into some server memory cache perhaps? Maybe theres an apache or php mod that more effeciently can do this? Anyone have any recommendations?

Thanks,
Will

jatar_k

3:48 pm on Mar 2, 2007 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the best way is to make them smaller, it's the filesize and length of download, I am guessing, that is killing you. Changing how they are downloaded doesn't change their size or speed.

or you could offload those particular files to another server and serve them from there leaving your primary server to do the other work.