首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在XAMPP (Windows)上使用带有Auth Remoteuser扩展的Parsoid

在XAMPP (Windows)上使用带有Auth Remoteuser扩展的Parsoid
EN

Stack Overflow用户
提问于 2018-01-05 19:59:35
回答 1查看 602关注 0票数 1

上周,我一直在寻找一个关于如何在一起使用Visual /Parsoid和扩展的答案。

当我试图创建/编辑一个页面时,我得到了以下错误:

代码语言:javascript
复制
Error loading data from server: apierror-visualeditor-docserver-http: HTTP 500. Would you like to retry?

当前环境:

  • 操作系统: Windows 2012 RT
  • XAMPP: v3.2.2
  • PHP: v7.1.12
  • SQL: MariaDB 10.1.29
  • Apache: v2.4
  • MediaWiki: 1.30.0

LocalSettings.php

代码语言:javascript
复制
$wgEnableWriteAPI = true;

wfLoadExtension( 'VisualEditor' );

$wgDefaultUserOptions['visualeditor-enable'] = 1;
$wgDefaultUserOptions['visualeditor-editor'] = "visualeditor";
$wgHiddenPrefs[] = 'visualeditor-enable';

$wgVirtualRestConfig['modules']['parsoid'] = array(
    'url' => 'http://localhost:8000',
    'domain' => 'localhost',
);

config.yaml

代码语言:javascript
复制
mwApis:
  uri: 'http://localhost/api.php'
  domain: 'localhost'

httpd.conf

代码语言:javascript
复制
<Directory "D:/Wiki/htdocs">
    Options None 
    AllowOverride All 
    Order allow,deny 
    Allow from all 

    AuthType SSPI 
    SSPIAuth On 
    SSPIAuthoritative On 
    SSPIOfferBasic On 
    SSPIOmitDomain On 
    Require valid-user
</Directory>

当我从我的计算机到Parsoid服务器时,它正在工作。http://xx.xxx.xx.xx:8000。如果禁用Auth Remoteuser扩展,则Visual可以正常工作。

我试着按照Parsoid文档中的建议转发cookie,但它不起作用。这个Wiki不是私人的。

当我将以下内容添加到httpd.conf可视化编辑器中时,效果如下:

代码语言:javascript
复制
Allow from 127.0.0.1
Satisfy Any

唯一的问题是,它不会自动使用Windows凭据登录用户。

EN

回答 1

Stack Overflow用户

发布于 2019-05-18 20:05:17

可能有点晚了,但我也有同样的问题。看来解决了这个问题。只需注释php.ini error_reporting=E_ALL -> ;error_reporting=E_ALL中不推荐的设置即可

'error_reporting‘键在'PHP’部分下会引起问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48120475

复制
相关文章

相似问题

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