(fast)cgi and nginx - there has to be a better way
Jim Ohlstein
jim.ohlstein at gmail.com
Wed Sep 24 03:57:46 MSD 2008
I agree. Recompile php with fpm and set php-fpm.conf to listen on 127.0.0.1:9000. Then proxy php to that address and you're good to go.
There are a couple of "recipes" on the web in addition to the wiki. Look at http://tajidyakub.com/2008/06/28/nginx-mysql-php-in-centos-51-x86_64/ and http://www.yawn.it/2008/04/30/nginx-php-php-fpm-on-debian-etch-40/ . Also, http://articles.slicehost.com/2007/10/19/ubuntu-feisty-adding-an-nginx-init-script# has a good start up script to use with the start-stop daemon.
-----Original Message-----
From: owner-nginx at sysoev.ru [mailto:owner-nginx at sysoev.ru] On Behalf Of mike
Sent: Tuesday, September 23, 2008 6:38 PM
To: nginx at sysoev.ru
Subject: Re: (fast)cgi and nginx - there has to be a better way
setting up fcgi is simple - both in nginx and php. it's a location
block and a few lines of fastcgi_stuff and you're good to go.
check out php-fpm for how to make running php fcgi engines a snap.
i'd write more but have to run right now. the wiki has a ton of examples.
On Tue, Sep 23, 2008 at 3:33 PM, Jonathan Vanasco <nginx at 2xlp.com> wrote:
> I've spent the better part of the day combing through docs and the mailing
> list trying to get MovableType working with nginx
>
> it seems the best option is proxying to lighttpd - everything else seems to
> involve hacks and copy/pasting scripts off the wiki
>
> For nginx adoption sake, there really has to be a better way.
>
> running php via fcgi is a PITA, and most ways involve using lighttpd's fcgi
> manager
> trying to get a fcgi compatible perl app ( like Movable Type ) or a python
> app is 10x more of a hassle
>
> looking at the history of cgi discussions, people often reply with stuff
> like "i hate perl" or "proxying to a rails/python app is just easier".
> those aren't really answers to problems or trying to use existing software.
>
> not supporting cgi makes sense, but the barrier to using fcgi with nginx is
> 'really fucking high' right now.
>
> nginx is a great system - i hate that I need to proxy to something inferior
> like lighty for ease of administration and setup
>
>
>
> // Jonathan Vanasco
>
> w. http://findmeon.com/user/jvanasco
> e. jonathan at findmeon.com
>
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - -
> | Founder/CEO
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - -
> | FindMeOn.com - The cure for Multiple Web Personality Disorder
> | Privacy Minded Web Identity Management and 3D Social Networking
> | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> - - - - - - - - - -
>
>
>
More information about the nginx
mailing list