在 Windows 7 上的 XAMPP 中更改 php 写入权限
我正在尝试在 XAMPP 中安装基于文件的博客引擎,但所有这些项目都需要更改写入权限。我假设他们谈论的不是可以通过“属性”访问的 Windows 设置。知道在哪里/如何改变这个吗?似乎是一个简单的问题,但我还不够。谢谢。
I'm trying to install a file-based blog engine in XAMPP, but all of these projects require write permissions to be changed. I'm assuming they are not talking the Windows setting that can be accessed through 'properties'. Any idea where/how to change this? seems like an easy question but i'm coming up short. Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Windows 通常对读/写权限的限制较少。如果您没有将 XAMPP 安装到 C:\ProgramFiles 中,则该设置文件权限很可能不适用于您的安装。在不太可能的情况下,您的 PHP 日志显示有关文件权限的警告/错误,然后像您所描述的那样更改它们(设置 > 权限)是可行的方法。您只需找出 apache 正在哪个用户名下运行(通过管理工具、服务),并在相应的文件夹中为该用户添加读/写权限。
简而言之,您可以忽略有关在 Windows 上设置文件权限的部分。
Windows is generally less restrictive about read/write-permissions. If you did not install XAMPP into C:\ProgramFiles chances are good, that setting file-permissions does not apply to your installation. In the unlikely case, that your PHP-log shows warnings/errors regarding file permissions, then changing them like you described (with settings > permissions) is the way to go. You just have to find out, under which user name apache is running (via Administrative Tools, Services) and add read/write permissions for that user in the appropriate folder.
In short, you can ignore the sections on setting file permissions on Windows.
基本上,Apache 运行的用户需要能够写入文件。
因此,首先,检查进程列表以确定是哪个用户。然后只需授予该用户对这些文件/文件夹的写入权限。
(我不是 XAMPP 或 Win 7 用户,因此无法给出确切的指示,但我相信您会解决的。)
Basically, the user that Apache runs as needs to able to write to the files.
So firstly, check process list to determine which user that is. Then simply give that user write permission to those files/folders.
(I'm not a XAMPP or Win 7 user so can't give exact directions but I'm sure you'll work it out.)