Question
I've just installed TWiki 4.02 for the first time and spent the last few hours arguing with Apache, file permissions and CPAN requirements. The configure script now, 'finally' does not have any warnings or any errors.
Next the instructions say to goto the view script (i.e.
http://yourdomain.com/twiki/bin/view
) however when I do this I get an internal server error?
I'm not quite sure why this could be, it can't be Apache configuration as this is limited to directories and the configure script runs.
If I dump the /var/log/httpd/error_log I get
[Fri Apr 07 15:07:51 2006] [error] [client 100.0.106.37] Premature end of script headers: view
[Fri Apr 07 15:07:51 2006] [error] [client 100.0.106.37] Unmatched [ in regex; marked by <-- HERE in m/(?-xism:[ <-- HERE \s\*?~^\$@%`/ at /var/www/html/TWiki/lib//TWiki.pm line 1226.
If I run bin/view from the command line I also get;
./view
Unmatched [ in regex; marked by <-- HERE in m/(?-xism:[ <-- HERE \s\*?~^\$@%`/ at /var/www/html/TWiki/lib//TWiki.pm line 1226.
Any help would be appreciated.
Regards Paul.
Environment
--
PaulMatthews - 07 Apr 2006
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.
It seems that this was as a result of the NameFilter (configurable from the Security Setup section in 'configure' being incorrect. I'm not sure if I accidently erased the end of the filter or if the default configuration appeared that way to start with.
It was;
(?-xism:[\s\*?~^\$@%`
and I changed it to;
(?-xism:[\s\*?~^\$@%`])
closing the square and curley bracket. Not sure if anything else is missing, but this is nolonger causing an issue and now on to the next issue =P.
Paul.
--
PaulMatthews - 08 Apr 2006
You are actually missing some important parts:
[\s\*?~^\$@%`"'&;|<>\x00-\x1f]
See related
UnmatchedBracketInRegex.
--
PeterThoeny - 09 Apr 2006