CKFinder 的 AJAX POST 问题
我们正在为我们的一个站点使用 CKFinder,它一直运行良好,直到我们迁移到新的专用服务器(与旧服务器类似但不完全相同)。现在我们无法上传,AJAX 请求永远不会完成。
通过在 Firebug 中监控它,它尝试 POST 到此处: http://www.site.com/temp/ckfinder/core/connector/php/connector.php?command=FileUpload&type=Files¤tFolder=%2F&hash=4f9cdbbb1e295966& langCode=en&=
但从未得到响应。
这与两台 WIMP 服务器上安装的 CKFinder 相同,其中一台工作正常,另一台则不行。知道我们应该在哪里解决这个问题吗?也许是 php.ini?
任何帮助都会很棒,因为我们现阶段没有任何线索。谢谢
We're using CKFinder for one of our sites, which has been working fine for us until we moved to a new dedicated server (which is similar but not exactly the same as the old server). Now we cant upload, the AJAX request simply never finishes.
From monitoring it in Firebug it attempts to POST to here:
http://www.site.com/temp/ckfinder/core/connector/php/connector.php?command=FileUpload&type=Files¤tFolder=%2F&hash=4f9cdbbb1e295966&langCode=en&=
but never gets a response.
This is the same CKFinder install on both WIMP servers, one works fine one doesnt. any idea where we should be looking to fix this problem? php.ini maybe?
any help would be great as we havent a clue at this stage. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的第一个倾向是检查服务器权限..或更具体地说,检查该目录中的文件夹/文件权限。 Apache 必须具有该文件夹的写入权限才能使任何上传机制成功运行。
当然,我指的不是connector.php 所在的文件夹,而是CKFinder 设置为默认上传位置的文件夹。例如,如果您的服务器是基于 Linux 的,您可以尝试以下操作:
如果您在 Red Hat 或 CentOS 上运行,则可能类似于 /var/www/vhosts/site.com/public_html (对于文档根目录) )。如果您已经设置了虚拟主机。如果没有,您会在 /var/www/public_html 等路径中找到它。
My first inclination would be to check server permissions..or more specifically folder/file permissions in that directory. Apache must have write privileges to that folder in order for any upload mechanism to work successfully.
Of course, I'm not referring to the folder in which connector.php resides but rather the folder that CKFinder has setup as its default upload location. For example, if you're server is linux-based you could try this:
If you're running on Red Hat or CentOS it would probably be something like /var/www/vhosts/site.com/public_html (for the document root). That's if you've setup virtual hosts. If not, you would find it in a path like /var/www/public_html.