The Wakaba and Kareha support thread, part 3 (535)

1 Name: !WAHa.06x36 : 2011-01-07 09:57 ID:eLRTX7Vk [Del]

This thread is for all your simple questions about installing and running Wakaba or Kareha, that just require quick answers. Please don't create new threads for issues like that, post them in here instead.

Before posting, check that the question has not already been answered in this thread, or in the previous two threads:

Also check the documentation:

There is also a setup guide by Anon:

Questions about "500 Internal Server Errors" go in this thread:

101 Name: Mr PirateBox : 2011-08-19 14:45 ID:PO8bpCCz [Del]

It's working on my debian box with lighttpd.

102 Name: Mr. Manager!!wIZhSe8U : 2011-08-20 09:06 ID:yEgF0xnz [Del]

I actually have it running perfectly on my Debian box as well.

103 Name: Anonymous : 2011-08-20 18:10 ID:Heaven [Del]

The boards use it, apparently.

104 Name: Mr PirateBox : 2011-08-20 23:31 ID:cNrGglfw [Del]


I believe this problem have something to do with the used perl version for openwrt.
I only installed the "missing" packages, but maybe I missed a few.

It isn't possible to install all perl packages at all, because there is not enough space left on the device

105 Name: That guy with the band. : 2011-08-22 14:18 ID:1PltzV+l [Del]

Help please?

106 Name: Anonymous : 2011-08-22 15:17 ID:Heaven [Del]


Well did you define any SQL settings?

107 Name: That guy with the band. : 2011-08-24 13:10 ID:1PltzV+l [Del]

Only the bare minimum ones needed to run and connect to the database.

108 Name: Anonymous : 2011-08-24 20:10 ID:Heaven [Del]


Well, better check that again, then. Remember not to comment it out, either.

109 Name: Anonymous : 2011-08-29 00:23 ID:g34np2s6 [Del]

Trying to set up a Kareha board, however, I've noticed that unless I delete, re-upload it and run it no changes take effect. Is this normal, or am I missing out on something?

110 Name: Anonymous : 2011-08-29 04:49 ID:Heaven [Del]

Rebuild the caches from the admin panel after you make changes.

111 Name: That guy with the band. : 2011-08-29 16:08 ID:1PltzV+l [Del]

112 Name: Anonymous : 2011-08-29 19:43 ID:g34np2s6 [Del]


I'm guessing it depends on the host's control panel, but just how would I do that?

113 Name: Anonymous : 2011-08-30 18:48 ID:QtWloSoo [Del]


Go to

114 Name: Anonymous : 2011-09-09 09:20 ID:4L8vcPML [Del]

wAHA, what do you think of youtube embedding in the post? Some users want it but I find it annoying when they just start posting a lot of embedded videos instead of images, or text, or at least links.

115 Name: Anonymous : 2011-09-11 15:08 ID:QtWloSoo [Del]

Would anyone mind telling me if i should be using the same cryptographic secret key across all boards?

116 Name: !WAHa.06x36 : 2011-09-11 16:20 ID:Heaven [Del]


If you want secure tripcodes to be the same across all boards, yes.

117 Name: Anonymous : 2011-09-13 11:42 ID:bjxSkLW6 [Del]

I get a 404 when I try to Preview Post using Opera (11.51). Does anyone else have this problem?

118 Post deleted by user.

119 Name: Mr. Piratebox : 2011-09-15 22:53 ID:QbGeW+Wy [Del]


Got the Page-Load Problem solved. It was missing .pm file.

