Re: [gentoo-user] php-cgi must be run as root?

2011-05-08 Thread Xi Shen
yeah, you are right. thanks :) On Sat, May 7, 2011 at 12:59 AM, Kfir Lavi wrote: > > > On Fri, May 6, 2011 at 1:46 PM, Andrea Conti wrote: >> >> > The access permission to >> > /usr/lib64/php5.3/bin/php-cgi is 755, so I think everyone can execute >> > it. Then, what is the problem? >> >> Most p

Re: [gentoo-user] php-cgi must be run as root?

2011-05-06 Thread Kfir Lavi
On Fri, May 6, 2011 at 1:46 PM, Andrea Conti wrote: > > The access permission to > > /usr/lib64/php5.3/bin/php-cgi is 755, so I think everyone can execute > > it. Then, what is the problem? > > Most probably, the nginx user cannot access the .php file you're trying > to execute, either because of

Re: [gentoo-user] php-cgi must be run as root?

2011-05-06 Thread Andrea Conti
> The access permission to > /usr/lib64/php5.3/bin/php-cgi is 755, so I think everyone can execute > it. Then, what is the problem? Most probably, the nginx user cannot access the .php file you're trying to execute, either because of its permissions or because it cannot traverse one of its parent

[gentoo-user] php-cgi must be run as root?

2011-05-06 Thread Xi Shen
Hi, My system is Gentoo 64bit, up to date. I want to use Nginx+FastCgi+PHP to build my web site. But I found if I start the php-cgi, through the spawn-fcgi tool, as nginx:nginx, I got "No input file specified." message on in my browser. If I spawn the process as root:root, everything works fine. T