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:

301 Name: Anonymous : 2012-10-20 09:18 ID:naZJxTsv [Del]

Thanks. I'll see if it works sometime today. You don't think it could cause performance problems, do you?

302 Name: Anonymous : 2012-10-20 10:40 ID:Heaven [Del]

The solution involving compile_template could, yes.

303 Name: Anonymous : 2012-10-20 17:38 ID:Id6XIi7o [Del]

HTML5 when?

304 Name: Mr. Manager!!wIZhSe8U : 2012-10-20 19:22 ID:naZJxTsv [Del]

I don't think WAHa really cares about updating the template when it works just fine by default. If you really care that much (you shouldn't unless you can do something about it yourself), there are a few forks, including my own that output near 100% valid HTML5, and do a few other things Wakaba doesn't my default.

305 Name: Anonymous : 2012-10-20 23:51 ID:8Ba+rDOd [Del]

So where's the link to your fork?

306 Name: Mr. Manager!!wIZhSe8U : 2012-10-21 00:23 ID:Heaven [Del]

I'm too embarrassed. Seriously though, if don't know how to do it yourself, you don't need to do it.

307 Name: Anonymous : 2012-10-21 01:48 ID:8Ba+rDOd [Del]

Well if you're too embarrassed, shizzle.
Just wanted to check out what you did?
If you could link to a site that'd be cool.

308 Name: JapanFreak : 2012-10-21 15:16 ID:gsOQxG10 [Del]

is there a video tutorial? i cant get this woring
when i try to edit i cant find the lines that are mentiond in the tutorial/documentation

309 Name: Anonymous : 2012-10-21 21:50 ID:Heaven [Del]

Mr. Manager is very likely one of the two forks I've seen on GitHub. Either frankusrs or dequis. I may be wrong and there may be more than just these two out there. Unfortunately, I can't use either of the ones I listed because of the level of customization of my own script. There are features from frankusrs that I'd love to implement (like the report function), but there's no way to do it at my level of programming.

310 Name: Anonymous : 2012-10-22 07:34 ID:8Ba+rDOd [Del]

I don't think there's a video tutorial for any of the imageboard scripts.
Kinda lame but that's how it is I guess.

311 Name: Anonymous : 2012-10-22 07:38 ID:8Ba+rDOd [Del]


So what I'm getting from that is that implementing the addition of the forks is something rather hard to do and even much harder for a noob like me?
Doesn't seem like something I'd like to atemot.
But it doesn't mean that you can't pay a programmer to just implement it for you and then copy it across all boards.
I don't know, just an idea.

312 Name: JapanFreak : 2012-10-22 09:13 ID:lotQK0WK [Del]

ok then a good stet by step tutorial on how to install kereha?

313 Name: Mr. Manager!!wIZhSe8U : 2012-10-22 09:35 ID:naZJxTsv [Del]


  1. Download Kareha
  2. Put it in the directory you want
  3. Fill out the config
  4. Set some reasonable permissions
  5. Enjoy

That's all you should have to do on a common setup.

314 Name: JapanFreak : 2012-10-22 09:45 ID:lotQK0WK [Del]

on the documentation page it shows that i have lots of options to change in the config but my config shows like this
should i replace with the configs on the documentation page?


print <<END
Content-Type: text/html

<head><title>Unconfigured board</title></head>

<h1>This board has not been configured yet.</h1>
<h3>Things you need to do to get the board running:</h3>

<li>Choose what kind of board this should be, and copy the files out of the corresponding
<code>mode_*</code> directory into the board directory.</li>
<li>Edit <code></code> to suit your needs - remember to uncomment the lines
you change.</li>
<li>Access <code></code> again (or just reload this page).</li>

exit 0;


315 Name: Mr. Manager!!wIZhSe8U : 2012-10-22 10:21 ID:naZJxTsv [Del]

I'm not sure how you managed to fuck it up so badly, but all you have to do is follow my instructions exactly, and it will work. You only have to change the first two options too. Change ADMIN_PASS and SECRET, and things will work perfectly without anymore work on your part. Copy the files, change those two constants, set your permissions, and enjoy. There's not much more I can do to clarify. I've never used Kareha before, and I just did it all in under 2 minutes.