CGI::Carp qw ( fatalstobrowser does not work correctly on lighttpd.

use the following lines instead:


#use CGI::Carp qw(fatalsToBrowser);

use CGI::Carp qw ( carpout);
open ( LOG, ">>/tmp/cgi.log" ) or die ("Unable to open cgi.log");
carpout (LOG);

So you'll find the perl errors in /tmp/cgi.log

Anyone an idea to solve the problem, that I only see the new posts with a "refresh" of the page .. with lighttpd ??

120 Name: Anonymous : 2011-09-25 03:44 ID:XJYzGU6D [Del]


I am using wakaba 3.0.8, apache/2.2.21 and mysql 5.1.56.
Although the site is accessible, I can't post anything. The site just loads for about a second when i use the Submitbutton. There are no errors in the Apache or mysql logs. Any help would be appreciated.

121 Name: Anonymous : 2011-09-26 00:47 ID:nLIA7St+ [Del]


>Anyone an idea to solve the problem, that I only see the new posts with a "refresh" of the page .. with lighttpd ??

I'm having this same exact problem with Wakaba (and maybe Kareha; too early to tell). Any solutions?

122 Name: Anonymous : 2011-09-26 05:04 ID:Heaven [Del]

Configure lighttpd to serve HTML files with an "Expires" header set to a date in the past.

123 Name: !WAHa.06x36 : 2011-09-26 07:03 ID:Heaven [Del]


Rebuild caches.

124 Name: Anonymous : 2011-10-13 03:52 ID:YkiTmvxq [Del]

Has anyone here ever tried to port Kareha/Wakaba into php-based framework app?
sorry for my bad english

125 Post deleted by user.

126 Name: kin : 2011-10-26 04:28 ID:uQGqbqwU [Del] Can't locate in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl) at /var/www/waka/ line 16.
[Wed Oct 26 22:18:00 2011] BEGIN failed--compilation aborted at /var/www/waka/ line 16.

how do i fix this?

127 Name: Anonymous : 2011-10-26 16:42 ID:Heaven [Del]

Hi, I'm trying use Kareha in image mode, but keeping the textboard look, basically what this board is doing. I've setup kareha in text mode and image mode before, but how I set it up in imageboard mode and make it keep the textboard mode look?
The same thing is done on this board:

128 Name: Anonymous : 2011-10-27 18:41 ID:Heaven [Del]

set it up in textboard mode, then enable image posting in

129 Name: Anonymous : 2011-10-30 14:24 ID:ZQ5CH/kV [Del]

So I setup Wakaba on my hosts server and everything was working except for thumbnail generation. In place of the thumbnail you would see a dotted borderlined square, and in it is simple the words "No thumbnail." You click in and it opens the image just fine, but there is never any thumbnail.
Now, I just setup Kareha on the server in image mode, and the very same thing is happening. A dotted boarderlined square with the words "No thumbnail" inside it. And clicking the words brings up the image just fine. But neither will create thumbnails.
Is there anything that could cause this very same problem with both Kareha and Wakaba? I've tried what I could and now I'm stumped.

Help please?

My host uses Apache 2.2.17, by the way.

130 Name: Anonymous : 2011-11-01 02:01 ID:Heaven [Del]

Get your host to install Imagemagick (the command line version).

131 Name: Anonymous : 2011-11-02 14:36 ID:HtbptTT5 [Del]

Kareha and Wakaba need an external program to work? Lame. Well it can't be helped.
But, if I am unable to get them to install it, is there a workaround?

132 Name: Anonymous : 2011-11-02 22:05 ID:gtsKSWi/ [Del]

A BIG Thanks :)

133 Name: Anonymous : 2011-11-03 10:24 ID:Heaven [Del]

get an imagemagick binary that will run on your server, put it on the server, and set the location in

134 Post deleted by user.

135 Name: Anonymous : 2011-11-15 08:34 ID:wyItaZu/ [Del]

