views:

30

answers:

1

I am currently with HostGator on a shared hosting plan. I have a new website I'm trying to setup with a download.php script. The issue I am having is that, while someone is "downloading" a file through the download.php script, it counts as a "process" and my hosting plan limits the processes that can be running at the same time to 25 at present.

My question is, what options do I have?

a). Move to new web hosting that doesn't limit processes running.

b). Change the way files are downloaded.

I would like to choose option b), however it occurs to me that I need to have the file accessed through PHP in order to restrict the number of downloads and to track download statistics, as well as protecting against hotlinking. If there was a way to have the PHP script send them the file so that the process doesn't need to be running the whole time the file is being downloaded, I would eliminate the problem, however to my knowledge that isn't possible.

Should I make the move to a new hosting company? I really enjoy HostGator as they have provided the best hosting experience for me thus far, except for this one issue of course, so I don't want to go on the hunt for another decent shared hosting company that doesn't limit processes running, only to find out there is another restriction or "catch" to the shared hosting deal.

A: 

I don't know how hostgator defines 'process', but as the download itself will keep an Apache process busy no matter what, I'd say in my definition of process you can't do anything about it, save for queuing downloads until other downloads have finished. You may like hostgator, but the 25 process limit is one of the most ridiculous limits I've stumbled across. Maybe that's the price one pays for 'unlimited disk space', but I my experience, the diskspace I needed was always limited.

Are you sure the 25 processes are a hard limit? I can only find a 'User may not: 1) Use 25% or more of system resources for longer then 90 seconds', which maybe can be taken care of by optimizing the download script.

Wrikken
There is a "processes running" limit indeed. It is a hard limit that cannot be removed unless changing to at least a VPS account (which costs more than I want to spend on hosting just now) I am unsure if they mention it clearly at first, but when you're in the control panel there it is plain as day. An "apache process" counts as a "process", that's correct.I feel I may move to dreamhost for this particular website since they apparently don't have this limitation. By the way, in a shared environment this processes limit does help keep things run smoother, but is problematic for dl scripts.
Joe