[nycphp-talk] shell exec
Michael Novak
thenov at gmail.com
Thu May 24 11:09:23 EDT 2007
thanks, where would those permissions live?
-mike
On 5/24/07, Andy Dirnberger <dirn at dirnonline.com> wrote:
> You need to check the execute permissions on the utility you are trying to
> run. The Apache user may have execute permission on the other utilities you
> are using and just not the one in question.
>
> -----Original Message-----
> From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
> Behalf Of Michael Novak
> Sent: Thursday, May 24, 2007 10:45 AM
> To: NYPHP Talk
> Subject: Re: [nycphp-talk] shell exec
>
> It could be permissions even though I can run other commands through
> the same script?
>
> On 5/24/07, Ajai Khattri <ajai at bitblit.net> wrote:
> > On Wed, 23 May 2007, Michael Novak wrote:
> >
> > > I am trying to run a foundation tool on os x through the shell
> > > exec script. It is not working though. I have successfully run other
> > > command line functions and it worked. I then copy and pasted the
> > > command call in the php script into the terminal thinking there could
> > > be a typo but it worked in the terminal.
> > >
> > > Is there something I am missing?
> >
> > You may recall, that PHP scripts run under the same username as the user
> > running the Apache server. So, any scripts you run from a PHP script will
> > run as that user and not as you.
> >
> > Therefore it could be permissions or some other issue that does not allow
> > the script to run. You could look through your web server error logs and
> > see if any messages are logged there.
> >
> >
> >
> > --
> > Aj.
> >
> > _______________________________________________
> > New York PHP Community Talk Mailing List
> > http://lists.nyphp.org/mailman/listinfo/talk
> >
> > NYPHPCon 2006 Presentations Online
> > http://www.nyphpcon.com
> >
> > Show Your Participation in New York PHP
> > http://www.nyphp.org/show_participation.php
> >
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
>
> _______________________________________________
> New York PHP Community Talk Mailing List
> http://lists.nyphp.org/mailman/listinfo/talk
>
> NYPHPCon 2006 Presentations Online
> http://www.nyphpcon.com
>
> Show Your Participation in New York PHP
> http://www.nyphp.org/show_participation.php
>
More information about the talk
mailing list