Re: A neat twist on nginx + php-fpm = no input file selected

2012-02-29 Thread Chris Cappuccio
Scott McEachern [sc...@blackstaff.ca] wrote: > On 02/29/12 03:52, Remco wrote: > >If the file on your file system is > >/var/nginx/html/who_is_online.php, a daemon chrooted to /var/nginx > >will see it as /html/who_is_online.php. If the daemon chrooted to > >/var/nginx should really see /var/nginx/

Re: A neat twist on nginx + php-fpm = no input file selected

2012-02-29 Thread Scott McEachern
On 02/29/12 03:52, Remco wrote: If the file on your file system is /var/nginx/html/who_is_online.php, a daemon chrooted to /var/nginx will see it as /html/who_is_online.php. If the daemon chrooted to /var/nginx should really see /var/nginx/html/who_is_online.php, the file should live in /var/n

Re: A neat twist on nginx + php-fpm = no input file selected

2012-02-29 Thread Scott McEachern
On 02/29/12 03:52, Remco wrote: I'm not familiar with nginx but in general, the crazy-simple explanation I can think of is that you're running from a chroot. So the daemon will look for files relative to its chroot. That's *hilarious*. And of course, you're quite right. It works perfectly f

Re: A neat twist on nginx + php-fpm = no input file selected

2012-02-29 Thread Remco
Scott McEachern wrote: > And here's where it can't find the file: > > 23595 php-fpm-5.3 GIO fd 2 wrote 100 bytes > "ERROR: Unable to open primary script: > /var/nginx/html/who_is_online.php (No such file or directory) > " ... > > This problem is a real mystery to me, and I'm