316 Name: JapanFreak : 2012-10-22 11:48 ID:lotQK0WK [Del]

the kareha i downloaded was like that form the beginning ... i still cant get it to work... anyways thx for your help

317 Name: Mr. Manager!!wIZhSe8U : 2012-10-22 12:10 ID:Heaven [Del]

318 Name: Anonymous : 2012-10-22 12:44 ID:Heaven [Del]

Read the instructions in that config. You're supposed to copy the files from one of the mode_* folders, then edit the config. That is also explained in the documentation.

319 Name: JapanFreak : 2012-10-23 03:40 ID:UtdR6PrG [Del]

im making progresses now i get this error
No ADMIN_PASS defined in the configuration at line 8.
BEGIN failed--compilation aborted at line 133.
Compilation failed in require at /home/www/ line 13.
BEGIN failed--compilation aborted at /home/www/ line 13.
but i changed the i put a password... do i nned to change something in the as well?

320 Name: Mr. Manager!!wIZhSe8U : 2012-10-23 07:49 ID:naZJxTsv [Del]


>do i nned to change something in the as well?

I suggest looking at VERY carefully until you figure out what you did wrong. This is an incredibly straightforward process.

321 Name: JapanFreak : 2012-10-23 10:12 ID:UtdR6PrG [Del]

Thank You very very much >>320 and>>318 i finally made this work once again thanks

322 Name: Anonymous : 2012-10-23 15:00 ID:naZJxTsv [Del]

Wow, it looks like this actually works. Thanks!

323 Name: Anonymous : 2012-10-29 18:11 ID:51JpZt3m [Del]

Any reason why Wakaba and Kareha don't wrap long lines with no whitespace? k

324 Name: Anonymous : 2012-10-29 22:04 ID:1ZvXfsqd [Del]

I think this is sensible behaviour. The alternative is 4chan-style mangling of people's comments. Or was that box model hyphenation thing finally implemented?

325 Name: Anonymous : 2012-10-30 10:29 ID:Heaven [Del]

4chan adds line breaks every 100 characters, and Tinyboard uses CSS to wrap text.

Is there any reason why either of these is a bad idea? I'd like to avoid horizontal scrollbars if possible. They're very... tacky.

326 Name: Anonymous : 2012-10-30 17:24 ID:XkQgq4xk [Del]

Hello, I just installed Kareha. Both rss and backlog pages are missing. Backlog page has header and footer while rss is completely empty. I've checked source but it seems these pages should just work, I see no onther indications of misconfiguration. Thread list works in admin panel. Do you have any clues what might be happening? Can that possibly be related to mode_image I am using?

And as for nginx configuration, it works for me with two extra lines:

fastcgi_split_path_info ^(.+\.pl)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;

Also, wakabamark loses empty lines, is this intended?

327 Name: Anonymous : 2012-10-30 20:17 ID:XkQgq4xk [Del]

On my kareha installation formatting doesn't work with half of the russian cyrillic symbols:
Is this related to my perl installation, or something else server-side or is it kareha's default and localization should be done for them to work? If so, is there some sort of documentation displaying this process?

328 Name: Anonymous : 2012-11-01 19:46 ID:Heaven [Del]

Cutting URLs up so they no longer work is one of the biggest problems.

Text is already wrapped with the standard box model rules. If it's one long word, there's not a lot that can be done. I'm guessing Tinyboard uses the hyphenation/word wrapping stuff implemented in CSS3, so you could probably implement it yourself. div.reply { word-wrap: break-word } or something like that.

329 Post deleted by user.

330 Name: Anonymous : 2012-11-02 07:48 ID:naZJxTsv [Del]

Sadly this doesn't work perfectly. I can't seem to get the posts to flow "properly" without using display:table, and word-wrap doesn't work with that property.I wonder what I'm missing...

331 Name: Anonymous : 2012-11-05 08:20 ID:Heaven [Del]

You might not be able to use word-wrap with tables. I use word-wrap on intern3ts/chansluts/etc, but I converted to divs a long time ago.

