在 Windows 7 上更改 XAMPP 中的 php 写入权限

2023-10-12php开发问题
2

本文介绍了在 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.

推荐答案

Windows 通常对读/写权限的限制较少.如果您没有将 XAMPP 安装到 C:ProgramFiles 中,则该设置文件权限不适用于您的安装.在不太可能的情况下,您的 PHP 日志显示有关文件权限的警告/错误,然后按照您的描述(使用设置 > 权限)更改它们是可行的方法.您只需要找出 apache 在哪个用户名下运行(通过管理工具、服务)并在适当的文件夹中为该用户添加读/写权限.

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.

简而言之,您可以忽略有关在 Windows 上设置文件权限的部分.

In short, you can ignore the sections on setting file permissions on Windows.

这篇关于在 Windows 7 上更改 XAMPP 中的 php 写入权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

PHP实现DeepL翻译API调用
DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以...
2025-08-20 php开发问题
168

PHP通过phpspreadsheet导入Excel日期数据处理方法
PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的...
2024-10-23 php开发问题
287

mediatemple - 无法使用 codeigniter 发送电子邮件
mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)...
2024-08-23 php开发问题
11

Laravel Gmail 配置错误
Laravel Gmail Configuration Error(Laravel Gmail 配置错误)...
2024-08-23 php开发问题
16

将 PHPMailer 用于 SMTP 的问题
Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)...
2024-08-23 php开发问题
4

关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题
Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)...
2024-08-23 php开发问题
17