server - MediaWiki's VisualEditor component Parsoid not working after switching php7.0 to php5.7 - Ask Ubuntu
i ask with:
because of forum cms phpbb not supporting >= php7.0 had switch php5.6 on ubuntu16.04 lts server. installed php5.6 files ppa:ondrej/php , :
sudo a2dismod php7.0 ; sudo a2enmod php5.6 ; sudo service apache2 restart sudo ln -sfn /usr/bin/php5.6 /etc/alternatives/php
... switched php5.6.
unfortunately, caused mediawiki's visualeditor stop working. made mediawiki plug-in talk parsoid server before switching php , working expected. also, when switched php7.0 using:
sudo a2dismod php5.6 ; sudo a2enmod php7.0 ; sudo service apache2 restart sudo ln -sfn /usr/bin/php7.0 /etc/alternatives/php
... wiki working fine once again, posts phpbb functionalities phpbbcodes , tags failing submitted. php7.0 version unsupported cannot complain, trying make parsoid work php5.6 (which should supported).
error displayed when:
- clicking "edit" tab should invoke visualeditor: visualeditor "edit" - 500 error
- clicing "save" button when creating new wiki page using visualeditor: visualeditor "save" - unknown error
other error (posible) simptoms:
- i got above mentioned errors when configuring visualeditor parsoind on server first time. solved them installing , cofiguring extension:networkauth on mediawiki. when getting 500 (on php7.0) before work getting warning message on parsoid log:
[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 not verify authorized access document requested. either supplied wrong credentials (e.g., bad password), or browser doesn't understand how supply credentials required.</p> <hr> <address>apache/2.4.18 (ubuntu) server @ beta.abs4data.com port 443</address> </body></html>
... however, dont warnings in log! when performing "sudo service parsoid status" shows "/bin/sh -c /usr/bin/nodejs /usr/lib/parsoid/src/bin/server.js -c /etc/mediawiki/parsoid/server.js -c /etc/mediawiki/parsoid/settings.js >> /var/log/parsoid/parsoid.log 2>&1" hope means outputing error measseages log.
i tried:
- parsoid service restart -> went ok, no errors or warnings
- apache2 service restart -> went ok, no errors or warnings
- ubuntu server reboot -> didn't help
- retriving parsoid server dashboard by: "curl -l {address of vebsite}:8142" -> retriving correct file -> parsoid running
- retriving mediawiki api php file: "curl -l {address of vebsite}.api.php" -> isretriving right file -> mediawiki api accesible server
- as described on mediawiki parsoid/troubleshooting tried suply mediawiki text parsoid manually "curl -l" , html. working expected , got html code.
possible cause:
- i think visualeditor not comunicating parsoid server app on server. both seems running , configured well. however, after changing php version stopped cominicating. so, think parsoid or/and visualeditor somehow bind use php7.0 disabled , creating sym link ln -sfn didn't tell visualeditor/parsoid use php5.6.
what think? suggestion how solve or further test problem?
p.s. sorry badly formated code in question, somehow broke ... seems problem after :-d
it seems found solution:
by installing addition php5.6 packages problem resolved:
sudo apt-get install libxmlrpc-epi0 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xmlrpc
i problem in missing php5.6-curl
package. think when tested functionality of parsoid executing curl -l http://my.website.com:8142
, curl -l http://my.website.com/wiki/api.php
in fact using php7.0's or other curl not available parsoid server app (now running php5.6) cannot retrieved files needed perform task.
comments on problem still appreciated.
Comments
Post a Comment