* [gentoo-user] php-cgi must be run as root?
@ 2011-05-06 10:27 Xi Shen
2011-05-06 10:46 ` Andrea Conti
0 siblings, 1 reply; 4+ messages in thread
From: Xi Shen @ 2011-05-06 10:27 UTC (permalink / raw
To: gentoo-user
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. 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?
--
Best Regards,
Xi Shen (David)
http://twitter.com/davidshen84/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] php-cgi must be run as root?
2011-05-06 10:27 [gentoo-user] php-cgi must be run as root? Xi Shen
@ 2011-05-06 10:46 ` Andrea Conti
2011-05-06 16:59 ` Kfir Lavi
0 siblings, 1 reply; 4+ messages in thread
From: Andrea Conti @ 2011-05-06 10:46 UTC (permalink / raw
To: gentoo-user
> 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 directories.
andrea
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] php-cgi must be run as root?
2011-05-06 10:46 ` Andrea Conti
@ 2011-05-06 16:59 ` Kfir Lavi
2011-05-09 2:10 ` Xi Shen
0 siblings, 1 reply; 4+ messages in thread
From: Kfir Lavi @ 2011-05-06 16:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 467 bytes --]
On Fri, May 6, 2011 at 1:46 PM, Andrea Conti <alyf@alyf.net> 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 its permissions or because it cannot
> traverse one of its parent directories.
>
> andrea
>
> So in short you need to use
chmod -R...
chown -R...
Kfir
[-- Attachment #2: Type: text/html, Size: 852 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] php-cgi must be run as root?
2011-05-06 16:59 ` Kfir Lavi
@ 2011-05-09 2:10 ` Xi Shen
0 siblings, 0 replies; 4+ messages in thread
From: Xi Shen @ 2011-05-09 2:10 UTC (permalink / raw
To: gentoo-user
yeah, you are right. thanks :)
On Sat, May 7, 2011 at 12:59 AM, Kfir Lavi <lavi.kfir@gmail.com> wrote:
>
>
> On Fri, May 6, 2011 at 1:46 PM, Andrea Conti <alyf@alyf.net> 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 its permissions or because it cannot
>> traverse one of its parent directories.
>>
>> andrea
>>
> So in short you need to use
> chmod -R...
> chown -R...
>
> Kfir
>
--
Best Regards,
Xi Shen (David)
http://twitter.com/davidshen84/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-05-09 2:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 10:27 [gentoo-user] php-cgi must be run as root? Xi Shen
2011-05-06 10:46 ` Andrea Conti
2011-05-06 16:59 ` Kfir Lavi
2011-05-09 2:10 ` Xi Shen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox