Re: Permission PHP IIS5.0
| From: | Frank M. Kromann | Date: | Tue, 18 Nov 2003 19:10:30 +0000 |
| Subject: | Re: Permission PHP IIS5.0 | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-22133@lists.php.net to get a copy of this message | ||
Hi,
IIS runs all anonymous requests (php or static files) as a user called
IUSR_<maschine name>, unless you changed that. You can either change the
user or you can grant this user the privileges you need.
- Frank
> hello,
>
> I'm having a problem with permissions to PHP in IIS 5.0. I'll be
thankful if someone help me.
>
> PHP (or user) doesn't have permission to write in a file with
fopen($arquivo,"w"), delete file with unlink() or move_uploaded_file().
>
> Errors:
> Warning: fopen(D:\krakatoa\webroot\Corpsite\cms\admin\editor\novo.htm):
failed to open stream: Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\EditorContentTransfer.php on line
33
> ============
> Warning: move_uploaded_file(tux_puro_wallpaper.jpg): failed to open
stream: Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\RandomPicture.php on line 20
> ==================
> Warning:
unlink(D:\krakatoa\webroot\Corpsite\cms\images\main_images\random_home\bd02.jpg):
Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\RandomPicture.php on line 41
>
>
> php.exe or user needs permissions?
> Some idea?
>
> Thank you very mutch.
>
> Best regards,
>
> Luiz Miguel Axcar
> Campinas, SP, Brasil
> +55 (19) 9749-6970
> lmaxcar@yahoo.com.br
> http://www.geocities.com/lmaxcar
> The penguin never sleeps.