Hi,

My 2 cents, give nginx a try, I started using it with 
http://drupal.org/project/barracuda and I'm now using it in combination with 
aegir for my remote servers and to be honest it was one of the best decision 
ever ;p

Cheers,
Peter


From: [email protected] [mailto:[email protected]] On 
Behalf Of Ashraf Amayreh
Sent: woensdag 14 december 2011 16:40
To: [email protected]
Cc: Ms. Nancy Wichmann
Subject: Re: [development] Experience with mod_fcgid

Hey Nancy, not totally sure. It's a VPS server using XEN technology. If anyone 
can point me on how to find out how much Virtual cores there are, that would be 
great. But overall, multithreading should help weather it's one processor or 
more as threads are lightweight compared to processes.

One issue that arose was an internal server error that occurred very very 
rarely. It seems to be because PHP CGI processes terminate after getting a 
specific number of requests (500 by default). So apache would abruptly find the 
prcoess it was talking to terminated and would send a 500 error to the client. 
That's resolved by either telling PHP never to terminate (and risking memory 
leaks, which is low I presume?) or by setting the max requests per thread in 
apache to something less than 500 (I set it to 490).

I'll write a post on D.O once I'm done with more testing. Here's what I'm 
working on now:

1. APC doesn't work with this configuration (I don't use it anyway). Seems this 
is resolved by installing php-fpm. I'll try to set it up in the coming few days.
2. With this configuration, and using suexec I can run each virtualhost using a 
different user. Now that's the ultimate security. If a site is breached, even 
with PHP filter and exec function, they can't do damage to any other site!
3. You get some added perks of giving each virtualhost its own PHP.INI file, etc

As to going nginx+php-fpm. I don't know if I'm eager to ditch apache. Seems 
like a MAJOR thing. I am, however, going to try to setup php-fpm with apache. I 
will look into nginx later on of course and try to accumulate some know-how to 
see if it's worth-while.
I assume you have a computer with multiple cores? Is there any reason to think 
it would do better with a single core machine?

How about writing up your experiences on D.O?

Nancy

Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.





--
Ashraf Amayreh
CEO | O-Minds
Cell. 962 78 8099997
Tel. 962 6 5655150
Fax. 962 6 5675150
Skype: aamayreh

www.o-minds.com<http://www.o-minds.com>
web development | web design
user experience | branding design

Connect with us on Twitter
http://twitter.com/ominds

Connect with us on LinkedIn
http://www.linkedin.com/in/aamayreh

Reply via email to