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.

2 Name: Anonymous : 2006-03-09 14:20 ID:LEzfwSW+ [Del]

Ok, so please tell me how I can go about firstly: Setting up ImageMagik, and secondly: When I reply to one of my threads when It moves to a new page the permissions on that page change so I cant write to it. Does this mean that whenever a new page is created when the max amount of threads for a page has been reached I have to manually change the permissions?

3 Name: !WAHa.06x36 : 2006-03-09 15:06 ID:Heaven [Del]

For your first question, that's not really on-topic here. Go to and read their documentation.

For the second, I still don't understand what you're saying. What do you mean by "I can't write to it"?

4 Name: Anonymous : 2006-03-09 15:58 ID:LEzfwSW+ [Del]

I mean that when you post at my Imageboard and your thread gets moved onto a new page like 1.html the permissions for 1.html are set up so all users cant write to that file. This happens everytime a new page is created by the user after the max amount of posts has been reached for that page. Does this mean that whenever a new page like this is created I have to be there to set the right permissions?

5 Name: !WAHa.06x36 : 2006-03-09 16:45 ID:Heaven [Del]

I think you're confusing users on the board and users on the web server. If the script is making files it can't write to later on, the web server is definitely messed up.

6 Name: Anonymous : 2006-03-09 18:53 ID:LEzfwSW+ [Del]

Argh and is there anyway to rectify this?

7 Name: Anonymous : 2006-03-09 22:46 ID:Heaven [Del]

>>6 talk to the server admins, get them to relax and release the permissions for script-created files.

8 Name: Anonymous : 2006-03-10 12:29 ID:vWU9mPye [Del]

I contacted my hosts support people and they just told me to try a search engine and that they cant possibly fix stuff like that. I think they tried to blame the script, argh stupid! So without the help of those guys its not possible? Goddamn godaddy.

9 Name: Anonymous : 2006-03-11 08:20 ID:vWU9mPye [Del]

So Ive been messing about with it and I found that, just after a new thread is created you can reply to it no problem, but then after awhile when you reply it says error writing to res/199342234.html at, I know this is just telling me my permissions arent set up right but in the time period that you CAN reply to this thread the permissions are exactly the same as when you cant. This is very confusing.

10 Name: dmpk2k!hinhT6kz2E : 2006-03-11 22:25 ID:Heaven [Del]

> the permissions are exactly the same as when you cant

What about the owner?

11 Name: Anonymous : 2006-03-12 05:13 ID:vWU9mPye [Del]

The permissions are 644 when a new html is ctreated by the script, the owner can read and write to the file but not execute and all others can just read, the thing that gets me is why you can write to it just after a new thread is made but cant later on.

12 Name: !WAHa.06x36 : 2006-03-12 08:08 ID:Heaven [Del]

The question was, who is the owner, before and after?

13 Name: Anonymous : 2006-03-13 11:24 ID:mnyX0+t+ [Del]

Like its the owner of the hosting I guess, which would be me I guess. I can write to the files but other people cant.

14 Name: !WAHa.06x36 : 2006-03-13 14:45 ID:Heaven [Del]

"I guess" is no help. You'll need to get an actual list of the files and the specific names of their owners.

15 Name: Anonymous : 2006-03-16 13:13 ID:jz8cApt0 [Del]

Ive been running 2channel like BBS for couple of month and found out the spammer (robot) do not submit messages in case of the word "http://" is banned.

Is there any way Kareha can control forbidden word?

or at least, kareha do not make auto link in a message?

16 Name: !WAHa.06x36 : 2006-03-16 16:51 ID:Heaven [Del]

Anything you put in spam.txt will be forbidden. So you can put http:// in there if you want to go so far as to forbid links entirely. I find that adding <a href=" and <a href=' helps a lot if you're dealing with bots that are dumb enough to try and use HTML everywhere.

Disabling auto-linking can't be done from the configuration, you have to edit the code to remove it.

17 Name: Anonymous : 2006-03-16 17:18 ID:IILaGznb [Del]

Although this might seem like a stupid question to ask, I keep getting this error.

Software error:
Malformed multipart POST

This keeps showing up when any comment on the wakaba board is submitted WITH a picture. Could it be permissions or possibly something else?

18 Name: !WAHa.06x36 : 2006-03-16 17:38 ID:Heaven [Del]

First guess: Mis-configured Apache. How, exactly, you'd mis-configure Apache to give that kind of error is beyond me, though.

19 Name: Spazmic (moved from other thread) : 2006-03-17 08:47 ID:VqDGzUzh [Del]

I try to post a reply on a Wakaba board and I get:

