cakephp:警告 512 /tmp/cache/ 在共享主机 justhost 上不可写

发布于 2024-12-27 13:46:42 字数 618 浏览 0 评论 0原文

当我访问 www.merryflowers.com/webroot/ 时,我收到以下警告。根据我从上一篇文章(cakephp:在共享主机 justhost 上配置 cakephp)中获得的指导,我右键单击 app/tmp/ (在远程服务器上)及其中的所有文件夹,并将权限设置为可写(即777)。但我仍然收到同样的警告。

由于我使用的是 Windows 7(chmod 不起作用),我还在 tmp 文件夹的命令提示符下尝试了 CACLS。由于我不熟悉 CACLS,因此我不知道使 tmp 对所有人可写的确切命令。有人可以帮我吗?谢谢。

 Warning (512): /home/aquinto1/public_html/merryflowers.com/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 278].php, line 429
Warning (512): /models/ is not writable [CORE/cake/libs/cache/file.php, line 278]
Warning (512): /persistent/ is not writable [CORE/cake/libs/cache/file.php, line 278]

When I go to www.merryflowers.com/webroot/ i'm getting the following warnings. Based on the guidance i got from my previous post (cakephp: configuring cakephp on shared host justhost), I right clicked on the app/tmp/ (on the remote server) and all the folders within that and set the permission to be writable (ie. 777). But I'm still getting the same warnings.

Since i'm using windows 7 (chmod doesn't work), I also tried CACLS on the command prompt for tmp folder. Since i'm not familiar with CACLS, i don't know the exact command to make tmp writable to all. Can someone please help me out. Thank you.

 Warning (512): /home/aquinto1/public_html/merryflowers.com/tmp/cache/ is not writable [CORE/cake/libs/cache/file.php, line 278].php, line 429
Warning (512): /models/ is not writable [CORE/cake/libs/cache/file.php, line 278]
Warning (512): /persistent/ is not writable [CORE/cake/libs/cache/file.php, line 278]

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

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

发布评论

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

评论(1

讽刺将军 2025-01-03 13:46:42

您的网站是否在 Windows 计算机上本地托管(例如通过 XAMPP 或 WAMP 等)?这些是 *nix 路径,而不是 Windows 路径。

您是否通过 FTP 访问您的网站(例如使用 FTP 客户端)并更改了权限?通过 FTP 客户端执行此操作并不总是 100% 可靠。看起来您更改了 /tmp 上的权限,但它们并没有像您想象的那样级联到 /tmp/cache 等。尝试将它们一一设置。

根据您的其他帖子 - cakephp:在共享主机 justhost 上配置 cakephp - 您的网站已设置远程托管。我简单地查看了他们的服务,从他们的外观来看,您可能可以远程(又名“shell”或“ssh”)到您的服务器并访问命令行。如今,许多网络主机都提供了此功能,尽管您可能需要特别要求他们为您启用它。

在 Windows 计算机上,您可以使用 PuTTY 进入远程服务器: http: //www.chiark.greenend.org.uk/~sgtatham/putty/

HTH。 :)

Is your site hosted locally on your Windows machine, like through XAMPP or WAMP, etc? Those are *nix paths, not Windows paths.

Did you FTP to your sites - like, with an FTP client - and change the permissions? Doing this through FTP clients isn't always 100% reliable. It looks like you changed the perms on /tmp, but they didn't cascade to /tmp/cache, etc. like you thought. Try setting them all one by one.

According to your other post - cakephp: configuring cakephp on shared host justhost - your site is set up with remote hosting. I looked at their service briefly, from the looks of them, you can probably remote (aka, "shell" or "ssh") into your server and get access to the command line. A lot of webhosts provide this these days, although you may have to specifically request they enable it for you.

On a Windows machine, you can use PuTTY to shell into your remote server: http://www.chiark.greenend.org.uk/~sgtatham/putty/

HTH. :)

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