Hey guys, I'm trying to add spoiler text support to wakaba, and I'm new to perl so this is a lot harder for me than it should be. Is there any reason why adding the following to `sub do_wakabamark($;$$)' is not working?

elsif(/^\[spoiler\]/) # spoilers{
if ($lines[0]=~/^\[spoiler\](.*)/){
while !($lines[0]=~/\[\/spoiler\]$/){
push @spoiler,$1; shift @lines;
$res.="<span class='spoiler'>".(join "<br />",@spoiler)."</span>";

Thanks in advance!!

136 Name: Anonymous : 2011-11-15 09:04 ID:Heaven [Del]

Oh and if it matters, I'm getting a regex error in this section for some reason, and I don't understand what that has to do with my changes:

# do ^H
my $regexp;
$line=~s{($regexp)}{"<del>".(substr $1,0,(length $1)/3)."</del>"}gex;

137 Post deleted by user.

138 Name: Anonymous : 2011-11-15 09:40 ID:Heaven [Del]


>elsif(/^\[spoiler\]/) # spoilers{

There's supposed to be a linebreak before the {.

139 Name: Anonymous : 2011-11-15 12:06 ID:wyItaZu/ [Del]

Made a bunch of changes and got it working for the most part, but now I can't make the spoilers work if post contains any other text before or after the tags. Here's what I have:

	elsif(/.*\[spoiler\].*/) # spoilers
my @spoiler;
if ($lines[0]=~/.*\[spoiler\](.*)/){
shift @lines;
while ($lines[0]!~/\[\/spoiler\]$/){
push @spoiler,$lines[0]; shift @lines;
shift @lines;
if ($lines[0]=~/\[\/spoiler\]$/){
$res.="<span class='spoiler'>".(join "<br />",@spoiler)."</span>";

Not sure what to do next...

140 Name: Anonymous : 2011-11-16 11:32 ID:wyItaZu/ [Del]

Okay, so I moved it until after WakabaMark finishes messing with the text, and did my best to work around the strange placement of the tags it introduced. Here's my "final" solution (until I get rid of Wakabamark completely and start from scrath):

$res=~s/\[spoiler\]*/\<span class\=\'spoiler\'\>/g;
$res=~s/\<p\>/ /g;
$res=~s/\<\/p\>/\<br \/\>\<br \/\>/g;
$res=~s/\<br \/>/ /;
$res=~s/\<\/span\>\<br \/\>\<br \/\>/\<\/span\>/g;

141 Name: !WAHa.06x36 : 2011-11-16 12:51 ID:Heaven [Del]


Protip: Don't do that. It seems like it's easy to write a simple text formatter using a bunch of chained regexes.

It is not.

Every single regex is going to interact with every other regex, in subtle ways you will not predict, and you will open yourself up to mis-formatting and HTML injections. Hunting these down will be painful, and once you are done (which you never really are) you will have an utterly unmaintainable monster.

If you want write a text formatter, you will need to use some kind or other of actual parser.

142 Name: Anonymous : 2011-11-16 13:52 ID:wyItaZu/ [Del]

Interesting. Well, I'm going to take your advice and keep trying to get spoilers working in a Wakabamark like fashion. Any advice?

143 Name: Anonymous : 2011-11-26 19:53 ID:wyItaZu/ (Image: 1426x801 png, 74 kb) [Del]

src/1322366004035.png: 1426x801, 74 kb

Anyone know why both Wakaba and Kareha's generated HTML looks like this? If it matters, it happens under both nginx and lighttpd.

144 Name: Anonymous : 2011-11-27 04:48 ID:Heaven [Del]

That's intentional. If you want to read the HTML code, use Firebug or similar.

145 Name: Anonymous : 2011-11-28 12:26 ID:ISHVonwt [Del]

Its intentional? Mind explaining why?

146 Name: !WAHa.06x36 : 2011-12-02 13:40 ID:Heaven [Del]


There is little need for people to read it, and adding linebreaks just makes the code and output bigger for no real benefit.

147 Name: Anonymous : 2011-12-06 08:23 ID:qHrMG7kR [Del]

I can post and it shows that in my admin management menu, but I don't see the posts in wakaba.html

How come they won't show?

148 Name: Anonymous : 2011-12-07 06:46 ID:Heaven [Del]

Tried to F5/clear browser cache? If that works, use the included example.htaccess file to avoid the problem.

149 Name: Anonymous : 2011-12-07 08:21 ID:RE6S15vZ [Del]

Is there a way for 2 people from 2 computer locations to share control over a Wakaba board? By control I mean fixing, changing link on top of the site, adding template style, etc.

150 Name: Anonymous : 2011-12-09 07:39 ID:qHrMG7kR [Del]

How do you add boards?

151 Name: Anonymous : 2011-12-09 10:06 ID:Heaven [Del]

Share the (S)FTP username/password.


  1. Stop asking questions about it.
  2. Start looking for the answer on this board. It's been answered billions of times, and there's even a nice thread about it in the thread list.

152 Name: Anonymous : 2011-12-13 11:06 ID:RE6S15vZ [Del]

I'm having minor cache problem with wakaba: new posts won't appear unless the page is refreshed, happened in both Firefox and Chrome. Is there a way to fix this?

153 Name: Anonymous : 2011-12-13 23:55 ID:Heaven [Del]

154 Name: Anonymous : 2011-12-17 03:50 ID:RE6S15vZ [Del]

How do I get rid of the /wakaba.html part from the main URL, as well as .html extension from every page?

I'd tried to use .htaccess but it doesn't fix the problem permanently: after posting, /wakaba.html returned.

155 Name: Anonymous : 2011-12-17 12:17 ID:ISHVonwt [Del]

Are you using nginx or lighttpd?

156 Name: Anonymous : 2011-12-18 04:28 ID:RE6S15vZ [Del]

Sorry I don't know, I have a friend hosted+coded the site and he's away atm. The private test board I set up is on Apache.

Last time I mention about removing /wakaba.html, he only said it can't be done even though I've seen some sites did it. So now I'm searching around. Does the methods for each differ much? It might be a good idea to document them.

157 Name: Anonymous : 2011-12-18 05:52 ID:Heaven [Del]

Set Apache's directory index to wakaba.html or change wakaba.html to index.html in the config, then either 1) add rewrite rules to redirect wakaba.html to the board's root directory or 2) modify to always redirect to the board's root directory.

158 Name: Anonymous : 2011-12-21 12:43 ID:Heaven [Del]

>>100 uh what? i was using lighttpd on chansluts/male general/tranchan/chanchan/intern3ts/etc for about two years.

159 Name: Anonymous : 2012-01-19 09:16 ID:SW3IFjhd [Del]

Is there anyway to force re generation of thumbnails? My older thumbnails are sized differently than my newer ones due to a different configuration, and I was wondering what I could do to make it more uniform other than resizing them in the browser.

160 Name: !WAHa.06x36 : 2012-01-19 09:30 ID:Heaven [Del]


Nope, sorry. Unless you write your own script to do it and update the database.

161 Name: Anonymous : 2012-01-19 16:05 ID:SW3IFjhd [Del]

Might not even have to update the database now that I think about it. Aren't the file names more or less the same in the thumbs folder and the image folder? I'm guessing I can just run some sort of script that will resize the originals and add "t" to the end.

162 Name: !WAHa.06x36 : 2012-01-19 16:29 ID:Heaven [Del]


You need to update the image sizes. I think those are in the database.

163 Name: Anonymous : 2012-01-19 16:59 ID:SW3IFjhd [Del]

Would it break things if I didn't?

164 Name: Anonymous : 2012-01-20 04:45 ID:Heaven [Del]

Yes it would. Every thumbnail gets displayed with width and height attributes taken from the database.

165 Name: Anonymous : 2012-01-20 08:52 ID:SW3IFjhd [Del]

I already changed how thumbnails were displayed in I didn't change the larger ones though, since upscaling looks ugly.

166 Name: Anonymous : 2012-01-20 11:32 ID:Heaven [Del]

Did you remove the width and height attributes? That's kind of stupid, because the page is going to bounce around like crazy while loading it, especially on slow connections.

167 Name: Anonymous : 2012-01-20 12:14 ID:Heaven [Del]



No, I just set the width of all the reply thumbnails to 127px (apparently the height is adjusted accordingly), and my plan is to have the OP thumbnails display at 250px, which kinda has to be the native res if I don't want them to look like shit.

168 Name: !WAHa.06x36 : 2012-01-20 15:07 ID:Heaven [Del]


Try posting a 1x1000 pixel image now.

169 Name: Anonymous : 2012-01-21 12:00 ID:Heaven [Del]

That -would- be annoying. Well, either way thumbnails are still resized with a 250px max height using imagemagick by default, so it still won't be that much of a problem

170 Name: Anonymous : 2012-01-25 15:51 ID:RE6S15vZ [Del]

Is it possible to start an online archive for Wakaba board similar to how 4chan did it?

171 Name: !WAHa.06x36 : 2012-01-26 05:55 ID:CBOpKyFl [Del]

Is anyone else having problems logging into Wakaba on Dreamhost? I noticed they seemed to have broken REMOTE_ADDR which made the login not work at all for me.

Anyone else?

172 Post deleted by user.

173 Name: Anonymous : 2012-01-27 08:27 ID:Heaven [Del]

Works fine for me. Sounds like that is a server-specific issue.

174 Name: Anonymous : 2012-01-30 00:35 ID:Heaven [Del]

I don't understand the question.

175 Name: Anonymous : 2012-01-30 18:15 ID:Heaven [Del]

Starting to see what you meant. It does look kinda wierd. Guess I'd be better off resizing dynamically in javascript.

176 Name: Mr. Manager!!wIZhSe8U : 2012-02-02 20:29 ID:SW3IFjhd [Del]

So I FINALLY got spoilers working properly. I don't remember who told me, but the only way to get this to work without completely rewriting wakabamark was to hold off on the spoiler function until AFTER all wakabamark related things were completed. Anyways, I went ahead and put my code right after:

    # restore >>1 references hidden in code blocks
$comment=~s/&gtgt;/&gt; &gt;/g;

...which was on line 846 in my version of Next is the actual spoiler code:

    # new spoiler code (can't put it in 'do_wakabamark' because of 'do_spans' messing with the order of tags
$comment=~s/\[spoiler\]*/\<span class\=\'spoiler\'\>/g;
$comment=~s/\<span class\=\'spoiler\'\>\<br \/\>/\<span class\=\'spoiler\'\>/g;
$comment=~s/\<\/span\>\<br \/\>/\<\/span\>/g;

Hopefully this helped -someone- out.

177 Name: Anonymous : 2012-02-06 16:31 ID:lj6scaAo [Del]

does anyone know why my kareha isnt generating an rss and backlog? the files are there, theyre just blank. my kareha is installed in imageboard mode if it makes any diff

178 Name: Anonymous : 2012-02-06 16:48 ID:lj6scaAo [Del]

nevermind i just copied the templates from the non imageboard file

179 Name: Anonymous : 2012-02-06 20:10 ID:naZJxTsv [Del]

Is there any way make individual posts display SJIS art properly in Wakaba like they Kareha does? Or is this something I'll have to add in myself.

180 Name: Anonymous : 2012-02-07 06:39 ID:Heaven [Del]

There's no built-in way to do that, but you achieve it with a few quick additions to the templates.

Find something like this in the templates (it should occur twice, IIRC):

<var $comment>

Replace it with this:

<blockquote<if $email=~/^aa$/i> class="aa"</if>>
<var $comment>

Then add this to either the global stylesheet in the header template, or to each individual stylesheet:

.aa { font-family: 'MS PGothic', MS Pゴシック, IPAMonaPGothic, Mona; }

Finally, to post with SJIS art, just enter "aa" in the email field. Note that I haven't tested this.

181 Name: Anonymous : 2012-02-07 10:39 ID:naZJxTsv [Del]

Speaking of CSS, was there any significance to .reply blockquote, blockquote :last-child { margin-bottom: 0em } in Most seem to consider the way it looks odd, and both 4chan and 2chan are rendered the way Wakaba would be without it.

182 Name: !WAHa.06x36 : 2012-02-07 12:01 ID:Heaven [Del]


Probably something about emulating the exact look at Futaba at the time it was written.

183 Name: Anonymous : 2012-02-07 17:46 ID:Heaven [Del]

Actually, on second thought, this won't work. /^aa$/i should be /^mailto:aa$/i.

184 Name: Anonymous : 2012-02-07 18:17 ID:naZJxTsv [Del]

It works you do /aa$/i as well. I didn't think to add mailto:.

185 Name: Anonymous : 2012-03-09 14:57 ID:hnv8rjpv [Del]

Im running apache2 on ubuntu, and I am not able to access .pl files from my web browser for some reason I get 403 errors every time. Its my own server, what have i messed up?
I did configure it for .pl and .cgi files in apache2.conf

186 Name: Anonymous : 2012-03-09 15:01 ID:Heaven [Del]


Ask on an Ubuntu forum. And when you do, actually tell them what you did. People can't read your mind over the internet.

187 Name: Anonymous : 2012-04-05 10:20 ID:2JwCM/BO [Del]

After I was making changes to in Wakaba 3.0.8 and uploading the revisions, I noticed that I can't get into the management panel without getting a software error, nor can anyone make any posts on the board without getting the same error. It says ADMIN_PASS and NUKE_PASS aren't defined. I didn't make any changes to those passwords while making my revisions and I don't know how to fix it. This is not my imageboard either. I'm just helping a friend and I don't want him to know.

188 Name: Anonymous : 2012-04-11 09:53 ID:y5JfN9g0 [Del]

Is there a way to disable WakabaMark rendering when posting SJIS art on Wakaba 3.0.7? i.e. don't bold or italicize asterisk and underscore pairs.

189 Name: v : 2012-04-24 12:32 ID:i8arfiRh [Del]

Quick question:

Is there a way to get the management panel to link to actual posts or show its thread? Currently it shows post numbers, name, subject, comment, IP, etc.

190 Name: Anonymous : 2012-04-24 20:36 ID:Heaven [Del]

Yes, it's just a quick edit to the templates.

191 Name: Anonymous : 2012-04-26 08:33 ID:NbmNY5z7 [Del]

No ADMIN_PASS or NUKE_PASS defined in the configuration at /usr/lib/perl5/5.8.8/CGI/ line 314.
BEGIN failed--compilation aborted at line 125.
Compilation failed in require at line 17.
BEGIN failed--compilation aborted at line 17.

Line 17 says

BEGIN { require ""; }

192 Name: Kareha_kracka : 2012-05-01 18:47 ID:JR+pL8OL [Del]

Kareha: When I move my board, including all scripts and files to another directory, nothing works right because it doesn't reflect the new path. Everything works fine in and elsewhere if I add my /path/ to the address. I've tried rebuilding caches in as well as deleting all of the html files and running in a browser to recreate them. I've tried recopying default config and all of the pl files. Is there something I am missing?

193 Name: Anonymous : 2012-05-31 09:29 ID:naZJxTsv [Del]

How would one go about disabling code formatting in Wakaba? Deleting this

	elsif(/^(?:    |\t)/) # code sections
my @code;
while($lines[0]=~/^(?: |\t)(.*)/) { push @code,$1; shift @lines; }
$res.="".(join "<br />",@code)."";

Doesn't seem to do anything but cause to get stuck in and endless loop and consume 100% of my CPU.

194 Name: Anonymous : 2012-06-01 12:09 ID:Heaven [Del]

You shouldn't really touch the parser unless you know what you're doing. That being said, you can probably fix the problem if you also change while($lines[0]!~/^(?:\s*$|1\. |[\*\+\-] |&gt;| |\t)/) { push @text,shift @lines; } to while($lines[0]!~/^(?:\s*$|1\. |[\*\+\-] |&gt;)/) { push @text,shift @lines; }.

195 Name: Anonymous : 2012-06-01 15:06 ID:naZJxTsv [Del]

That seemed to do it. I can't seem to figure out why though...

196 Name: Anonymous : 2012-06-03 12:48 ID:CV0bMPVw [Del]

Running Kareha, 2ch mode. Every post (regardless of poster) got the same ID, which made me curious. When I saw the IP attached to the posts in, it turned out that all posts were made by, somehow.

That seems pretty impossible and I have no idea what’s going wrong.

197 Name: Anonymous : 2012-06-03 13:10 ID:Heaven [Del]

are you using some sort of reverse proxy?

198 Name: Anonymous : 2012-06-03 13:55 ID:CV0bMPVw [Del]

Hm, I don’t think so.

199 Name: !WAHa.06x36 : 2012-06-04 01:53 ID:Heaven [Del]


Are you infected with some kind of PHP malware that rewrites links? Check your .htaccess files for mysterious junk.

200 Name: !WAHa.06x36 : 2012-06-04 01:55 ID:Heaven [Del]


Yes, the parser is a terrible regex monster, and is not really understandable by anyone, including me. Lesson learned: Don't do parsers as a series of regex transformations, this never turns out well.

Name: Link:
Leave these fields empty (spam trap):
More options...