Method Not Allowed
The requested method POST is not allowed for the URL /f/


20 Name: !WAHa.06x36 : 2006-03-17 08:48 ID:VqDGzUzh [Del]

Most likely Apache is set up to forbid POST requests. The only fix is to ask your admin to remove that limitation. If they don't, Wakaba won't work.

21 Name: 15 : 2006-03-20 07:43 ID:jz8cApt0 [Del]

>>16 thanks that will help a lot. made a nessesary amendment.

One another question about management.

Is there any function Kareha keep IP address in each replyied message ?

As I need to kick out screwed people in the thread, i am hoping that I can find the function but I could not find it.

Please advise

22 Name: !WAHa.06x36 : 2006-03-20 10:53 ID:Heaven [Del]

The IPs are stored encrypted in log.txt. can show IPs, but isn't actually set up to do it by default. To make it do that, edit and change <var $masked_ip> to <var $ip>. I'll try to make that part a bit simpler in a future version.

23 Name: Anonymous : 2006-03-20 16:45 ID:fFWWWlB1 [Del]

Is there a way to disable tripcodes?

24 Name: Anonymous : 2006-03-20 17:28 ID:AtYwszbG [Del]

I can't find any license information in Wakaba. Can I use parts of the code in a GPL project?

25 Name: >>24 : 2006-03-20 17:29 ID:AtYwszbG [Del]


26 Name: Anonymous : 2006-03-20 18:27 ID:Heaven [Del]

>>24 Public Domain.

27 Name: !WAHa.06x36 : 2006-03-20 20:42 ID:VqDGzUzh [Del]


No way to do it in the configuration, but there's a single function in that does all the tripcode processing. Changing it to nothing but a return ""; statement should do the trick.


>>26 is right, it's Public Domain. Knock yourself out.

28 Name: 15 : 2006-03-21 08:54 ID:jz8cApt0 [Del]

Thanks that worked!

If I would like to have textra area for stable size what should I do?

Does it disturb the program to change following part

<td><textarea name="comment" cols="64" rows="5" onfocus="size_field('<var $formid>',15)" onblur="size_field('<var $formid>',5)"></textarea></td>


<td><textarea name="comment" cols="64" rows="5"></textarea></td> ?

29 Name: Anonymous : 2006-03-21 15:10 ID:Heaven [Del]

That should be fine. I can't think of any reason it wouldn't work.

30 Name: !WAHa.06x36 : 2006-03-21 18:22 ID:Heaven [Del]


Yes, that should work fine.

31 Post deleted by moderator.

32 Name: 15 : 2006-03-25 08:46 ID:jz8cApt0 [Del]

Thanks for many kind advise.

Well, it's about manage problem but someone knows how to change
moderators name colour in BBS ?

I've changed config.cgi

use constant CAPPED_TRIPS => ('!hogehoge'=>'<font color=#FF0000>★webmaster</font>');

but after I made a change, it turned out rest of all messages
changed to red color which I did not meant to.

All I need to change is webmaster and moderators name color as to
show users know I am the real manageing person.

If someone knows how to modifiy the program please advise.
Thank you so much.

33 Name: !WAHa.06x36 : 2006-03-25 09:46 ID:VqDGzUzh [Del]


That looks about right, as long as the '!hogehoge' is replaced with the actual output from the trip (like '!WAHa.06x36' for me). I'd put quote marks around the color argument to be valid XML, though: <font color="#FF0000">. Otherwise I can't think of why it wouldn't work, unless you forgot </font> or something...

34 Name: Anonymous (moved from other thread) : 2006-03-25 13:12 ID:VqDGzUzh [Del]

On my FreeBSD box, regular tripcodes (#) don't work, but secure tripcodes (##) always stay the same. What the heck is up with that? If I have to install perl libraries, that would be fine with me.

35 Name: !WAHa.06x36 : 2006-03-25 13:12 ID:VqDGzUzh [Del]

Oh, right, I've heard of that... Some of the BSDs use a more secure algorithm for crypt() by default, meaning they won't produce the expected output. There is some flag somewhere that will turn this off, but don't ask me what it is. Try Googling for problems with crypt() under FreeBSD.

36 Name: 15 : 2006-03-25 21:26 ID:jz8cApt0 [Del]

>>33 it was simple mistake. quote marks worked ! Thank you : )

37 Name: 15 : 2006-03-26 10:11 ID:jz8cApt0 [Del]

I see text laying on top of of the background on IE with 2-channel design.

Is there any way I can fix this problem?
Firefox looks better but still the page is slightly crooked to the right.

38 Name: !WAHa.06x36 : 2006-03-26 10:50 ID:VqDGzUzh [Del]


