robert mena
2011-Mar-11 18:54 UTC
[CentOS] Alternatives to apache for php based servers: Nginx
Hi, Anyone here using Nginx as alternative to apache in conjunction to php scripts? Care to share thoughts and caveats? I am reading that it is a good alternative but do not know the real life limitations, diferences to apache, which repo to fetch etc. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110311/db8b94d7/attachment-0001.html>
Les Mikesell
2011-Mar-11 19:30 UTC
[CentOS] Alternatives to apache for php based servers: Nginx
On 3/11/2011 12:54 PM, robert mena wrote:> Hi, > > Anyone here using Nginx as alternative to apache in conjunction to php > scripts? > > Care to share thoughts and caveats? > > I am reading that it is a good alternative but do not know the real life > limitations, diferences to apache, which repo to fetch etc.What problem are you trying to solve with apache? -- Les Mikesell lesmikesell at gmail.com
Mark Foster
2011-Mar-11 21:38 UTC
[CentOS] Alternatives to apache for php based servers: Nginx
On 03/11/2011 10:54 AM, robert mena wrote:> Hi, > > Anyone here using Nginx as alternative to apache in conjunction to php > scripts? > > Care to share thoughts and caveats? > > I am reading that it is a good alternative but do not know the real life > limitations, diferences to apache, which repo to fetch etc.First off let me say that nginx is awesome. If you are running a LAMP stack and cannot use fastcgi with apache then you can put nginx in front of apache to handle static content requests. Result is dramatic decrease in memory footprint since you can reduce the number of concurrent apache procs. Nginx uses a more efficient request handling so you can serve thousands of clients in under 100MB. I think you can also use fastcgi with nginx. I haven't done it. Apache can achieve similar efficiencies with the alternate mpm models i.e. not prefork. -- Mark D. Foster <mark at foster.cc> http://mark.foster.cc/
Geoff Galitz
2011-Mar-12 06:19 UTC
[CentOS] Alternatives to apache for php based servers: Nginx
>> Anyone here using Nginx as alternative to apache in conjunction to php scripts?>> Care to share thoughts and caveats?Yes, we use nginx + PHP and also apache + nginx + PHP extensively and it works well. You can also look at lighttpd + PHP as another alternative that works well. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20110312/1ef0f7bb/attachment-0001.html>
On Sat, Mar 12, 2011 at 6:19 AM, Geoff Galitz <geoff at galitz.org> wrote:> >>> Anyone here using?Nginx as alternative to apache in conjunction to php >>> scripts? >>> Care to share thoughts and caveats? > > Yes, we use nginx + PHP?and also apache + nginx + PHP extensively and it > works well. > > You can also look at lighttpd + PHP as another alternative that works well. > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >You could also have a look at Hiawatha. The developer claims it's been built with PHP in mind. http://www.hiawatha-webserver.org/