PHP 错误“未指定输入文件”从符号链接调用tinyMCE时

发布于 2024-11-11 07:37:49 字数 625 浏览 0 评论 0原文

我将 tinyMCE 与 PHP 压缩器一起使用。我希望将其放在一个文件夹中,供我的服务器上需要它的所有域使用,而不是为每个站点复制一个副本。但是,因为我知道 它不是跨域,所以我想我可以把它在每个站点都可以通过符号链接访问的文件夹中。

但我收到了这个 PHP 错误:

No input file specified.

我的印象是它与 tinyMCE 本身的关系不如与符号链接的关系,但我没有任何线索。

有谁知道吗?

谢谢!

更新:
经过大量挖掘,这似乎与 Apache 有关。 PHP是通过FCGId运行的,好像是权限错误。但是,如果我使用 mod_php 运行它,则会收到错误 500。

解决方案:
把它作为一个真正的答案,这样问题就不是没有答案......见下文

I use tinyMCE with the PHP compressor. I would like to have it in a single folder, used by all the domains needing it on my server, instead of a copy for each site. However, since I know it's not cross-domains, I thought I could put it in a folder that each site could reach through a symlink.

But I'm getting this PHP error:

No input file specified.

I have the impression it has less to do with tinyMCE itself than with the symlink, but I don't have a clue.

Does anyone know?

Thanks!

UPDATE:
After lots of digging, it seems to have to do with Apache. PHP is run through FCGId, and it seems to be a permission error. However I get an error 500 if I run it with mod_php.

SOLUTION:
Putting it as a real answer so the question is not unanswered... See below

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

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

发布评论

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

评论(1

迷乱花海 2024-11-18 07:37:49

我已将tinyMCE 放在与静态服务器相同的文件夹中,因此位于另一个虚拟主机中。问题是权限冲突;虚拟主机之间似乎不能很好地协同工作。将tinyMCE库放在/home(或/www)之外的文件夹中并属于根目录已经解决了这个问题:符号链接在所有域上都能正常工作,并且PHP压缩器也能完成其工作。 :)

I had put tinyMCE in the same folder as my static server, so in another vHost. The issue was a permission conflict; vHosts seem to not work well with one another. Putting the tinyMCE library in a folder outside /home (or /www) and beloging to root has solved the issue: the symlinks work fine on all domains and the PHP compressor does its job. :)

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