The Wakaba and Kareha support thread (1000)

1 Name: !WAHa.06x36 : 2006-03-09 11:41 ID:l2svyCMe [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 any more new threads for issues like that, post them in here instead.

801 Name: Anonymous : 2007-05-27 19:36 ID:Heaven [Del]

it's two greater than signs.... zomg hax. perhaps it's used so people can't insert URLs into >> reply links.

802 Name: Anonymous : 2007-05-27 19:47 ID:Heaven [Del]

how can people insert urls into >> links if that's not in spam.txt?

803 Name: !WAHa.06x36 : 2007-05-28 14:53 ID:Heaven [Del]

It's because there was a horribly, horribly broken spam bot at one point that would post lots of posts with nothing but >> links except it was so broken it posted them as >&gt.

804 Name: Anonymous : 2007-05-29 14:10 ID:+ZkxL/Dw [Del]

I'm getting "Premature end of script headers:" errors in my error_log and just displays a blank page. I'm trying to run the latest Wakaba version through CGI, on Apache 2.2. What might be causing this?

806 Name: croc : 2007-06-01 06:53 ID:r0u0KvvW [Del]

I had to put kareha in my /usr/lib/cgi-bin/ directory, and then edited the config file to put the imageboard in /var/www/imgboard which is the webserver root.

the path to the imageboard from the web would be ""
but kareha is trying to do ""

any ideas how to fix this?

807 Name: !WAHa.06x36 : 2007-06-01 07:08 ID:Heaven [Del]

There is no real support for having the script and data files in different directories. You'd have to hack the source to make it figure these things out more intellgently, or else get a real host.

808 Name: Anonymous : 2007-06-02 12:52 ID:736HPmAV (Image: 634x351 png, 13 kb) [Del]

src/1180813943864.png: 634x351, 13 kb
Can anyone please tell me the reason IPs are stored in integer form but in db filed with TEXT type?

pic unrelated, but...
P.S. I guess "Formatting" select wasn't set to anything by default

809 Name: !WAHa.06x36 : 2007-06-02 17:18 ID:Heaven [Del]


Because signed arithmetic is bounded in MySQL, I think it was. There might be some better workaround than that, but it was a quick fix.

Also, if Formatting is not set to anything, I'm just going to blame browser bugs, unless someone can prove me wrong on that.

810 Name: croc : 2007-06-03 21:41 ID:r0u0KvvW [Del]

hello, me again. I figured out my fail apache configuration.

I am having trouble with post numbering though. It starts over with each thread. Is this a configuration issue? I can't find an opiton for it.

811 Name: Anonymous : 2007-06-04 01:58 ID:l+fHCAW9 [Del]

>I am having trouble with post numbering though. It starts over with each thread.

never seen this

812 Name: croc : 2007-06-04 12:53 ID:r0u0KvvW [Del]



should I have murked loar

813 Name: Anonymous : 2007-06-04 23:02 ID:Heaven [Del]

i think he meant it's something he's never seen before. not being sarcastic. (i haven't seen/heard of this either) are you running stock wakaba or what?

814 Name: Anonymous : 2007-06-05 13:36 ID:2APSAA2g [Del]

>>810 if you're running kareha, that's how it works. Even in mode_image. You have to use wakaba if you want the numbering style you're thinking of.

815 Name: Aranjedeath!q/CeKgd1Xs : 2007-06-09 00:38 ID:g2k0H6jI [Del]

Does anyone know how to edit the perl script or w/e to add modify the generated code for the board? I was wanting to add in some Javascript shiny-ness for when you click to view the photos on my image board, but am at a loss as I dont know perl. Though I can follow instructions if someone might provide them. all i need is the <script> to go in the header and a rel="" to go into <img> tag things.

816 Name: Anonymous : 2007-06-09 02:55 ID:Heaven [Del]

just edit the html in (for kareha) or (for wakaba).

817 Name: Anonymous : 2007-06-11 15:07 ID:o2YHkwsU [Del]

spam trap

818 Name: Anonymous : 2007-06-13 09:29 ID:UuWcUaKw [Del]

I've got Kareha up and running, everything seems fine except I'm getting the 0-byte thumbnail problem as per >>301

I can't do any logchecking or anything like that, as I don't control the server it's on. Any suggestions? Is wakautils supposed to be set executable or something?

819 Name: lama : 2007-06-13 15:15 ID:Mrgz46NH [Del]

does anyone know how to do the multi file submission on wakaba?

like users can upload more then one file?? thanks!!

820 Name: !WAHa.06x36 : 2007-06-13 16:37 ID:Heaven [Del]

You can't.

821 Name: lama : 2007-06-14 08:20 ID:Mrgz46NH [Del]

ok well then is it a possible to make a post a sticky whenever you submit it?

822 Name: !WAHa.06x36 : 2007-06-14 12:17 ID:Heaven [Del]


823 Name: Anonymous : 2007-06-15 23:28 ID:x2EaEgX1 [Del]

Posting non-image files (in my case .rar files; didn't test other filetypes) in Wakaba with Japanese filenames results in a 404 error when attempting to download the file. The file is still in the /src folder, but for some reason, it's impossible to download it through Wakaba. Is there any way to get around this?

824 Name: !WAHa.06x36 : 2007-06-16 05:28 ID:Heaven [Del]

Hmm, most likely some kind of character set mismatch between server and client. I don't think I try to normalize the character sets of filenames, and I'm not sure if browsers send the filename in native charset or in the charset specified for the page.

What browser, OS version, and locale setting are you using to upload?

825 Name: Anonymous : 2007-06-16 10:01 ID:x2EaEgX1 [Del]

Firefox, Windows XP SP2. My locale setting is set to Japanese.

826 Name: !WAHa.06x36 : 2007-06-16 17:33 ID:Heaven [Del]

Sounds like it's being sent in Shift_JIS or something and things break down... Unfortunately, I don't have a good idea for fix right now.

827 Name: Anonymous : 2007-06-22 10:28 ID:Heaven [Del]

Getting Kareha (latest version, whatever it is right now, too lazy to look) to run under apache2 and mod_perl2 was quite a pain, so to speak... in the end, beyond what is extensively described on the internet, I had to do the following:

  • set all use lib paths to the absolute path of the scripts manually
  • remove all use strict instructions, as they were causing complaints on constant definitions
  • set $self to the relative to the webroot path of in as it otherwise wouldn't set the target of the forms correctly

Any possibility to get cleaner, "official" workarounds to the problem that made these necessary in the first place?


828 Name: Anonymous : 2007-06-22 10:30 ID:Heaven [Del]

I meant setting $self in, not Sorry.

829 Name: Anonymous : 2007-06-22 16:01 ID:yJvw1t2U [Del]

For Kareha's auto-generated password, how often would the same password show up for 2 unique people or 5+ unique people. Also, why would it not be unique (other than sharing the same computer)?

Is there some sort of default password that is used when JS/Cookies are off?

830 Name: Anonymous : 2007-06-22 16:14 ID:yJvw1t2U [Del]

And by default I mean no password.

831 Name: !WAHa.06x36 : 2007-06-23 10:30 ID:Heaven [Del]


The default password is empty, but the "password" shown in the admin panel is hashed, meaning that an empty password shows up as some random string, which is probably what is confusing you.

832 Name: !WAHa.06x36 : 2007-06-23 10:32 ID:Heaven [Del]


Considering the problems, I am not sure if it is even possible to make a version that will work cleanly on both CGI and mod_perl. For now, mod_perl is unsupported.

833 Name: Anonymous : 2007-06-23 11:32 ID:Heaven [Del]

I'm having trouble with making manager posts. First of all I get "Error: No comment entered." when I just enter a commment, and the spam filter is triggered when I try to include a file.

I have read all relevant posts in detail, and tried commenting out code as in >>545, to no avail and taken a look at >>634 and >>635, which is where I think the problem lies.

Can someone please expand on >>634 and >>635 as at present there is no way of making a manager post at all.

834 Name: Anonymous : 2007-06-23 18:23 ID:I/ehrZx2 [Del]

>>831 Yeah, it seems that's the case. I know the string well.

835 Name: : 2007-06-23 18:35 ID:hGOsQzsw [Del]

I am having an issue with Wakaba.
It configures fine, but when an image is posted, it shows up and when the pages reloads, the post disappears.

The tables were created, and are set to 755

I did change the wakaba.html file to index.html if it matters

836 Name: !WAHa.06x36 : 2007-06-23 19:04 ID:Heaven [Del]


What do you mean by "it shows up"?

837 Name: : 2007-06-23 19:20 ID:hGOsQzsw [Del]

Ok, I figure out the problem, it had to do with renaming wakaba.html

838 Name: Anonymous : 2007-06-24 19:10 ID:I/ehrZx2 [Del]

I think he meant the thread exists but the main page doesn't update due to him renaming the index page.

839 Name: Anonymous : 2007-06-24 19:40 ID:I/ehrZx2 [Del]

I've been wondering, has the issue with the spamtrap been fixed in the current Kareha 3.1.3 download?

Will there be a 3.1.4 with the fixes from the unicode issue in the other thread and anything else that's come up soon?

840 Name: : 2007-06-24 23:32 ID:0OTLSkJm [Del]

What is a Manager Post in Wakaba?

841 Name: noc : 2007-06-25 05:59 ID:4EJSzGb9 [Del]

I have a thread on my board that is not bumping anymore but it has only like 11 image posts and maybe 33 posts. Which setting controls this sage thing?

842 Name: Aranje : 2007-06-25 10:18 ID:2lfJi1uP [Del]

I have a bug to report in Kareha, Where should i send it, or just post it here?

843 Name: Aranje : 2007-06-25 10:30 ID:2lfJi1uP [Del]

line 253 (kareha.js) if(match=/#i(.+)/.exec(document.location.toString()))
error: Test for equality (==) mistyped as assignment(=)

as well as the function get_active_stylesheet may not always return a value also Kareha.js

Firebug pulled this up, I dunno if its right or not, but i thought id let ya know anyway.

844 Name: !WAHa.06x36 : 2007-06-25 10:59 ID:Z0T+84ak [Del]


Hopefully there will be, as soon as I can find some spare time and energy to put it together. I haven't committed to a fix for that issue though because nobody who complained ever reported back if the fix worked.


That's not a test for equality, it's an assigment and a test for non-null. It's correct as written.

845 Name: Anonymous : 2007-06-25 13:54 ID:hiL/ZOgj [Del]

We've reported here that our spam stuff is all fixed up. I'm not 100% sure if it was fixed using code provided here or by our coding team. I will ask them and if I can put together the code I will post it here for you.

846 Name: Ranting Kitsune : 2007-06-26 08:55 ID:0M8/h1Dc [Del]

I'm totally lost when it come to cgi scripts. All my expertise lies in PHP and Html. Can you please tell me how to install Kareha? It would be greatly, greatly appreciated.

847 Name: : 2007-06-26 14:32 ID:A+oU0kvY [Del]

In Wakaba, is it possible to turn off the verify code when posting.

848 Name: Anonymous : 2007-06-26 18:02 ID:Heaven [Del]

>>847 in the config file...

enable_captcha needs to be set to 0.

849 Name: Anonymous : 2007-06-29 07:49 ID:Heaven [Del]


  1. extract the archive.
  2. edit the in either mode_message or mode image.
  3. upload,,,, kareha.js, kareha.ico, spam.txt, and all the files and directories from either mode_message or mode_image to your web server.
  4. create the res, thumb, and image directories.
  5. make sure the directory the script is in and the res/, thumb, and image directories are writable by the web server process and,, and are executable.
  6. go to in your web browser.

850 Name: : 2007-06-30 13:53 ID:JaXNh8gm [Del]

How come if I put my name as fusianasan my name turns into my hostmask?

851 Name: Anonymous : 2007-06-30 14:58 ID:Heaven [Del]

because that's what fusianasan does?

852 Name: : 2007-06-30 20:08 ID:umEh4iy/ [Del]


853 Name: : 2007-06-30 23:39 ID:JaXNh8gm [Del]

Yeah I didn't know it was a feature

854 Name: Anonymous : 2007-07-01 12:15 ID:hRem/LZz [Del]

How do I stop Wakaba from detecting duplicate pictures?

855 Name: Anonymous : 2007-07-01 13:38 ID:wUybICkp [Del]

funny feature. and who is fusianasan?

856 Name: Anonymous : 2007-07-06 16:03 ID:Heaven [Del]

I know it is not explicitly or implicitly stated anywhere as being compatible, but has anyone ever tried running Shii painter with kareha? If so, did it work? If so, how?

857 Name: : 2007-07-09 09:38 ID:Heaven [Del]

Oh wow.

858 Name: Anonymous : 2007-07-10 14:53 ID:KBczb+Hk [Del]

bump because I am curious

859 Name: P.K. (moved from other thread) : 2007-07-13 06:07 ID:l2svyCMe [Del]

An Oekaki Problem...

I've done everything according to instructions, and am getting a 500 and a 404 whenever I click the link to start painting. I've read the other topic, and got the palette_selfy.js file and installed it, and it still isn't working.

It's the correct applet and all as well.

The only thing I've noticed that could be wrong is that the file I have doesn't seem to have a place for the URL that the wiki says needs to be set in this file. I've followed everything according to instructions, save for specifying the URL, because I don't know where or how to do this in the file.

If it's in an earlier release, could someone please tell me which one?

Help would be greatly appreciated, I know when I posted my last problem 2 years ago it was fixed within a day, and that's simply outstanding support compared to everyone else out there.

Thanks much in advance, I'm really stumped on this one.

860 Name: P.K. (moved from other thread) : 2007-07-13 06:08 ID:l2svyCMe [Del]

Some clarification, I found the properly set up file in an earlier release, well, minus the hashbang, but I went ahead and added one and set the URL.

My error log says this, though:

Premature end of script headers:,

and: File does not exist: /home/(edited by me)/(edited by me)/internal_error.html.

I have no idea why it's doing this... <_<;

861 Name: !WAHa.06x36 : 2007-07-13 06:09 ID:l2svyCMe [Del]

Did you read the first posts in Internal Server Errors are usually not caused by the Perl scripts themselves but incorrect setup on the server.

862 Name: P.K. : 2007-07-13 11:32 ID:ENm0apUH [Del]

Yes, and terribly sorry about improperly posting. It's been a while since I was here, I know it's no excuse, but it's the closest thing I have to one... <_<;

I've tried a few things to get it to work, even setting permissions differently, and have been able to get regular Wakaba boards to work just fine, the only hassle is the "premature end of script headers" thing, and I saw in an older thread that someone was having the same problem, and fixed it, but unfortunately he never said how he fixed it...

I'm not just asking for help, I'm looking for a way to fix it myself as well, by the way. I hate having to ask for help if I can do it myself, but this has me stumped. I'm a real duffer at Perl.

If I can get it to work, I'll at least post the fix for others who might be having the same problem, and if anyone has had this problem and fixed it, please share the info on what you did.

I see lots of nicely working oekaki boards out there, so I know somebody has to know how to fix this, and I'd feel better knowing I hadn't bothered the creator of the code with something petty like this for nothing.

863 Name: P.K. : 2007-07-13 12:06 ID:ENm0apUH [Del]

Update, no more server errors, now it all works save for the applet not loading.

You were right about the server errors, I had to set permissions on in such a way that it seems it shouldn't even work...

Anyway, I have the palette_selfy file installed, even downloaded a fresh copy. I know it's not my JRE, I can use other boards just fine.

If anyone has had this problem and fixed it, please let me know how you did it.

864 Post deleted by user.

865 Name: P.K. : 2007-07-13 14:44 ID:ENm0apUH [Del]

I found out what was wrong, and I hope this helps others who wind up with the same problem. It was partly the permissions issue, and partly an FTP issue. It seems FTP clients sometimes have problems with the automatic selection of how to upload an applet, which is a binary file, especially if you've been uploading lots of ASCII files.

The fix was to manually set it to binary, then fiddle with the permissions. At first it failed to work, then after a few reloads it worked fine. Problem solved, sorry for the hassle, and I hope this helps others in some way.


866 Name: Anonymous : 2007-07-23 17:54 ID:BvZcwPV+ [Del]

I uploaded wakaba to my server, but i didnt see any instructions.
I am not a web guru, but do i need to set up some sort of slq database or something ?
Or should i just stick with the stupid vbulletin and phpbb that come pre installed ?
Should I read the entire thread ? because its 867 long as of this post.
If someone could point me in the right direction i will supply you with at least 1000 internets.

867 Name: Anonymous : 2007-07-24 10:56 ID:Heaven [Del]

868 Name: Anonymous : 2007-07-24 17:29 ID:BvZcwPV+ [Del]

thank you anon

869 Name: hina : 2007-07-28 10:06 ID:hIYt5dmp [Del]

how does the ban system on Kareha work, please?

I've banned an IP in the admin page that I want to now un-ban again, is this do-able?

870 Name: Anonymous : 2007-07-28 14:32 ID:Heaven [Del]

well you could just look at and see this:

#use constant ADMIN_BAN_FILE => '.htaccess';            # Name of the file to write bans to
#use constant ADMIN_BAN_TEMPLATE => "\n# Banned at <var scalar localtime> (<var \$reason>)\nDeny from <var \$ip>\n";

and then you'd know that to unban someone you just edit .htaccess...

871 Name: Anonymous : 2007-07-31 21:16 ID:oEg7yl1W [Del]

I'm having trouble making manager posts in wakaba. Whenever I make one, the post is made, but with only the picture, not the message. Any idea what the problem is?

872 Name: Anonymous : 2007-07-31 21:49 ID:Heaven [Del]

>>871 spamtrap, most likely.

873 Name: Anonymous : 2007-08-01 10:00 ID:QOlh2OP6 [Del]

Howdy Folks,

I'm wondering how to go about removing evidence of moderation (Post deleted by X) in Kareha. Taking a look at, the corresponding lines seem to be lines 693-698, particularly line 696 which reads:


As I would like to eliminate deleted posts entirely, it seems editing or outright removing this line would do the trick. Is this the correct course of action, or is there something more which needs to be done?

Thanks for the help~

874 Name: !WAHa.06x36 : 2007-08-01 14:10 ID:Z0T+84ak [Del]


You can set the DELETED_TEMPLATE to an empty string. However, that invisible post will still count as one post, and the numbering will skip steps, and the number of posts displayed on the front page will be smaller than usual if there is a deleted post. There is no easy way to change that.

875 Name: Anonymous : 2007-08-01 16:38 ID:f21aLKEJ [Del]

Hi, I´m actually quite new in setting these boards up, so I was wondering if someone could please answer these questions for me:

1 - How do I get several boards like 4chan or 7chan? Do I have to copy wakabi into several folders on the server, run the setup on each and then manually add the links to the different wakabi.html files in the wakabi.html files themselves?

2 - Do the files have to be named wakabi? I want the html files to have the same name as the board it represents, but does this require major editing in several files?

Thanks in advance

876 Name: Anonymous : 2007-08-01 18:26 ID:2APSAA2g [Del]

>>875 assuming you're using the wakaba script:

    • Yes, that's the best way to do it. For example, on iiichan, all the boards are in their own folders within the /boards/ subdirectory (/boards/city/, /boards/cats/, etc)
    • change the #use constant HTML_SELF => 'wakaba.html'; setting. You can't change the other pages (1.html, 2.html, etc)

877 Name: Anonymous : 2007-08-02 08:08 ID:f21aLKEJ [Del]

But if I put the board into different subfolders, will I have to set up several databases? I mean, the table names will be the same, so if they are all using the same database, the names will be overwritten, right?


878 Name: !WAHa.06x36 : 2007-08-02 08:12 ID:Heaven [Del]


You can change the table names. Go read through

879 Name: Nestor : 2007-08-02 08:14 ID:L8RSQp8c [Del]

My board is not archiving posts, I have

use constant TRIM_METHOD => 1;
use constant ARCHIVE_MODE => 1;
use constant ARCHIVE_DIR => 'arch/';

in the config, the arch directory and subdirectories exist and are chmod 755 (Also tried with 775) but no archiving is taking place.

I initially set it up with archive mode 0 then changed my mind later, but it looks like the change didn't take, is there some database editing needed to change this configuration maybe?

880 Name: Anonymous : 2007-08-02 15:16 ID:f21aLKEJ [Del]

Thank you

One last question please:
What files should I delete after running
The config file, since the passwords are in there,
but what other ones?

881 Name: !WAHa.06x36 : 2007-08-02 16:20 ID:Heaven [Del]

You should not delete anything.

882 Name: !WAHa.06x36 : 2007-08-02 16:21 ID:Heaven [Del]

And to add to that, you should not run You should point your browser to it, or else it will create a broken board.

883 Name: Anonymous : 2007-08-03 02:38 ID:f21aLKEJ [Del]

Well I thought pointing my browser to was running it. But couldn't anyone just open and then see the passwords?
And should i revert the execution permissions for after execution or doesn't it do anything after it executes for the first time?

Thank you

884 Name: !WAHa.06x36 : 2007-08-03 11:27 ID:Z0T+84ak [Del]


Right, it does mean that, but you could also mean running it from the command line, which is what you should not do. And on most setups, you can't access .pl files which do not output the proper data when run, so it's impossible to access If it is possible on your server for some strange reason, use .htaccess to block access to it.

Also, is executed each time somebody posts, so it needs to stay as is.

885 Name: Anonymous : 2007-08-03 17:50 ID:Heaven [Del]

It's set-and-forget, buddy.

886 Name: Nestor : 2007-08-04 04:47 ID:4WXm4wp2 [Del]

No one has any ideas regarding my archiving problem? C'mon folks, I have Ghastly himself posting in my board, it deserves archiving!


887 Name: !WAHa.06x36 : 2007-08-04 07:04 ID:Heaven [Del]

I didn't write the archiving code, so I am not too familiar with its inner workings, sadly. If I see dmpk2k I'll point him at it.

888 Name: Diablo-D3 : 2007-08-05 23:25 ID:u1xShyHp [Del]

I'm trying to figure out why javascript added to footer.html or header.html no longer works. It is being output fine as far as I can tell, but like the rest of the html, \n are stripped.

However, I cannot figure out where Wakaba strips \n before output.

Can anyone help?

889 Name: !WAHa.06x36 : 2007-08-06 12:33 ID:Heaven [Del]


If it's Google ads, their code is incredibly paranoid. There's a option to turn off the stripping.

890 Name: Anonymous (moved from other thread) : 2007-08-06 12:34 ID:Z0T+84ak [Del]

I'm having problems with getting apache to start the kareha script configuring it the same as in the quickstart and either renders just the source code or a 403 error, apache manuals have been of little help.
Running winxp

891 Name: !WAHa.06x36 : 2007-08-06 12:36 ID:Z0T+84ak [Del]

Without any further information than that, you're not likely to get much useful help. Apache is a tricky bit of software.

892 Name: Diablo-D3 : 2007-08-06 12:55 ID:u1xShyHp [Del]

Its similar to Google Ads. Apparently, this only effects Javascripts that use document.write to write a script tag to load the real script, afact.

893 Name: Diablo-D3 : 2007-08-06 13:31 ID:u1xShyHp [Del]

Doh, the \n stripping isn't breaking it. Also, there is no option for it; simply edit include() in

894 Name: Diablo-D3 : 2007-08-06 14:13 ID:u1xShyHp [Del]

Oh boy, it seems the script actually does work when called from Waka... just not in Firefox.

895 Name: Anonymous : 2007-08-06 14:24 ID:fIYxu1R6 [Del]

I mean, how do I set apache to have the script run once it's loaded in the browser

896 Name: !WAHa.06x36 : 2007-08-06 17:48 ID:Z0T+84ak [Del]


This isn't really an Apache support board. The info is out there on the net, go look for it. If you have a specific question, maybe somebody here can answer it, but that one is just too much work to answer.

897 Name: Anonymous : 2007-08-06 20:34 ID:+tG0shGP [Del]

Does someone know how to implement embeded music into the baoard? I tried adding an <embed> html string to the index.html file which sortof worked, except that I don't want it to crash the browser to show a player window

898 Name: Anonymous : 2007-08-06 22:19 ID:Heaven [Del]

>>897 Why in God's name would you want to embed music?

899 Name: Sako : 2007-08-07 05:37 ID:VTHhnkHQ [Del]

Sorry for the noob question. About admin tripcodes in Kareha: let's say I changed the line in like this

use constant CAPPED_TRIPS => ('!foo'=>' ADMIN','!bar'=>' <em>ADMIN</em>');

is it correct? Now what do I have to use as my name to have them displayed? Neither "Sako#foo" or "Sako#bar" etc seem to be working.

900 Name: Anonymous : 2007-08-07 07:42 ID:hpIoeRwp [Del]

To annoy the heck outta people! What other reason is there ;)
sry this is a littl off topic

This thread has been closed. You cannot post in this thread any longer.