On 6 March 2013 15:01, Mark Rogers <mark(a)quarella.co.uk> wrote:
> However, I've spent some time playing with nginx this afternoon, and I
> have to say that the biggest PITA so far as been working with FastCGI
My existing Apache/mod_php configuration is fairly simple. Lots of
virtual hosts, many of which use PHP. Of those that do, there's
probably 50% are "standard" packages (eg Wordpress) and the other 50%
is "stuff wot I wrote".
In all cases the virtual host will have a reasonable amount of PHP
config; setting memory and file upload limits, etc, and setting
options required by the "standard" packages. My own stuff will have
include_path configured to point to whichever version of my standard
PHP libraries the site uses, and any other config needed.
>From my brief experiments with FastCGI this afternoon (with
nginx/php5-fpm), switching to FastCGI is going to be a big headache
when it comes to setting the PHP environment up per-site. I know I can
set variables via the FastCGI interface but (unless I am
misunderstanding something) it is messy and I really need to set
everything for each site to be sure it'll work the way I want (ie if I
set include_path for one site but not for another, it doesn't seem
clear whether or not which include_path the other site will end up
with, and even after removing the include_path altogether and
restarting nginx, it seems I need to restart php5-fpm for it to revert
to defaults, so I assume it goes with the last value it was told to
use?)
There are obviously others here with way more experience with
FastCGI/PHP than I have, so am I losing the plot of is this going to
be a big headache with my setup?
Mark
--
Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450
Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG