How can i give permission to a folder in windows server IIS 7

强颜欢笑 提交于 2019-12-12 16:23:38

问题


I'm a PHP and windows Server newbie and I'm getting the following error when viewing a form that I created in PHP.

Error in exception handler: The stream or file "C:\inetpub\wwwroot\wrp\app\storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in C:\inetpub\wwwroot\wrp\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:84

I'm on a Windows 2008 Server R1 (64bit) running IIS 7 and PHP through Fast CGI. Except for this issue PHP is running fine on the server. I'm running PHPMyAdmin and a couple other PHP apps just fine. I confirmed that I have permissions set correctly (have even run php files at the directory and file level under full control to test)

Appreciate any suggestions on how to troubleshoot this issue. Also, are you aware of any forums or community sites geared just for those running PHP under FastCG on IIS 7?


回答1:


Applies To: Windows 7, Windows Server 2008 R2

When a file or folder is created, Windows assigns default permissions to that object.

Modify is the minimum permission required to complete this procedure. Review the details in "Additional considerations" in this topic.

To set, view, change, or remove permissions on files and folders

  1. Right-click the file or folder for which you want to set permissions, click Properties, and then click the Security tab.

  2. Click Edit to open the Permissions for dialog box.

  3. Do one of the following:

    • To set permissions for a group or user that does not appear in the Group or user names box, click Add. Type the name of the group or user you want to set permissions for, and then click OK.

    • To change or remove permissions from an existing group or user, click the name of the group or user.

  4. Do one of the following:

    • To allow or deny a permission, in the Permissions for box, select the Allow or Deny check box.

    • To remove the group or user from the Group or user names box, click Remove.



来源:https://stackoverflow.com/questions/29159380/how-can-i-give-permission-to-a-folder-in-windows-server-iis-7

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!