Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

What would you recommend for a small server setup, maybe 10 requests a second (using php and mysql, dynamic content)?

share|improve this question

migrated from stackoverflow.com Jul 22 '10 at 1:13

This question came from our site for professional and enthusiast programmers.

    
Belongs on ServerFault. –  ceejayoz Jul 20 '10 at 15:42
    
Define "request" in this context. What content are you serving? –  John Gardeniers Jul 22 '10 at 2:10

3 Answers 3

I'd set up nginx as a reverse proxy for Apache. Let nginx handle all the static files (images, CSS, JavaScript) and proxy_pass off all the PHP stuff to Apache.

share|improve this answer
    
Is it possible to proxy all the PHP traffic to multiple servers? –  Taffy Lewis Jul 20 '10 at 15:58
1  
Sure, you could. No need for 10 requests a second, though. –  ceejayoz Jul 20 '10 at 16:19
    
+1, 10 reqs/s is fairly low, as in: apache itself could handle it easily. Nothing wrong with thinking about the future however, and getting nginx in there before there are performance issues. –  Wrikken Jul 20 '10 at 16:45

Since you don't care about load,apache is older project, and has more examples on internet if later you need to do something more complicated.

Things like proxying, load sharing etc are for setups that have thousands of requests / second. For your needs they will only make things more complicated.

share|improve this answer
    
The server we are running is not a typical setup, very low powered. –  Taffy Lewis Jul 20 '10 at 15:59
    
i've been running whole ISP 10 years ago on 750mhz server with apache and php, so I guess you would be fine with few reqs/sec –  damir Jul 20 '10 at 17:30

nginx with FastCGI. Don't go the Apache route unless you really need to use .htaccess files and are too lazy to convert them to nginx format, especially for a very low powered server (I'm guessing VPS)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.