Can you post a screenshot?

39 Name: 15 : 2006-03-26 11:00 ID:jz8cApt0 [Del]

It's really strange but sometimes happen and sometime doesn't

Screenshot as follows

Thank you

40 Name: 15 : 2006-03-26 11:17 ID:jz8cApt0 [Del]

Ive found

1) access and then Click the BBS URL
it get screwed. However it get fixed after reloading the page.

2) but if I access directly to
the page looks fine.

41 Name: !WAHa.06x36 : 2006-03-26 11:54 ID:VqDGzUzh [Del]

Hmm, that is very weird. It seems a lot like it's a bug in IE... I've never seen it before, but I don't use IE either.

Also, if you find any errors in the Japanese strings I used, tell me about them, and I'll put in fixed versions.

42 Name: anon!21anon4H3U : 2006-03-26 16:59 ID:Heaven [Del]

It works fine in my IE, though...

43 Name: 15 : 2006-03-26 22:07 ID:Heaven [Del]

>>38-42 Thanks for taking a look at my problem.
yes, I bet it's depend on each person's enviroment but
majority of Japanese people uses IE5-6.0...
Sometimes it's ok but sometime doesnt't its really strange.
So I need to take a look at it little more closely.

By the way, if you have plan to update the script
it would be nice to put function that refuse posting from certain IP address control and delete function using the check box form.
It would greatly decrease management time for website.

Anyway thanks mate!

44 Name: !WAHa.06x36 : 2006-03-27 07:09 ID:l2svyCMe [Del]


If you can figure out what causes it, I'll try to include a fix. Right now I can't test it, though, since I use a Mac and can't run IE.

There is a script for deleting posts and such. Copy out of the extras/ directory. If your webhost uses Apache as a server, you can ban people by hand by adding lines like Deny from to a .htaccess file. I might add some code to do that automatically from inside the script in the next version.

45 Name: Anonymous : 2006-03-27 17:36 ID:heNCjMFK [Del]

There isn't a way to make the bsd trips the same as other unix trips, because bsd uses MD5 for their crypt and *nix uses DES. If you change it, your user's passwords will then be DES'd and not MD5'd.

46 Name: Anonymous : 2006-03-27 18:37 ID:wD3z/7Gh [Del]

crypt_default in auth.conf sets the default for crypt().
passwd_format in login.conf sets what is used for user's passwords.

47 Name: Anonymous : 2006-03-27 22:31 ID:heNCjMFK [Del]


my bad, I guess searching google and the handbook failed-x me XD

48 Name: netcrusher88!.cCWomImlw : 2006-03-31 02:05 ID:6iuXT+1Y [Del]

in wakaba 3.0.4, i don't see any css, any ideas?

49 Name: Anonymous : 2006-03-31 03:15 ID:Heaven [Del]

>>48 link to the board; and did you copy over all the files, including the folder called "css"?

50 Name: !WAHa.06x36 : 2006-03-31 11:39 ID:Heaven [Del]


Did you run from the command line at any point? Or did you move it without rebuilding caches? In either case, you need to manually go to http://.../ and rebuild caches.

51 Name: netcrusher88!.cCWomImlw : 2006-03-31 11:59 ID:ZO406UmY [Del]


Yeah, it's set up right, i copied everything over and made sure it's all 755, and have tried rebuilding caches several times.

52 Name: Anonymous : 2006-03-31 12:15 ID:z00puBoN [Del]

Just a big FYI for everyone in this thread:

I was having some 500 Internal Server Error issues, and I was sure everything was right. However, in apache.conf I had to change cgi-handler to cgi-script in the <Directory > config for that particular directory. This is on Apache 2.0.55, and probably just some change in config-file syntax. If you're in dire straights, do everything the wiki says, substituting cgi-script for cgi-handler.

Hope that helps someone.

53 Name: !WAHa.06x36 : 2006-03-31 19:27 ID:VqDGzUzh [Del]


Testing in Firefox, I get the error:

> Error: The stylesheet was not loaded because its MIME type, "text/plain", is not "text/css".
> Source File:
> Line: 0

Apparently it won't load stylesheets with the wrong MIME type in ultra-strict mode. I guess you should either add that MIME type, or turn off the XHTML stuff (in both and .htaccess).

54 Name: netcrusher88!.cCWomImlw : 2006-04-01 01:58 ID:6iuXT+1Y [Del]


Okay, I'll configure a new mime type when I get around to it then, thanks.

55 Name: ffffffff : 2006-04-01 14:49 ID:j2XvNimk [Del]

Well, it doesn't seem to want to let me into my own management panel, even though I type the exact password from

