Re: Could someone look at my problem in shell-exec?
| From: | R'twick Niceorgaw | Date: | Thu, 22 May 2003 20:29:53 +0000 |
| Subject: | Re: Could someone look at my problem in shell-exec? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148635@lists.php.net to get a copy of this message | ||
Apache doesn't run as you .. most probably it will be something like apache
or nobody or www (to find out check with your server admin or see in apache
httpd.conf file for User directive) you need to give write permission to
that user in the directory where you are creating the tar files.
R'twick
----- Original Message -----
From: "love jiangnan" <lovejiangnan2003@yahoo.com>
To: "R'twick Niceorgaw" <public@utkalika.net>
Sent: Thursday, May 22, 2003 4:19 PM
Subject: Re: [PHP] Could someone look at my problem in shell-exec?
> I am not sure. I use the webpage space from my
> university. Do you think it is possible the problem
> of written permission?
>
> Thank you very much.
>
> LJ
> --- R'twick Niceorgaw <public@utkalika.net> wrote:
> > Does apache has write permission in the directory
> > where you are trying to
> > create the file?
> >
> > ----- Original Message -----
> > From: "love jiangnan" <lovejiangnan2003@yahoo.com>
> > To: <php-general@lists.php.net>
> > Sent: Thursday, May 22, 2003 4:12 PM
> > Subject: [PHP] Could someone look at my problem in
> > shell-exec?
> >
> >
> > > Hello, everybody,
> > >
> > >
> > > I am a new user in PHP. When I try to execute
> > shell
> > > command in php, I met some problem.
> > >
> > >
> > > Either I running shell_exec or backstick(``), when
> > I
> > > asked server to run tar command, it did not
> > respond.
> > >
> > > For example, if I type
ls -al, cd
> > > $dir, `more
> > > $file`, the server worked properly. However, when
> > I
> > > type `tar cvf a.out $filename', it doesn't work.
> > When
> > > I type tar tvf b.out(b.out is the result when I
> > run
> > > tar on server instead from php`), it works OK.
> > >
> > > Does someone else meet the same problem like me?
> > If
> > > the server is in safemode, it should not run any
> > shell
> > > command in php, right? Since my server can run
> > other
> > > shell command, why cannot it run tar cvf?
> > >
> > > I had read a lot about it from manul but did not
> > get
> > > the answer. could you help me?
> > >
> > > Thank you very much.
> > >
> > > LJ
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > The New Yahoo! Search - Faster. Easier. Bingo.
> > > http://search.yahoo.com
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit:
> > http://www.php.net/unsub.php
> > >
> > >
> >
> >
>
>
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
>