Question
Hi
To speed up our twiki site, I have added the use of modperl in my TWiki installation (TWiki-4.0.4-2, Tue, 23 Jul 2006, build 10807, Plugin API version 1.1). To have something working, I had to add the path to the TWiki lib in mod_perl_startup.pl
> more mod_perl_startup.pl
$ENV{MOD_PERL} =~ /mod_perl/ or die "mod_perl_startup called, but mod_perl not used!";
use lib qw( /sites/atlasfrance/cgi-bin/twiki/bin /sites/atlasfrance/cgi-bin/twiki/lib );
require 'setlib.cfg';
1;
I had already
$twikiLibPath = "/sites/atlasfrance/cgi-bin/twiki/lib"; in LocalLib.cfg.
Before all worked fine(diff, search ...). Now I can just view the topic.
When I use the diff :
| 29 Nov 2006 - 17:16 | exec failed(/sites/atlasfrance/cgi-bin/tools/bin/rcsdiff -q -w -B -r%REVISION1|N% -r%REVISION2|N% -ko --unified=%CONTEXT|N
% %FILENAME|F%): No such file or directory at /sites/atlasfrance/cgi-bin/twiki/lib/TWiki/Sandbox.pm line 319.
but
> ls -l /sites/atlasfrance/cgi-bin/tools/bin/rcsdiff
-rwxr-xr-x 1 karim w3atlasf 458752 Sep 4 12:03 /sites/atlasfrance/cgi-bin/tools/bin/rcsdiff
and a similar error when I try to save a new topic (or to modify it and save it).
The webserver is apache2 running on
SunOS. I have installed the GNU tools for grep ...
In the apache conf file of our site (I am not the administrator of the webserver), we have
...
PerlRequire /sites/atlasfrance/cgi-bin/twiki/tools/mod_perl_startup.pl
# Turn on taint checking
PerlSwitches -T
</VirtualHost>
</IfDefine>
Thanks for any advice.
Karim
Environment
--
KarimBernardet - 01 Jan 2007
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
You both use
atlas and
atlasfrance and you have
site and
sites
Are those typos in this topic or have you mixed it all up?
--
KennethLavrsen - 02 Jan 2007
Sorry those are only typos, things are not mixed in the configuration files.
Karim
--
KarimBernardet - 02 Jan 2007
It sounds very much like the path to the rcsdiff program is wrong.
--
CrawfordCurrie - 02 Jan 2007
the path to rcsdiff is correct :
>
ls -l /sites/atlasfrance/cgi-bin/tools/bin/rcsdiff
-rwxr-xr-x 1 kbernard w3atlasf 458752 Sep 4 12:03 /sites/atlasfrance/cgi-bin/tools/bin/rcsdiff
and I hadnt any problem brfore using modperl
--
KarimBernardet - 09 Jan 2007
I suggest you enable tracing in the Sandbox module (open lib/TWiki/Sandbox.pm, and set TRACE to on - it's explained in the file). Then run the diff command. The
real command that TWiki tried to run should be output in the webserver error log. Copy that command and paste it on the command line, and observe what error messages are returned.
--
CrawfordCurrie - 21 Feb 2007
Sorry, closing this question after more than 30 days...
--
PeterThoeny - 02 Apr 2007