It gives me Error: Management password incorrect.

56 Name: netcrusher88!.cCWomImlw : 2006-04-03 20:04 ID:NEGfVxqE [Del]

How can wakaba be configured to run a flash upload board ala 4chan /f/?

57 Name: Anonymous : 2006-04-04 00:14 ID:Heaven [Del]

>>56 Learn perl.

58 Name: !WAHa.06x36 : 2006-04-04 07:14 ID:l2svyCMe [Del]

Usually people just enable the SWF filetype and leave it at that.

59 Name: Zarxrax : 2006-04-06 20:04 ID:6fgF7SGa [Del]

I am trying to set up Kareha and I want to have multiple boards. Am I supposed to just duplicate the kareha directory for each board I want, or is there a more logical way of doing it?

60 Name: !WAHa.06x36 : 2006-04-06 20:05 ID:Heaven [Del]

Pretty much. If you want to be fancy, you symlink most of the files except and anything else you've edited, to make updating easier.

61 Name: Anonymous : 2006-04-07 03:15 ID:Heaven [Del]

hmm, might be a css arror...

firefox 1.5, karaha; permasaged threads's [del] butons are apprearing too far to the right, off the gray part of the thread.

62 Name: 15 : 2006-04-08 12:41 ID:Heaven [Del]

Ive been using kareha 3.0.9 about a month and found some problem.
As it seems some people do not reload the page after posting a message, they tend to post duplicate messages again.

If we can force them to wait few minutes to post another message
I think it would be okay.

Does anyone knows how to cope with this ?

63 Post deleted by user.

64 Name: Anonymous : 2006-04-08 17:27 ID:57euJIIF [Del]

How do I ban people in Kareha exactly?

65 Name: !WAHa.06x36 : 2006-04-08 18:22 ID:Heaven [Del]


You don't. You can, however, ban them with Apache by adding lines of the format Deny from xx.xx.xx.xx to your .htaccess file. Or you can try applying the changes listed in to add banning functionality. I'll probably try to roll some of that into the next version, whenever I get some spare time to work on it.

66 Name: Anonymous : 2006-04-09 02:29 ID:Heaven [Del]

Can you ban them from posting but still let them browse the board?

67 Name: de : 2006-04-10 14:58 ID:r2vG0Kfi [Del]

I'm getting this.

This board has not been configured yet.
Things you need to do to get the board running:

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

Can I've done the first. Can someone please tell me exactly what I change on and what do I change it to?

68 Name: !WAHa.06x36 : 2006-04-10 18:19 ID:Heaven [Del]

If you're getting that, you haven't done the first. Otherwise, you'd be getting a different error.

69 Name: de : 2006-04-10 18:26 ID:ZsuJRbsK (Image: 394x302 png, 6 kb) [Del]

src/1144715175688.png: 394x302, 6 kb

But I did do the first. Unless I did it incorrectly. The folder looks like this now.

70 Name: rayofash : 2006-04-10 18:40 ID:hwlymqML [Del]

The threads show up on the main page, but not the actual post itself. Whats going on?

71 Name: !WAHa.06x36 : 2006-04-10 19:36 ID:Heaven [Del]


There's at least one file that didn't get copied, because that message is displayed by one of the default files that should get overwritten when you copy the new ones in.


Did you set the number of displayed posts to 0?

72 Post deleted by user.

73 Name: rayofash : 2006-04-10 19:45 ID:hwlymqML [Del]


If you mean REPLIES_PER_THREAD, no, its at its default of 10.

74 Name: !WAHa.06x36 : 2006-04-10 20:27 ID:Heaven [Del]


Did you modify the templates at all?

75 Name: rayofash : 2006-04-10 20:27 ID:hwlymqML [Del]



76 Name: !WAHa.06x36 : 2006-04-10 20:37 ID:Heaven [Del]

The front page is being generated with the correct number of posts, but the posts only consist of a bunch of spaces. What exact changes did you make from the base install?

77 Name: rayofash : 2006-04-10 20:39 ID:hwlymqML [Del]


I copied the mode_message stuff into the folder and edited the file.

78 Name: rayofash : 2006-04-10 21:35 ID:hwlymqML [Del]

Its something in the config file, I copied it again and its working.

79 Name: !WAHa.06x36 : 2006-04-10 21:56 ID:Heaven [Del]

Weeeeird. Well, as long as it works...

80 Name: de : 2006-04-11 00:52 ID:r2vG0Kfi [Del]

Software error:

Bareword "SECRET" not allowed while "strict subs" in use at line 115, <FILE> line 4.
BEGIN not safe after errors--compilation aborted at line 148, <FILE> line 4.
Compilation failed in require at line 15, <FILE> line 4.
BEGIN failed--compilation aborted at line 15, <FILE> line 4.

