htdocs 中创建项目权限被拒绝

发布于 2024-12-17 20:46:13 字数 787 浏览 2 评论 0原文

我刚刚在 Windows 7 上下载了 Zend Server。当我尝试在 apache2/htdocs 文件夹中创建项目时,我收到以下错误声明:

C:\Program Files (x86)\Zend\Apache2\htdocs>zf create project newproject
PHP Warning:  mkdir(): Permission denied in C:\Program Files (x86)\Zend\ZendServ
er\share\ZendFramework\library\Zend\Tool\Project\Provider\Project.php on line 55


Warning: mkdir(): Permission denied in C:\Program Files (x86)\Zend\ZendServer\sh
are\ZendFramework\library\Zend\Tool\Project\Provider\Project.php on line 55
                     An Error Has Occurred
Could not create requested project directory 'newproject'

Zend Framework Command Line Console Tool v1.11.10
Details for action "Create" and provider "Project"
Project
  zf create project path name-of-profile file-of-profile

知道那是什么吗?

I just downloaded the Zend Server on Windows 7. When I try and create a project in the apache2/htdocs folder, I get the following error statement:

C:\Program Files (x86)\Zend\Apache2\htdocs>zf create project newproject
PHP Warning:  mkdir(): Permission denied in C:\Program Files (x86)\Zend\ZendServ
er\share\ZendFramework\library\Zend\Tool\Project\Provider\Project.php on line 55


Warning: mkdir(): Permission denied in C:\Program Files (x86)\Zend\ZendServer\sh
are\ZendFramework\library\Zend\Tool\Project\Provider\Project.php on line 55
                     An Error Has Occurred
Could not create requested project directory 'newproject'

Zend Framework Command Line Console Tool v1.11.10
Details for action "Create" and provider "Project"
Project
  zf create project path name-of-profile file-of-profile

Any idea what that's about?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如梦 2024-12-24 20:46:13

只是为了正式说明

您用来创建项目的用户没有对 C:\Program Files (x86)\Zend\Apache2\htdocs> 的写入权限,顺便说一下,默认情况下,只有管理员对 *C:\Program Files (x86)* 及其子文件夹具有写入权限。

要授予自己写入权限:

  1. 从资源管理器中右键单击此文件夹
  2. 选择“属性”
  3. 转到“安全”选项卡
  4. 单击“高级”按钮
  5. 在“权限”选项卡中确保您的用户具有写入/修改权限

应该这样做窍门!

Just to make it official

The user which you're using to create the project doesn't have write permissions on C:\Program Files (x86)\Zend\Apache2\htdocs>, by the way, only admins have write permissions on *C:\Program Files (x86)* and it's subfolders by default.

To give yourself write permissions:

  1. Right click this folder from the explorer
  2. Select "properties"
  3. Go to the "security" tab
  4. Click on the "advanced" button
  5. In the "permissions" tab make sure that your user has write/modify permission

That should do the trick!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文