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 hoping I

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

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

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

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

2012-02-28 Thread Scott McEachern
If anyone has played with nginx + php-fpm, they may have run into the No input file specified problem. Google will show dozens of pages explaining what the problem is and how to fix it. Been there, spent last weekend doing it. After too much frustration, I tried the exact same nginx config