我是一个PHP和windows新手,在查看我用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
我在Windows2008Server R1 (64位)上,通过快速CGI运行IIS 7和PHP。除了这个问题,PHP在服务器上运行正常。我正在运行PHPMyAdmin和其他几个PHP应用程序。我确认我的权限设置正确(甚至在完全控制下运行了目录和文件级别的php文件以进行测试)
感谢您对如何解决此问题的任何建议。另外,您是否知道有任何论坛或社区网站专门为那些在IIS 7上FastCG下运行PHP的用户提供服务?
发布于 2015-03-19 22:40:49
适用于: Windows 7,Windows 2008 R2
创建文件或文件夹时,Windows会为该对象分配默认权限。
修改是完成此过程所需的最低权限。查看本主题中“附加注意事项”中的详细内容。
设置、查看、更改或删除对文件和文件夹的权限
- 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.
- 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
复制