Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot

Links

XODOX
Impressum

#1: problem with mod_perl and twiki

Posted on 2011-09-19 19:38:06 by Carla von Reitzenstein

--0015174bf1da40d7c704ad4ece16
Content-Type: text/plain; charset=ISO-8859-1

Hello,

I tried to use my TWiki under mod_perl, but after enabling mod_perl the
design is broken.
To enable mod_perl I've added the following to my twiki configfile for
apache:
<FilesMatch "^(?!configure)[a-z.]+$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
PerlSendHeader On
PerlOptions +ParseHeaders
</FilesMatch>

The error log gives the following error for any picture in the TWiki:
[Mon Sep 19 19:16:11 2011] [error] Unrecognized character \\x10 in column
241 at /var/www/twiki/pub/TWiki/TWikiDocGraphics/group.gif line 1.\n

and for Javascript code:
[Mon Sep 19 19:16:10 2011] [error] syntax error at
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 2, near "#line 1
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js\n// TWiki
namespace\n"\nsyntax error at
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 4, near ")
{"\nsyntax error at /var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js
line 10, near "head["\nsyntax error at
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 13, near
"head["\nsyntax error at
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 17, near
"}\n }"\nsyntax error at
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 22, near "// Get
all "\nsyntax error at /var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js
line 31, near "elms["\nsyntax error at
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 37, near ";\n}"\n


I'd be glad about any suggestion.

Thanks,
Carla

--0015174bf1da40d7c704ad4ece16
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<br><br>I tried to use my TWiki under mod_perl, but after enabling mo=
d_perl the design is broken.<br>To enable mod_perl I&#39;ve added the follo=
wing to my twiki configfile for apache:<br>=A0&lt;FilesMatch &quot;^(?!conf=
igure)[a-z.]+$&quot;&gt;<br>
   SetHandler perl-script<br>   PerlResponseHandler ModPerl::Regist=
ry<br>   PerlSendHeader On<br>   PerlOptions +ParseHeaders<br>&lt;/=
FilesMatch&gt;<br><br>The error log gives the following error for any pictu=
re in the TWiki:<br>
[Mon Sep 19 19:16:11 2011] [error] Unrecognized character \\x10 in column 2=
41 at /var/www/twiki/pub/TWiki/TWikiDocGraphics/group.gif line 1.\n<br><br>=
and for Javascript code:<br>[Mon Sep 19 19:16:10 2011] [error] syntax error=
at /var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 2, near &quo=
t;#line 1 /var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js\n// TWiki n=
amespace\n&quot;\nsyntax error at /var/www/twiki/pub/TWiki/TWikiJavascripts=
/twikilib.js line 4, near &quot;) {&quot;\nsyntax error at /var/www/twiki/p=
ub/TWiki/TWikiJavascripts/twikilib.js line 10, near &quot;head[&quot;\nsynt=
ax error at /var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 13, =
near &quot;head[&quot;\nsyntax error at /var/www/twiki/pub/TWiki/TWikiJavas=
cripts/twikilib.js line 17, near &quot;}\n      =A0 }&quot;\nsy=
ntax error at /var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 22=
, near &quot;// Get all &quot;\nsyntax error at /var/www/twiki/pub/TWiki/TW=
ikiJavascripts/twikilib.js line 31, near &quot;elms[&quot;\nsyntax error at=
/var/www/twiki/pub/TWiki/TWikiJavascripts/twikilib.js line 37, near &quot;=
;\n}&quot;\n<br>
<br><br>I&#39;d be glad about any suggestion.<br><br>Thanks,<br>Carla<br><b=
r>

--0015174bf1da40d7c704ad4ece16--

Report this message

#2: Re: problem with mod_perl and twiki

Posted on 2011-09-19 20:19:37 by torsten.foertsch

On Monday, 19 September 2011 19:38:06 Carla von Reitzenstein wrote:
> <FilesMatch "^(?!configure)[a-z.]+$">
> SetHandler perl-script
> PerlResponseHandler ModPerl::Registry
> PerlSendHeader On
> PerlOptions +ParseHeaders
> </FilesMatch>

Obviously, this config applies also for JS/CSS files and images. Hence=20
modperl tries to interpret those files as perl code. I don't know TWiki=20
but I think you should modify the regexp above to match only perl=20
scripts, something like ".+\.pl". It depends upon your or rather TWiki's=20
naming conventions.

Torsten F=F6rtsch

=2D-=20
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net

Report this message

#3: Re: problem with mod_perl and twiki

Posted on 2011-09-20 09:16:26 by Carla von Reitzenstein

--0015175d03cce31a5704ad5a3ca1
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Torsten,

thanks a lot for your answer. That was exactly what I've done wrong, so it'=
s
working now :)

Best regards,
Carla

2011/9/19 Torsten F=F6rtsch <torsten.foertsch@gmx.net>

> On Monday, 19 September 2011 19:38:06 Carla von Reitzenstein wrote:
> > <FilesMatch "^(?!configure)[a-z.]+$">
> > SetHandler perl-script
> > PerlResponseHandler ModPerl::Registry
> > PerlSendHeader On
> > PerlOptions +ParseHeaders
> > </FilesMatch>
>
> Obviously, this config applies also for JS/CSS files and images. Hence
> modperl tries to interpret those files as perl code. I don't know TWiki
> but I think you should modify the regexp above to match only perl
> scripts, something like ".+\.pl". It depends upon your or rather TWiki's
> naming conventions.
>
> Torsten F=F6rtsch
>
> --
> Need professional modperl support? Hire me! (http://foertsch.name)
>
> Like fantasy? http://kabatinte.net
>

--0015175d03cce31a5704ad5a3ca1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Torsten,<br><br>thanks a lot for your answer. That was exactly what I&#3=
9;ve done wrong, so it&#39;s working now :)<br><br>Best regards,<br>Carla<b=
r><br><div class=3D"gmail_quote">2011/9/19 Torsten F=F6rtsch <span dir=3D"l=
tr">&lt;<a href=3D"mailto:torsten.foertsch@gmx.net">torsten.foertsch@gmx.ne=
t</a>&gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div class=3D"im">On Monday, 19 September 2=
011 19:38:06 Carla von Reitzenstein wrote:<br>
&gt; =A0&lt;FilesMatch &quot;^(?!configure)[a-z.]+$&quot;&gt;<br>
&gt; =A0 =A0SetHandler perl-script<br>
&gt; =A0 =A0PerlResponseHandler ModPerl::Registry<br>
&gt; =A0 =A0PerlSendHeader On<br>
&gt; =A0 =A0PerlOptions +ParseHeaders<br>
&gt; &lt;/FilesMatch&gt;<br>
<br>
</div>Obviously, this config applies also for JS/CSS files and images. Henc=
e<br>
modperl tries to interpret those files as perl code. I don&#39;t know TWiki=
<br>
but I think you should modify the regexp above to match only perl<br>
scripts, something like &quot;.+\.pl&quot;. It depends upon your or rather =
TWiki&#39;s<br>
naming conventions.<br>
<br>
Torsten F=F6rtsch<br>
<font color=3D"#888888"><br>
--<br>
Need professional modperl support? Hire me! (<a href=3D"http://foertsch.nam=
e" target=3D"_blank">http://foertsch.name</a>)<br>
<br>
Like fantasy? <a href=3D"http://kabatinte.net" target=3D"_blank">http://kab=
atinte.net</a><br>
</font></blockquote></div><br>

--0015175d03cce31a5704ad5a3ca1--

Report this message