伊伊+ EasyPHP 运行时路径不可写?

发布于 2024-12-21 05:46:03 字数 241 浏览 4 评论 0原文

我正在尝试运行 Yii 程序,但收到错误:

应用程序运行时路径“C:\Program Files\EasyPHP-5.3.8.1\www\project\protected\runtime”无效。请确保它是 Web 服务器进程可写的目录。

这是否意味着我必须更改 EasyPHP 内部的某些内容?我尝试通过目录 - >属性 - >安全添加权限并更改权限以允许所有内容,但这没有任何作用。我不知道从这里该去哪里。有什么想法吗?

I'm trying to get a Yii program running, but I get the error:

Application runtime path "C:\Program Files\EasyPHP-5.3.8.1\www\project\protected\runtime" is not valid. Please make sure it is a directory writable by the Web server process.

Does this mean I have to change something inside EasyPHP? I've tried adding permissions through directory->properties->security and changing the permissions to allow everything, but that did nothing. I have no idea where to go from here. Any ideas?

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

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

发布评论

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

评论(2

長街聽風 2024-12-28 05:46:03

我在使用 Yii 时遇到了这个问题。 Yii 创建了很多空文件夹。我使用 GIT 存储库在生产环境和我的开发计算机之间工作。 GIT 默认情况下不保存空文件夹。因此,当我在我的 DEV 机器上工作时,我克隆了删除所有空项目的存储库。在 Linux 计算机上从存储库的根目录使用此命令,将空的“.gitignore”文件放入每个空目录中。这将确保 git 索引并保存它们。

<代码>查找 . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;

I had this problem with Yii. Yii creates a lot of empty folders. And I was using a GIT repository to work between the production environment and my DEV machine. GIT by default doesn't save empty folders. So when I was working on my DEV machine, I cloned the repo minus all the empties. Use this command on a Linux machine, from the root of your repo, to put empty ".gitignore" files in each of the empty directories. This will make sure git indexes and saves them.

find . \( -type d -empty \) -and \( -not -regex ./\.git.* \) -exec touch {}/.gitignore \;

听不够的曲调 2024-12-28 05:46:03

这要么意味着该目录不存在,要么您需要使用正确的权限对其进行 CHMOD。 chmod -R 777 runtime

由于您使用的是 Windows,因此不需要 CHMOD 任何内容。您绝对确定运行时目录存在吗?

否则我建议使用 xampp。我在本地运行 yii 没有任何问题。

That either means the directory doesn't exist or you need to CHMOD it with the right permissions. chmod -R 777 runtime

Since you're on windows, you shouldn't need to CHMOD anything. Are you absolutely sure that the runtime directory exists?

Otherwise I would suggest using xampp. I'm running yii on it locally with no problems.

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