错误:访问被拒绝 - 安装PHP [英] Error: Access is denied - Installation of PHP

查看:90
本文介绍了错误:访问被拒绝 - 安装PHP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

参考配置FastCGI以托管PHP应用程序(IIS 7)中的步骤) [ ^ ],我试图安装和配置PHP。我一步一步地按照程序,还创建了php.ini文件。然后我通过命令提示测试了PHP安装:

Referring to the procedure in Configuring FastCGI to Host PHP Applications (IIS 7)[^], I tried to install and configure PHP. I followed the procedure step-by-step, and also created the php.ini file. Then I tested the PHP installation by command propmpt:

C:\PHP>php –info



然后我得到Access被拒绝。我检查了C:\PHP文件夹的属性。在常规选项卡中,该文件夹是只读的。在安全性设置中,所有用途都具有租用读取权限。我还应该检查/设置什么来消除Access问题?谢谢。


Then I got Access is denied. The I checked the C:\PHP folder's properties. From the General Tab, the folder is Read-only. In the Security setup, all of the uses have at lease Read permission. What else should I check / setup to eliminate the Access problem? Thanks.

推荐答案

在您的问题的评论中,问题是您的文件夹访问权限。提供写入权限后,继续执行。



但问题是找不到库(dll)。修补机器无法解决这个问题。您需要下载库并确保它可用。我的结论是,当您上次运行安装程序时,它尝试保存该库但无法执行。这就是为什么没有找到库(预期的位置)。



解决方案是删除PHP组件然后重新安装它们。确保提供了写入权限,然后使用安装程序重新安装。您可能希望首先运行卸载程序。
As in the comments to your question the problem was the permissions to your folder access. Once you provided the write permissions the execution continued.

However, the problem is with a library (dll) not found. This cannot be solved by tinkering the machine. You need to download the library and make sure it is available. My conclusion is that when you ran the installer last time, it tried to save that library but was not able to. That is why the library is not found (where it is being expected).

Solution would be, to remove the PHP components and then re-install them. Make sure write permissions are provided and then re-install it using the installer. You may want to run uninstaller first.


这篇关于错误:访问被拒绝 - 安装PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