332 Name: Anonymous : 2012-11-05 09:25 ID:naZJxTsv [Del]

So have I. I'm not using tables, I'm using a CSS property (display:table) to make divs behave like tables. I'd use display:inline-block, but that seems to cause other flow issues, especially if I want to keep the >>'s next to replies.

Its not the end of the world though. I'll just concatenate hyperlinks and add breaks to plain text. Its the best I'm capable of doing. If anyone has any better ideas, I'm all ears though.

333 Name: Anonymous : 2012-11-05 10:17 ID:Heaven [Del]

I haven't had much of a chance to test this, but I think I figured out how to make this work. I'm not sure just what I did that made it work, but after rearranging CSS properties in every configuration imaginable, I managed to get things to flow properly without needing to pragmatically add line breaks and use display:table.

Case closed, I guess.

334 Name: Anonymous : 2012-11-06 10:00 ID:0ScSplEK [Del]

Oh, yes, you should be using table-cell, if you want divs to be beside each other.

335 Name: Anonymous : 2012-11-06 16:35 ID:Heaven [Del]

That actually messed up some other formatting inside of my reply div, so I just decided to get rid of everything table related in my CSS.

336 Name: Mr. Manager!!wIZhSe8U : 2012-11-27 19:15 ID:naZJxTsv [Del]

This is really weird, but I'm having an issue with a user's tripcode appearing incorrectly on my board, while it works perfectly in Tinyboard and on 4chan. I don't recall ever messing with tripcode generation, so I'm not sure what the problem could be. Have there been any similar problems in the past?

337 Name: Anonymous : 2012-11-28 03:06 ID:Heaven [Del]

Different board software has minor differences in the ways tripcodes are implemented. He probably has a weird character in his tripcode which causes Wakaba to interpret it "incorrectly".

This might be of help:

338 Name: Mr. Manager!!wIZhSe8U : 2012-11-28 11:35 ID:naZJxTsv [Del]

Yeah... I had just hoped it would be seemless between 4chan and Wakaba. Anyways, I just ended up throwing in some code that replaces the trip with the proper one. Also, is hotaru still around?

339 Name: DPERNY!!eMF0XBPO : 2012-12-29 22:33 ID:nyUOP6y9 [Del]

I've got a Kareha board running on a VPS, Ubuntu 12.04.whateverisnew. Posting is working but replies aren't. For some reason, every directory that is /kareha/numbers/ is 403 Forbidden. You can still do replies if you navigate to /res/numbers.html, but I can't expect my users to do this. I've already chmodded EVERYTHING. Apache Error logs give this line:

Options ExecCGI is off in this directory: /var/www/

But I have in my apache2.conf:

<Directory /var/www/>

 Options +ExecCGI
Order allow,deny
Allow from all


I'm at my wit's end. I hate to ask for help, but somebody might know something that I don't.

340 Name: Anonymous : 2012-12-30 14:46 ID:Heaven [Del]

Your problem is that is not a directory, it is a file.

341 Name: dperny!!eMF0XBPO : 2012-12-30 21:28 ID:3xF3HXcP [Del]

I have

 <Files /var/www/>
Options +ExecCGI
order allow,deny
allow from all

in the config too, and that still doesn't fix the problem.

342 Name: hotaru!hoTarufiRE : 2013-01-02 15:10 ID:Heaven [Del]

> Also, is hotaru still around?

yes, i am still around.

343 Name: Anonymous : 2013-01-02 16:23 ID:Heaven [Del]

Perhaps use something like this instead, without the <Files> block:

Options +ExecCGI
AddHandler cgi-script .pl

344 Name: Anonymous : 2013-01-23 08:56 ID:gGuAgg98 [Del]

Anyone know how to make session cookies or non-persistent cookies in Wakaba?

345 Name: Anonymous : 2013-01-24 10:50 ID:Heaven [Del]

>>344 here,
Already figured it out on my own. I just ended up adding a few lines to the make_cookies function.

346 Name: Anonymous : 2013-02-07 12:50 ID:5YY+Crgs [Del]

Has anybody written a Futaba-style Catalog mode for Wakaba?

