views:

285

answers:

9

Hello,

I have a dedicated server where i'm only the user in it.

Processor : AMD Sempron 3100+ Memory : 1GB DDR I

I'm using PHP for website. Its mostly used for downloading stuff and uploading and so.

I currently using apache, it eats too much processor.

So i came across few better then apache. I need to know which one of this good for downloading/uploading, nginx, lighttpd or litespeed?

Thanks

+1  A: 

Its hard to beat apache in my opinion, perhaps look at enabling disable mod_deflate etc might speed things up for you.

Paul Whelan
A: 

You might want to try Nginx reverse-proxying requests to a php-cgi instance. Doesn't get any more spartan than that. But I agree with Paul, Apache is hard to beat as far as maintainability / configurability goes.

Aram Verstegen
A: 

My guess is that your performance problems are related to the PHP code and not Apache. So look if you can optimize your PHP code instead.

Anders Westrup
A: 

Zeus is a high-performance web server aimed at the *Ahem* 'Static Content' industry. It will serve biblical volumes of files with minimal resources. I believe it uses asynchronous I/O, and is very quick on modest hardware.

ConcernedOfTunbridgeWells
+1  A: 

Take a look at the benchmarks for lighttpd vs apache

Gary Green
A: 

I would recommend Apache but only 2.2.x

Here's a small benchmark that was done. and as you can see, serving php, Apache 2.2.2 is better than lighty

Ólafur Waage
A: 

Definitely, I suggest lighttpd. I'm using it on different heavy load servers and it helped a lot!

Lucacri
+1  A: 

I have used PHP in machines as “low end” as an AMD Geode LX800 (500 MHz, 256 MiB of RAM), using a stock Debian install and the Apache 2, PHP5 and PostgreSQL packages provided by Debian. In general, most things work well, but you want to take care of lenghty operations (e.g. avoid resizing big images with the GD extension) and always be aware of the implied cost of operations which usually seems “easy”. My particular application was serving about 25 simultaneous clients without performance problems, and in my tests it maintained a decent time-per-request up to a hundred of simultaneous clients.

hario
+1  A: 

You may find that installing APC will help a lot. Without it, or another byte-code cache, Apache will have to re-compile the PHP files on every invocation. While it doesn't take much effort, it does add up surprsingly quickly. You'll be surprised how useful 64MB for APC (which out of 1024Mb is not too much) will help your system, depending on how much code you are actually running (you may only need half or a quarter of that given to APC).

If it's a busy site, then optimising it with Yslow will also help, as will taking the static content (like image) away from having Apache server them. It's here that Nginx can make a small, fast improvement to page times, and memory use. I've used just that technique of a separate image server myself, and to excellent effect.

Alister Bulman