What's this?

81 Name: !WAHa.06x36 : 2006-04-11 08:12 ID:Heaven [Del]


Your installation is still broken.

82 Name: Zarxrax : 2006-04-11 18:12 ID:6fgF7SGa [Del]

2 Kareha Questions:

1) Is it possible to remove the Board Look section and just make it use Futaba style?

2) Is there a place I can define what html tags are allowed? It would be cool if I could allow people to post things like google or youtube videos directly on the board.

83 Name: de : 2006-04-12 16:02 ID:ZsuJRbsK [Del]

Your installation is still broken.

Obviously. Any idea how or why, or how to fix it?

84 Name: Anonymous : 2006-04-12 19:45 ID:wD3z/7Gh [Del]

1) remove this from

<div class="adminbar">
<loop $stylesheets>
[<a href="javascript:set_stylesheet('<var $title>')"><var $title></a>]

2) set ALLOWED_HTML in

use constant ALLOWED_HTML => (

85 Name: Anonymous : 2006-04-12 19:46 ID:wD3z/7Gh [Del]

oops, i was a little careless with my copypasta... leave the <div class="adminbar"> line in.

86 Name: Zarxrax : 2006-04-12 19:49 ID:6fgF7SGa [Del]

Thanks alot ^_^

87 Name: !WAHa.06x36 : 2006-04-12 21:05 ID:VqDGzUzh [Del]


Do it over. You've obviously got files all mixed up.

88 Post deleted by user.

89 Name: Anonymous : 2006-04-13 20:06 ID:oao5tO0F [Del]

Hi, everytime I run I get Error: Could not write to directory.
I asume it means it cant make wakaba.html can anyone help me fix this?

90 Name: !WAHa.06x36 : 2006-04-13 21:18 ID:Heaven [Del]


Fix permissions. See the docs at for more info.

Short version: set the directory permissions to 777.

91 Name: (._.) : 2006-04-14 13:42 ID:iILtfrow [Del]

I tried kareha message and image mode versions.
I liked message mode better, but:
I would like to have some functionalities of image mode in the message mode board. For example: password for user post deletion.

in the message mode board, all posts have a [del] link, and i guess you can delete your own messages based on a cookie? I prefer the password because of users that connect from different machines...

Also, I can't see any admin link in my site. check it out: and if I type I get a "Script error; no task speficied."

92 Name: !WAHa.06x36 : 2006-04-14 16:26 ID:Heaven [Del]


For Kareha, the admin script is a separate script that you can copy out of the extras folder. If you want passwords, you can hack them yourself, but I most probably won't do it for the main distro because it's a bit too inelegant. (You basically need to change the password form fields in the template from type="hidden" to type="password".

93 Name: Anonymous : 2006-04-14 17:28 ID:dhUY6KXf [Del]

Software error:
Insecure dependency in `` while running with -T switch at line 1073.

I am getting this error when attempting to post in my Imageboard

94 Name: !WAHa.06x36 : 2006-04-14 18:16 ID:Heaven [Del]

Uh, you should set up your server to stop running perl with the -T switch.

95 Name: Anonymous : 2006-04-15 17:30 ID:mEAiWkzV [Del]

How do I do this?

96 Name: !WAHa.06x36 : 2006-04-15 17:51 ID:Heaven [Del]

I have no idea why it'd do that in the first place, so don't ask me.

97 Name: Anonymous : 2006-04-15 19:04 ID:mlZ3xIKc [Del]


How hard would it be to make Kareha run with Perls taint checks?

98 Name: !WAHa.06x36 : 2006-04-15 19:09 ID:Heaven [Del]


Dunno, I never actually bothered to learn how to deal with taint checks properly, so I never bothered. I did try to read up on it and it sounded like more annoyance than it was worth, so I never did anything about it.

99 Name: Zarxrax : 2006-04-16 18:11 ID:6fgF7SGa [Del]

I have some kareha boards set up on my site, and there is something about it thats really annoying me, and I'm not sure where the problem lies. I keep seeing old, outdated versions of the board, unless I hit the refresh button in firefox.

For example, I can go and make a post on my board, close firefox, then open it back up and load my board, and i wont see the post I just made unless I refresh. I've never noticed this problem on any other sites or boards.

100 Name: !WAHa.06x36 : 2006-04-16 19:54 ID:Heaven [Del]


You need to set up Apache to tell browsers not to cache pages. Rename example.htaccess to .htaccess to do this - however, it will only work if mod_headers is loaded on the server.

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