I'm considering writing one myself, but my Perl isn't very good...

347 Name: Mr. Manager!!wIZhSe8U : 2013-02-08 19:04 ID:OFj2WUZi [Del]

I've written something a little more similar to 4chan's, but I think its close enough. You can copy the relevant code from, but I'm not sure if you can just drop it in and have it work. Also, the entire script is pretty much a mess since I started messing with this thing a whole year before I knew what I was doing.

The guys at bunbunmaru ( made one that may be a little more your speed, and if they're willing to share the code then you should be set.

If neither of those work for you, you can try bothering the guy from since I think he also had a catalog mode in his Wakaba installation.

348 Name: Anonymous : 2013-02-12 22:30 ID:Heaven [Del]

I like how you copied my broken signal handling.

You should probably use Plack/PSGI for FastCGI support. Anything else is just ridiculous, and Wakaba seems to leak memory if you run it in a persistent environment without restarting the script regularly. Plack handles that for you.

349 Name: Mr. Manager!!wIZhSe8U : 2013-03-02 13:48 ID:Heaven [Del]

I've actually had good luck with it so far. I'm pretty sure its the DB cache that takes up the memory in the first place, and apparently it'll shrink back down given enough time with no DB hits. I was actually looking into a few FastCGI frameworks right before you changed the way you did it, but I thought I might have better luck learning a little more about it before I just switched over. I was hoping that I could eventually "correct" your signal handling too, but I haven't had any issues with random crashes yet, so it hasn't been to pertinent of an issue for me.

350 Name: Anonymous : 2013-03-08 09:18 ID:7uw4gO2Z [Del]

Here this is a pretty simple question but it's been pissing me off no end, I'm trying to get a title image to display on my imageboard, the image is uploaded to the /wakaba directory and I've pointed at it in like so

use constant TITLEIMG => 'header.jpg';

The pic being named header.jpg, obviously. I've googled this many times and this thread just keeps coming up, nothing in documentation anywhere else. Is therre a pixel or size limit on the pic that's not mentioned? Cheers.

351 Name: Anonymous : 2013-03-11 13:42 ID:dH/Uh2WY [Del]


Nevermind eh got it wakaba doesn't updayte after I reupload the edited config file straight away, only after a post for some reason.

352 Name: Anonymous : 2013-03-13 20:24 ID:Heaven [Del]

It uses a static cache. You need to rebuild them manually for everything to update.

353 Name: Anonymous : 2013-03-17 14:52 ID:FVqzIfPc [Del]

Couldn't write to file "index.html" at line 1013.


354 Name: Anonymous : 2013-03-17 14:58 ID:FVqzIfPc [Del]

Just needed to set perms. to 777

355 Name: Anonymous : 2013-03-19 11:28 ID:ivlqFrOT [Del]

No verification code on record - it probably timed out.

But there is no captcha image coming up.

356 Name: Anonymous : 2013-03-19 14:33 ID:ivlqFrOT [Del]

Nevermind, fixed by messing with perms.

But now thumbnails aren't showing, has anyone had any luck with ImageMagick on nearlyfreespeech?

357 Name: Anonymous : 2013-03-19 14:44 ID:Heaven (Image: 586x182 png, 6 kb) [Del]

src/1363729495799.png: 586x182, 6 kb


Picture for clarity.

358 Name: Anonymous : 2013-03-19 16:52 ID:Heaven [Del]

Doesn't look like it's a thumbnail creation issue, rather another permission issue.

359 Name: Anonymous : 2013-03-19 18:38 ID:Heaven [Del]

I've tried messing with permissions to no avail. There's no "thmubs" directory being made (hence the picture).

360 Name: Anonymous : 2013-03-19 20:12 ID:Heaven [Del]

Make the directory yourself. I think I had a similar problem.

361 Name: Anonymous : 2013-03-20 10:42 ID:ivlqFrOT [Del]

Stupid question, but where is the admin panel?

362 Name: Anonymus : 2013-03-20 12:46 ID:lDd0q0/g [Del]

How do i get it installed in my HTML document at the first place??

363 Name: Anonymous : 2013-03-20 22:12 ID:Heaven [Del]

364 Name: Anonymous : 2013-03-21 14:06 ID:Heaven [Del]

How to enable oekaki?

365 Name: Anonymous : 2013-03-23 01:52 ID:AETOpidL (Image: 1280x1024 jpg, 189 kb) [Del]

src/1364028768417.jpg: 1280x1024, 189 kb

When I access the pl file through my web browser, am I supposed to see th html code or the actual page?

366 Name: Anonymous : 2013-03-23 11:18 ID:Heaven [Del]

First, are you even running a http server? Second, you need Perl installed. Third, you need to configure your http server to pass requests for Perl files to your Perl interpreter.

367 Name: Anonymous : 2013-03-23 11:51 ID:AIXQUUGK [Del]

>>365 goldmine

368 Post deleted by moderator.

369 Post deleted by moderator.

370 Post deleted by moderator.

371 Post deleted by moderator.

372 Post deleted by moderator.

373 Post deleted by moderator.

374 Name: Anonymous : 2013-03-27 13:46 ID:Heaven [Del]

Looks like >>369 broke the board... I'm surprised that hasn't been fixed yet.

375 Post deleted by moderator.

376 Post deleted by moderator.

377 Name: Anonymous : 2013-04-09 20:27 ID:Heaven [Del]

Just wanted to thank you for keeping your software up-to-date and helping your users out, WAHA. Kareha is great. Thanks a bunch!

378 Name: Anonymous : 2013-04-10 11:17 ID:Heaven [Del]

Running Kareha in Futaba mode. When I delete a post, it still appears in the menu as a blank post, i.e. Posted by: 46.105.XXX.XXX - Password: XXXXYYYY - delete post - delete file - ban IP with no real content beneath it (blank). Is this normal behaviour?

379 Name: Anonymous : 2013-04-10 11:47 ID:Heaven (Image: 786x685 png, 135 kb) [Del]

src/1365619637082.png: 786x685, 135 kb

Didn't think to include an image. This board looks like it's in 2ch mode but it allows image posting. It's confusing me!

380 Name: Anonymous : 2013-04-21 14:27 ID:OFj2WUZi [Del]

This is probably a stupid question, but just how much would a bunch of <if $admin> 's in the regular template slow regular posting down? Obviously, they won't work unless I'm building the pages dynamically for admin users, and of course I already have this all worked out using an almost entirely copypastad version of the normal template for this, but its become a bitch to maintain, and I'd just like to know how bad of an idea combining the two together would be.

381 Name: Anonymous : 2013-04-21 14:29 ID:Heaven [Del]

Alternatively, can anyone recommend a good way to benchmark wakaba myself?

382 Name: Anonymous : 2013-04-21 16:57 ID:Heaven [Del]

<if $admin> in the templates gets transformed to if ($admin) { ... } during compilation, so it won't run any slower than a regular if statement in Perl.

383 Name: Anonymous : 2013-04-21 22:59 ID:Heaven [Del]

I'm just wondering how much an extra 10 or so of those would effect compilation time.

384 Name: Anonymous : 2013-04-22 15:53 ID:Heaven [Del]


Benchmark: timing 10000 iterations of fifteen_ifs, five_ifs...
fifteen_ifs: 3 wallclock secs ( 3.13 usr + 0.00 sys = 3.13 CPU) @ 3194.89/s (n=10000)
five_ifs: 2 wallclock secs ( 1.68 usr + 0.00 sys = 1.68 CPU) @ 5952.38/s (n=10000)


In other words, the difference is totally insignificant.

385 Name: Anonymous : 2013-05-02 13:49 ID:I9C3RNUF [Del]

please remove my ip from ban-list
when i go to
i get http 403

386 Name: Anonymous : 2013-05-25 17:24 ID:Heaven [Del]

In Kareha, is there a simple way to get, say, header.html to automatically include another HTML document? So you could have:

<div id="rules">Some rules here.</div>
<hr />
<div id="navigation">{include nav.html}</div>

Or something. I use the rules.html for my board navigation, and mid.html for announcements. This would make things a mighty sight easier!

387 Name: Anonymous : 2013-05-28 08:50 ID:OFj2WUZi [Del]

If you're doing it inside of the header and you don't want to mess around to much with the rest of the template, just do something like this

<var include("include/nav.html")>

That should work in Kareha.

388 Name: Anonymous : 2013-05-31 07:54 ID:Heaven [Del]

I heard that WAHa recommends Kareha over Wakaba for imageboards. Is this true? I use Kareha and was thinking of setting up an imageboard, but I'm not sure if I should choose Wakaba or Kareha. The speed increase seems nice, but if the author recommends against it, I'm more than happy to trust his judgement.

389 Name: Anonymous : 2013-05-31 08:31 ID:Heaven [Del]

This is just a guess, but I think he recommends Kareha because most will never need the added speed that Wakaba and a database can bring. That, and 2006-2010 4chan kinda tarnished the imageboard collective... image, so the farther away you get from that paradigm the better, I guess. There's also the fact that Kareha is newer and has more functionality in some ways.

Back when I had to make the choice in 2011, I went with Wakaba, and its worked out for me so far. I've also managed to tack on ~2000 lines of code for some more modern functionality since then too, which is something that would've been a bit more difficult with Kareha, I imagine.

390 Name: Anonymous : 2013-06-03 07:49 ID:Heaven (Image: 714x1000 jpg, 373 kb) [Del]

src/1370270980419.jpg: 714x1000, 373 kb

From what I've gathered (reminding everyone that I know absolutely nothing about programming), the post remains in log.txt which is why its IP address can still be viewed. It also appears that, while the post is removed from the HTML document, the postcount number is not lowered.

Make a thread, post two replies. Delete the last reply. Not only will that deleted post still be in log.txt, but the thread's postcount remains at 3. Because of this, you can view the post number and IP in, but the post appears to be completely empty.

I'm assuming this behaviour is for one reason only: so that the post numbers contiue to rise up, just like they do in 2ch mode. If we delete that third post then add a reply, the new reply is post #4, not #3. The only difference is that, in 2ch mode, the post will still be visible, but its contents are replaced with 'Post deleted by user.'.

So, AFAIK, it's not a bug, but simply a way of keeping track of the amount of replies the thread has received; it only appears blank because deleted posts aren't visible in Futaba mode, but they are in 2ch mode.

391 Name: Anonymous : 2013-06-03 18:10 ID:Heaven [Del]

Note that any template code inside nav.html will not be evaluated when doing it this way. If you need this, I believe I posted a hack for it further up in the thread.

I've heard the same thing, but I don't think it's true. I'd argue that Wakaba is the better choice: it has way better mod tools than Kareha has, SQL makes life easier in the long run and I've encountered weird bugs in Kareha which have resulted in things like cached indexes erroneously displaying single threads and large amounts of posts being wiped.

392 Name: Anonymous : 2013-06-11 10:24 ID:MJr6NpE7 [Del]

> .replytext em { font-style: normal; }

Why is this rule here? It stops emphasized text from showing as italic in Pseud0ch.

393 Name: !WAHa.06x36 : 2013-06-11 10:41 ID:Heaven [Del]


You're expecting anyone to remember, after all these years?

394 Name: Anonymous : 2013-06-11 18:22 ID:Heaven [Del]

I'm surprised I even noticed. It seems all the boards I visit must have fixed it.

395 Name: Tokiko : 2013-06-20 16:27 ID:bSTS9uTn [Del]

How do I get a sage checkbox?

396 Name: Tokiko : 2013-06-20 16:38 ID:bSTS9uTn [Del]

I got it!

<if $thread>No bump <input type="checkbox" name="field_b" value="sage"/></if>

397 Post deleted by user.

398 Name: Anonymous : 2013-07-21 18:41 ID:r5mDQMLQ [Del]

Is there a postcount variable?

I'm making a masterlist of threads and wanted to show the postcount in a table. I've found $curr_replies in but didn't know how to specify which thread with it.

399 Name: Anonymous : 2013-07-21 20:20 ID:OFj2WUZi [Del]


400 Name: Anonymous : 2013-07-21 22:48 ID:67T7uUcY [Del]

But where would I specify the thread number?

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