Hello,
Before all, sorry for my poor english skill :)
I've installed a rendering server on an internal machine (debian 5 on
a WMWare before installing on the final machine) which also hosts
mediawiki but I ran into an error when trying to get a PDF from my
wiki.
The error is : "An error occured on the render server: bad base_url
'
http://127.0.0.1/mediawiki2'. check your $wgServer and $wgScriptPath
variables".
After some searches I can't find the solution so if someone could help
me, it would be nice :)
My LocalSettings.php custom configurations are :
----------------------------------------------------------------------
require_once("$IP/extensions/Collection/Collection.php");
$wgCollectionMWServeURL = '
http://127.0.0.1:8899';
My mw-serve is launched with :
---------------------------------------------
LOG_PATH=/var/log/mw-lib
PID_FILE=/var/run/mw-lib/mw-serve.pid
su -c "/usr/bin/mw-serve \
--protocol=http \
--port=8899 \
--interface=127.0.0.1 \
--pid-file=$PID_FILE \
--daemon \
--logfile=$LOG_PATH/mw-serve.log \
--mwrender-logfile=$LOG_PATH/mw-render.log \
--mwpost-logfile=$LOG_PATH/mw-post.log \
--mwzip-logfile=$LOG_PATH/mw-zip.log" www-data
In my log files i ONLY have a mw-serve.log which contains :
-----------------------------------------------------------------------------------
2009-11-06T11:59:47
mw-serve.info >> serving http on
127.0.0.1:8899
2009-11-06T11:59:53
mwlib.serve.info >> Creating directory '/var/cache/
mw-serve/81/819c720d80f7ba7f'
2009-11-06T11:59:53 mwlib.serve.bad >> bad base_url: '
http://127.0.0.1/
mediawiki2'
localhost - - [06/Nov/2009 11:59:53] "POST / HTTP/1.1" 200 104
I've tried to run some tests :
----------------------------------------
# mw-render --config=
http://127.0.0.1/mediawiki2 --writer=rl --
output=./test.pdf Main_Page
Gives me a good PDF file
# mw-zip --config=
http://127.0.0.1/mediawiki2 --output=./test.zip
Main_Page
Gives me a ZIP file which contains json files and a revision*.txt
Does some see a mistake or something I could test to have it work ?
Thanks