Re: using PHP as ROOT
| From: | Fred | Date: | Fri, 18 Jan 2002 03:03:42 +0000 |
| Subject: | Re: using PHP as ROOT | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-5619@lists.php.net to get a copy of this message | ||
I do not think it is a very wise idea to give any type of root access to
your php scripts. This is a disaster waiting to happen. You can accomplish
the same thing by having your php scripts manipulate template files, which
are exact copies of the files you want to edit. Then have a root cron job
copy the template file to the actual file every minute or so.
Fred
Robert Abbate <accounts@ispconcepts.com> wrote in message
news:20020116071118.34959.qmail@pb1.pair.com...
> Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> change permissions of files etc...
>
> however, I cannot do it! Even if I give the php scripts root ownership, it
> still says that apache is the owner of the files, and hence, I can't do
> anything with them.
>
> Does anyone have any insight?
>
> Thanks,
> Robert A
>
>