我想请你帮助:
由于论坛CMS phpBB目前不支持>= php7.0,我不得不在我的Ubuntu16.04LTS服务器上切换到php5.6。因此从ppa:ondrej/php安装了php5.6文件,并通过:
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart
sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php..。我换成了php5.6。
不幸的是,这导致了我的MediaWiki的VisualEditor停止工作。在切换php之前,我与parsoid服务器进行了MediaWiki插件对话,一切都如愿以偿。另外,当我使用以下方法切换回php7.0时:
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php
..。wiki再次运行良好,但是带有phpBB功能的帖子(如phpBBCodes和标记)却未能提交。好的,php7.0版本不受支持,所以我不能抱怨,所以我试图让Parsoid与php5.6一起工作(应该支持这个版本)。
[warning] [{MY_PARSOID_CONF_PREFIX}/Hlavná_stránka] non-200 response: 401 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>401 Unauthorized</title> </head><body> <h1>Unauthorized</h1> <p>This server could not verify that you are authorized to access the document requested. Either you supplied the wrong credentials (e.g., bad password), or your browser doesn't understand how to supply the credentials required.</p> <hr> <address>Apache/2.4.18 (Ubuntu) Server at beta.abs4data.com Port 443</address> </body></html>
..。但是,现在我在日志中没有收到任何警告!即使在执行"sudo service parsoid状态“时,也会显示"/bin/sh -c /usr/bin/nodejs /usr/lib/parsoid/src/bin/server.js -c /etc/mediawiki/parsoid/parsoid/server.js -c /etc/mediawiki/parsoid/sets.js >> /var/ log /parsoid/parsoid.log 2>&1”,我希望这意味着向日志输出错误度量。
抱歉,错误的代码,但不知怎么坏了.看来我毕竟是个问题-D
发布于 2016-10-27 16:32:23
看来我找到了解决办法:
通过安装附加的php5.6软件包,问题得到了解决:
sudo apt-get install libxmlrpc-epi0 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xmlrpc我想说的是,问题在于缺少php5.6-curl包。我想,当我通过执行curl -L http://my.website.com:8142和curl -L http://my.website.com/wiki/api.php来测试Parsoid的功能时,我实际上使用的是php7.0's或其他无法用于Parsoid服务器应用程序(现在使用php5.6运行)的卷曲,因此它无法检索执行任务所需的文件。
对这一问题的评论仍然值得赞赏。
https://askubuntu.com/questions/842420
复制相似问题