Is hs-pandoc different from pacdoc proper? When you
say you can run >> it from a shell, are you running $hs-pandoc or $pandoc?
>
> On Wed, Jan 13, 2016 at 4:14 PM, Jon Theil Nielsen < jontheil(a)gmail.com
> <javascript:;>> wrote:
> > Dear list,
> >
> > On a server running FreeBSD 10.2-Release, I had no problems to configure
> > www/mediawiki125. I do not use many extensions but would like to use
> > Html2Wiki.
> > I have installed it according to the guide at
> >
https://www.mediawiki.org/wiki/Extension:Html2Wiki. Therefore, I also
> > installed textproc/hs-pandoc.
> > When I add the line "require_once
> > "$IP/extensions/Html2Wiki/Html2Wiki.php";" to LocalSettings.php
and
> > reloaded apache, the only thing to see on the wiki page is something like
> > "Html2Wiki requires pandoc.".
> > The pandoc command is in the path (I can run it from a shell).
>
> On FreeBSD, hs-pandoc is the main pacdoc port/package. If I run
> #pandoc -v
> the output is:
> "pandoc 1.15.0.6
> Compiled with texmath 0.8.3, highlighting-kate 0.6.
> Syntax highlighting is supported for the following languages:
> abc, actionscript, ada, agda, apache, asn1, asp, awk, bash, bibtex,
> boo, c,
> changelog, clojure, cmake, coffee, coldfusion, commonlisp, cpp, cs,
> css,
> curry, d, diff, djangotemplate, dockerfile, dot, doxygen, doxygenlua,
> dtd,
> eiffel, email, erlang, fasm, fortran, fsharp, gcc, glsl, gnuassembler,
> go,
> haskell, haxe, html, idris, ini, isocpp, java, javadoc, javascript,
> json,
> jsp, julia, kotlin, latex, lex, lilypond, literatecurry,
> literatehaskell,
> lua, m4, makefile, mandoc, markdown, mathematica, matlab, maxima,
> mediawiki,
> metafont, mips, modelines, modula2, modula3, monobasic, nasm, noweb,
> objectivec, objectivecpp, ocaml, octave, opencl, pascal, perl, php,
> pike,
> postscript, prolog, pure, python, r, relaxng, relaxngcompact, rest,
> rhtml,
> roff, ruby, rust, scala, scheme, sci, sed, sgml, sql, sqlmysql,
> sqlpostgresql, tcl, tcsh, texinfo, verilog, vhdl, xml, xorg, xslt, xul,
> yacc, yaml, zsh
> Default user data directory: /root/.pandoc
> Copyright (C) 2006-2015 John MacFarlane
> Web:
http://pandoc.org
> This is free software; see the source for copying conditions.
> There is no warranty, not even for merchantability or fitness
> for a particular purpose."
> Doesn't that seem correct?
Can you run pandoc -v as your normal User, not root?
Yes, as long as the user has a login shell, I can su to that user and get the same
output.
I had to be absolutely sure that the web server user (in this case www) could run the
command, so I did:su -u www pandoc -vwhich gave the exact same output.Somehow the
extension checks for the existence of the pandoc executable without success, while it
doesn't seem to fail on the actual use of the command. Or..? I still hope that some of
you clever persons can give me some advice. I would really like to be able to import both
my own Word documents and pages from other websites.Regards,Jon