htdocs 中创建项目权限被拒绝
我刚刚在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
只是为了正式说明
您用来创建项目的用户没有对 C:\Program Files (x86)\Zend\Apache2\htdocs> 的写入权限,顺便说一下,默认情况下,只有管理员对 *C:\Program Files (x86)* 及其子文件夹具有写入权限。
要授予自己写入权限:
应该这样做窍门!
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:
That should do the trick!