首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >CKEditor与Wiris的集成: open_basedir限制

CKEditor与Wiris的集成: open_basedir限制
EN

Stack Overflow用户
提问于 2014-03-22 21:57:43
回答 4查看 2K关注 0票数 1

根据Wiris指南。

  1. 将包含在ckeditor/plugins/ckeditor_wiris/integration中的PHP文件授予web服务器用户执行权限。 我的设置:文件夹“集成”:755。此文件夹中的所有文件:754
  2. 向web服务器用户授予ckeditor/plugins/ckeditor_wiris/cache和ckeditor/plugins/ckeditor_wiris/公式目录的写权限。这些文件夹将用于存储公式MathML代码和时态图像。 为这些文件夹设置的775:→

但是,在尝试打开Wiris "Math弹出“时,我会收到以下警告,并且没有正确地打开。

警告: is_file():有效的open_basedir限制。File(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../../../lib/moodlelib.php)不在第39行/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php中允许的路径(/home/my_user_name:/usr/lib/php:/tmp)内,警告: is_file():open_basedir限制生效。File(/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/../../../../../../lib/moodlelib.php)不在第39行/home/my_user_name/public_html/ckeditor/plugins/ckeditor_wiris/integration/bootstrap.php中允许的路径内:(/home/my_user_name:/usr/lib/php:/tmp)

我的权限正确吗?这些警告是否与文件/文件夹权限有关?我正在使用www.serversfree.com网站托管来测试这个问题。

EN

回答 4

Stack Overflow用户

回答已采纳

发布于 2014-03-25 10:02:49

看起来你的安装有问题。请检查插件测试页面:<url>/ckeditor/plugins/ckeditor_wiris/integration/test.php。不应该有任何错误。请查看http://www.wiris.com/plugins/docs/ckeditor的安装说明。

票数 1
EN

Stack Overflow用户

发布于 2014-03-24 09:55:02

你的权限是正确的。这些警告与/integration/bootstrap.php文件中的额外检查有关,它检查工作目录以上几个级别的目录,由于服务器中的open_basedir限制,因此不允许这样做。这个问题将在我们的下一个插件版本中解决。要压制警告,只需对整个bootstrap.php文件进行注释,或者在<?php之后添加一个return true;

编辑:此问题目前已修复在我们的最新版本。

票数 0
EN

Stack Overflow用户

发布于 2014-03-24 20:36:02

谢谢,上面的答案在第一步就起了作用。但是,现在当我在Wiris窗口中键入一个等式并“接受”时,等效的图像不会在CKEditor中显示。发送回CKEditor窗口的公式URL似乎存在“问题”。下面是指向CKEditor中图像的链接(否则CKEditor部件是正确的)

代码语言:javascript
复制
/ckeditor//plugins/ckeditor_wiris/integration/showimage.php?        formula=392b9defa8cb3eaf2f8fec0cf3993738.png**<!-- www.serversfree.com Analytics Code --><script src="http://www.serversfree.com"></script><noscript><a title="Free hosting servers" href="http://www.serversfree.com">Free servers</a><a title="Free websites hosting server" href="http://www.serversfree.com">Free websites hosting server</a><a title="Free hosting server features" href="http://www.serversfree.com/server-features/">Free server features</a><a title="Free hosting" href="http://www.bugs3.com">Free hosting</a><a title="Page rank" href="http://www.1pagerank.com">Page rank</a></noscript><script type="text/javascript">  var _gaq = _gaq || [];  _gaq.push(['_setAccount', 'UA-24425628-3']);  _gaq.push(['_setDomainName', window.location.host]);  _gaq.push(['_setAllowLinker', true]);  _gaq.push(['_trackPageview']);  (function() {    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);  })();</script><script type="text/javascript" src="http://www.bugs3.com/ganalytics.js"></script><!-- End Of Analytics Code -->
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22584146

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档