The Wakaba and Kareha support thread, part 2 (1000)

1 Name: !WAHa.06x36 : 2007-10-11 06:19 ID:K4vOYfq0 [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 thread:

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

501 Name: Anonymous : 2009-01-31 02:12 ID:Heaven [Del]

  • > A file written by the user, typically called index.html. The DirectoryIndex directive sets the name of this file. This is controlled by mod_dir.

(In case you simply stopped reading the example.htaccess after the very first line, the mod_rewrite directives at the bottom are purely optional, and have nothing to do with the index page. They only are there to provide better hints to web browsers about the document character set.)

502 Post deleted by user.

503 Post deleted by user.

504 Name: Anonymous : 2009-02-12 01:26 ID:Heaven [Del]

Don't touch, ever. That's just where the error was triggered. Your problem is still in, and you've either removed, commented, or renamed ADMIN_PASS or NUKE_PASS.

505 Post deleted by user.

506 Post deleted by user.

507 Name: Anonymous : 2009-02-12 02:52 ID:cuT0dJ5Z [Del]

Not sure about your verification code error, but to change the title (or anything else), just edit and let regenerate your html.

And, yes, has a purpose; it's what your site runs on...

508 Post deleted by user.

509 Name: Anonymous : 2009-02-13 00:06 ID:rsPTn4Pw [Del]

Can you use the same mysql database for multiple boards? If not, how do you use the same admin table for every board to make global ip bans?

510 Name: Anonymous : 2009-02-13 00:50 ID:Heaven [Del]

511 Name: Anonymous : 2009-02-13 00:50 ID:Heaven [Del]


512 Name: Anonymous : 2009-02-13 01:01 ID:rsPTn4Pw [Del]

Another question:

When you run, wakaba.html is created. But I'm wondering if there's a way to edit something so when the html file is created, it's named something like board.html, or imageboard.html.

514 Name: Anonymous : 2009-02-13 03:54 ID:rsPTn4Pw [Del]

Doesn't work, I changed that and it had no affect. Edited the field in, deleted wakaba.html and re-ran but it still creates wakaba.html.

515 Name: Anonymous : 2009-02-13 11:55 ID:Heaven [Del]

Did you try uncommenting it?

516 Name: Anonymous : 2009-02-19 20:47 ID:cFTOKu4F [Del]

is there any way i can disable the ability to post images?

517 Name: Anonymous : 2009-02-20 02:50 ID:Heaven [Del]

Yes, it's very plainly in the configuration. Look for the word "image".

518 Name: Anonymous : 2009-02-20 10:31 ID:7hjckRG4 [Del]

ok i thought so i just haven't gotten the script yet and it didn't say anything about like if you put it to 1 or 0 so i was just making sure. thanks though

519 Name: Anonymous : 2009-02-20 14:01 ID:7hjckRG4 [Del]

is there any way to have multiple boards?

520 Name: Anonymous : 2009-02-20 20:01 ID:Heaven [Del]

Multiple wakaba installations.

521 Post deleted by user.

522 Post deleted by user.

523 Name: Anonymous : 2009-02-20 20:45 ID:7hjckRG4 [Del]

im talking about kareha and i mean have things like /board 1/ /board 2/ like different sections where multiple threats and posts can be made sorta like kasuba

524 Name: Anonymous : 2009-02-21 13:40 ID:syDpiyB/ [Del]

i asked people on 4chan and they said i could make a portalish type thing and run multiple karehas off the main page, this is i guess what i want to do, any advice on how to go about doing this?

525 Name: Anonymous : 2009-02-22 11:53 ID:Heaven [Del]

Multiple kareha installations.

This really isn't that hard.

526 Name: Anonymous : 2009-02-28 10:52 ID:ejO2MH0D [Del]

I've been running my Kareha imageboard for about a month now, and I've been looking to add new CSS. However, I tried just making a new .css file and putting it in the /css folder, and it doesn't work... How do I add new CSS styles to Kareha in image mode?

527 Name: !WAHa.06x36 : 2009-02-28 17:04 ID:Heaven [Del]


Did you rebuild caches?

528 Name: Anonymous : 2009-02-28 18:27 ID:ejO2MH0D [Del]

Ah, forgot to do that. Thanks for your help!

529 Name: Anonymous : 2009-03-13 07:36 ID:JU2dsHcj [Del] does any one know what the problem is and how to fix it

Software error:

Bad name after comments' at line 15.
Compilation failed in require at /home98c/sub009/sc61836-VWOA/ line 17.
BEGIN failed--compilation aborted at /home98c/sub009/sc61836-VWOA/ line 17.

530 Name: Anonymous : 2009-03-14 04:27 ID:4GvgoPaI [Del]

Help please

531 Name: Anonymous : 2009-03-14 09:18 ID:Heaven [Del]


We aren't psychic, we can't tell what you put in that file that broke it.

532 Name: Anonymous : 2009-03-14 12:16 ID:pYWaltB6 [Del]

Can anyone help me, please? I usually got "Error: No verification code on record - it probably timed out." when trying to post in my oekaki board. I fixed it for posts on main page as this guy said but I still can not fix it for replies.

533 Name: Anonymous : 2009-03-14 23:18 ID:kxn96LP+ [Del]

is there some who can help me please I'm using Futallaby right now and I hate it
I'm >529

534 Name: Anonymous : 2009-03-15 02:16 ID:kxn96LP+ [Del]

well here is the file I put * over the some stuff like the pw user name and other stuff
here is the txt file

535 Name: Anonymous : 2009-03-15 04:24 ID:Heaven [Del]

If you'd just uploaded that file to this board, or used a pastebin, I might have had a shred of care to look at it.

536 Post deleted by user.

537 Name: Anonymous : 2009-03-17 00:51 ID:ntQzohlp (Image: 0x0 txt, 7 kb) [Del]

538 Name: Anonymous : 2009-03-17 00:54 ID:ntQzohlp [Del]


539 Name: Anonymous : 2009-03-17 05:28 ID:Heaven [Del]

I daresay you're editing the wrong file. Start over, and pay closer attention, you should not be touching at all.

540 Name: Anonymous : 2009-03-18 15:16 ID:rD4TCTiC [Del]

Whew. This thread is quite the read.
I'm having an issue where I delete wakaba.html and run (access via browser) I am then redirected to wakaba.html, which does not exist. It is not built/rebuild when I access Clearing cache results in the same 404. Suggestions?

541 Name: !WAHa.06x36 : 2009-03-18 16:55 ID:Heaven [Del]


What if you go to and rebuild it?

542 Name: Anonymous : 2009-03-18 17:19 ID:rD4TCTiC [Del]

>>541 isn't in the zip file I downloaded. I can still rebuild from using (or something close), but the problem persists.

Something interesting I noticed. If I use permissions 755 for folders (res, in particular), line 378 (inside print_page) goes crazy and throws errors saying a temp file can't be created. It works only if I chmod res to 777.

So with chmod 777 to res, I get wakaba.html not found.
With chmod 755 to res, I get Error: Can not write to directory.

543 Name: Anonymous : 2009-03-18 17:31 ID:rD4TCTiC [Del]

>>541 Issue resolved:
Had to mod /var/www to 777. Icky solution, but maybe my live environment will be better configured than my bevelopment environment. Thank you for your help.

544 Name: Anonymous : 2009-03-20 23:21 ID:h8ysqMSD [Del]

I'm wondering why Wakaba doesn't automatically truncate threads beyond a certain point, if it does,, there do I find this option

545 Name: Anonymous : 2009-03-21 16:54 ID:Heaven [Del]

I have a quick question, does posting (running cause that script to rebuild all the pages?

546 Name: !WAHa.06x36 : 2009-03-23 03:23 ID:Qldo6KoJ [Del]


Truncate how?


Only if index.html does not exist. Also, do not run it from a command line, that will create broken pages.

547 Name: Anonymous : 2009-03-23 04:04 ID:h8ysqMSD [Del]

Hi, I love your scripts ;)
truncate as in, now I have 31 pages of threads after I was testing it..
and I want it to only show say 150 threads at any one time ;)
using Wakaba

Anyway, just wondering if you're going to release your script, thanks!

548 Name: Anonymous : 2009-03-23 04:07 ID:h8ysqMSD [Del]

oops, I found the script :)
I thought it was just in indefinite testing, sorry


549 Name: Anonymous : 2009-03-23 07:11 ID:hwEtxFA7 [Del]

How do you get rid of the bee? I cant seem to find it in any of the .pl files. Is there something i comment out to stop embedding of files?

550 Name: Anonymous : 2009-03-23 19:55 ID:Heaven [Del]

> How do you get rid of the bee? I cant seem to find it in any of the .pl files.

remove it from include/rules.html. it's not part of kareha.
people who have the admin password for your board keep adding it through the admin interface.

> Is there something i comment out to stop embedding of files?

yes. fix your php script so people can't inject perl code (so they can't just get the password again), and then change the admin password for your board.

551 Name: Anonymous : 2009-03-24 05:09 ID:Heaven [Del]

Hm... helpful advice. I would have just recommended getting off of the internet altogether.

552 Name: reaven : 2009-03-24 10:53 ID:0hVTDOzO [Del]

The thing is that it just shows the code on the browser, i think i have properly configured the httpd.config file, and yes i do have perl and i have a correct hashbang. Im using xampp on windows and i dont know what to do, any ideas ?

553 Name: reaven : 2009-03-24 10:56 ID:0hVTDOzO [Del]

Ops i forgot the beginning:
Apache wont execute

554 Name: Anonymous : 2009-03-24 20:42 ID:Heaven [Del]

555 Name: !WAHa.06x36 : 2009-03-25 06:06 ID:Heaven [Del]


Read through to find the various options for how threads are deleted. By default it happens by number of posts, not threads.


If code does not run, you have not properly configured the httpd.config file. Beyond that, it's not like we know how your server is set up. You really need to figure out that part yourself. Also, xampp is known to cause all kinds of problems.

556 Name: reaven : 2009-03-25 06:07 ID:0hVTDOzO [Del]

It works with mod-perl activated, but with that i get this error with

[Wed Mar 25 14:06:30 2009] [error] Can't locate in @INC (@INC contains: . C:/xampp/perl/site/lib/ C:/xampp/perl/lib C:/xampp/perl/site/lib C:/xampp/apache) at C:/xampp/htdocs/wakaba/ line 16.\nBEGIN failed--compilation aborted at C:/xampp/htdocs/wakaba/ line 16.\n

Internal Server error 500

557 Name: reaven : 2009-03-25 07:17 ID:0hVTDOzO [Del]

559 Name: Anonymous : 2009-03-26 14:36 ID:stUev05v [Del]

Hi, I've got a problem with Oekaki.
I'm using Shi Painter, and everything is OK except one thing: after clicking upload in painting window it shows me a preview in a reply form, and in this preview picture has some constant name. So, my browser saves this picture to cash and next time, when I draw other picture, it shows me the previous one.
Thank you, and sorry for my english.

560 Name: !WAHa.06x36 : 2009-03-30 09:17 ID:Heaven [Del]


Configure Apache to send no-cache headers for all files in tmp/.

561 Name: Anonymous : 2009-04-01 03:46 ID:H8w5qzS0 [Del]

Hm... I tried:
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
It didn't work.
What am I doing wrong?

562 Name: !WAHa.06x36 : 2009-04-01 04:23 ID:Heaven [Del]


That's PHP code.

Look at example.htaccess.

563 Name: Anonymous : 2009-04-01 08:15 ID:Bcll3BAZ [Del]

In my .htaccess:
<IfModule mod_headers.c>
<Files *.html>
Header add Expires "Mon, 26 Jul 1997 05:00:00 GMT"
Header add Pragma "no-cache"
Header add Cache-Control "max-age=0; must-revalidate; no-cache"
Header unset Vary
Still don't work.

564 Name: Anonymous : 2009-04-01 12:55 ID:Heaven [Del]

Check your page with wget -S http://blahblah/ or something such as Firebug to see if the headers are really being sent. Probably you don't have mod_headers enabled.

565 Name: Anonymous : 2009-04-01 13:05 ID:KHdhSJOI [Del]

Well, all of a sudden my wakaba install is giving me this error:

Software error:

Malformed UTF-8 character (fatal) at line 447, <FILE> line 3.

Line 447 is:

    $str=~s!([^\w/._\-])!"%".sprintf("%02x",ord $1)!sge;

which is part of:
sub clean_path($)

    my ($str)=@_;
$str=~s!([^\w/._\-])!"%".sprintf("%02x",ord $1)!sge;
return $str;


We've edited parts of our script and it's been working just fine for us for quite some time... this is a quite strange error and I'm hoping someone has a clue about what could be causing it. It happens when anyone tries to post or even when I try to rebuild caches. I'm assuming it will happen with anything that calls

566 Name: !WAHa.06x36 : 2009-04-02 08:04 ID:K4vOYfq0 [Del]


Probably some kind of malformed UTF-8 in a filename or something similar.

567 Name: !WAHa.06x36 : 2009-04-02 08:05 ID:K4vOYfq0 [Del]


You are sending those headers only for html files. Note the <Files *.html>.

568 Name: Anonymous : 2009-04-06 09:56 ID:rm0Z/WaZ [Del]

Is there any option that allows Kareha threads to be numbered like that of Wakaba?

569 Name: !WAHa.06x36 : 2009-04-06 12:40 ID:Heaven [Del]

570 Name: Anonymous : 2009-04-07 05:00 ID:+Ut0XUuI [Del]

Hi. when i'm trying to run i get a 403 error.
permissions are set to 775.

571 Name: Anonymous : 2009-04-09 00:41 ID:xP0VgDNN [Del]

I'd like to put google analytics in BBS system
Where should I put the code?

572 Name: 571 : 2009-04-09 00:41 ID:xP0VgDNN [Del]

Sorry the bbs is Kareha

573 Name: Anonymous : 2009-04-09 17:47 ID:Heaven [Del]

look in the include folder.

574 Name: Link !cCkIu6lpQI : 2009-04-12 21:59 ID:dB8JeauC [Del]

Sorry for sounding like a n00b, but how do I change the time zone settings? Currently it's five hours past my time zone.

575 Name: Anonymous : 2009-04-13 00:18 ID:Heaven [Del]

http and cookie use GMT, the rest use whatever the local time zone is set to on the server.
well, there is month that uses GMT as well, but that's just the month name and year, not the whole date and time.

actually, if i set up a kareha board anytime soon, i am so going to set DATE_STYLE to month.

576 Name: Anonymous : 2009-04-13 02:19 ID:Heaven [Del]

> actually, if i set up a kareha board anytime soon, i am so going to set DATE_STYLE to month.
kinda like this, except without anyone with half a brain cell being able to root the server.

577 Name: Anonymous : 2009-04-18 03:52 ID:5JEjhUIg [Del]

When I first ran wakaba I noticed that the user has to click the checkbox when they want to upload a file. I was wondering why you did this since the script runs fine without it? Also I think it makes the user input panel look a little less cluttered and confusing by taking it out.

578 Name: Anonymous : 2009-04-18 15:33 ID:Heaven [Del]

You mean when they don't want to upload a file. That checkbox keeps people from posting a bunch of useless threads because they can't figure out how to reply.

579 Name: Anonymous : 2009-04-21 17:18 ID:stePFAF7 (Image: 266x339 gif, 34 kb) [Del]

src/1240359538896.gif: 266x339, 34 kb

I am attempting to run Kareha on free hosting server and so far i copied files and style to main directory and edited

When i try to run it shows me this:

Can't locate in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.8.4


580 Name: Anonymous : 2009-04-22 11:22 ID:vokRrQsa [Del]

top - 11:19:43 up 1 day, 20:27, 1 user, load average: 4.86, 3.98, 3.98
Tasks: 21 total, 2 running, 18 sleeping, 0 stopped, 0 zombie
Cpu(s): 30.9%us, 4.3%sy, 0.0%ni, 8.0%id, 55.4%wa, 0.2%hi, 1.2%si, 0.0%st
Mem: 429056k total, 429056k used, 0k free, 0k buffers
Swap: 429056k total, 345912k used, 83144k free, 0k cached

538 USERNAME 18 0 70824 54m 1828 H 15 13.0 0:14.51
27783 USERNAME 15 0 27512 10m 804 R 1 2.4 8:41.59 lighttpd
1619 USERNAME 15 0 24788 9544 1744 S 0 2.2 0:00.10
6192 USERNAME 15 0 24784 9544 1744 S 0 2.2 0:00.10
13649 USERNAME 18 0 24916 9604 1752 S 0 2.2 0:00.10
16515 USERNAME 16 0 24788 9540 1744 S 0 2.2 0:00.10
17883 USERNAME 16 0 24916 9604 1752 S 0 2.2 0:00.11
18518 USERNAME 18 0 24792 9476 1744 S 0 2.2 0:00.10
19332 USERNAME 15 0 24784 9536 1744 S 0 2.2 0:00.10
20228 USERNAME 16 0 24784 9544 1744 S 0 2.2 0:00.11
22054 USERNAME 16 0 24920 9616 1752 S 0 2.2 0:00.10
22678 USERNAME 18 0 24784 9536 1744 S 0 2.2 0:00.10
23959 USERNAME 15 0 24920 9608 1752 S 0 2.2 0:00.13
25918 USERNAME 18 0 24788 9476 1744 S 0 2.2 0:00.10
25949 USERNAME 18 0 24788 9476 1744 S 0 2.2 0:00.10
28000 USERNAME 16 0 24920 9612 1752 S 0 2.2 0:00.11
28666 USERNAME 15 0 24788 9536 1744 S 0 2.2 0:00.10
29829 USERNAME 16 0 24784 9532 1744 S 0 2.2 0:00.10
32364 USERNAME 15 0 36920 1732 1160 S 0 0.4 0:00.00 sshd
32367 USERNAME 15 0 10816 2112 1308 S 0 0.5 0:00.00 bash
32387 USERNAME 15 0 10592 1232 952 R 0 0.3 0:00.01 top

What the fuck kareha. What the fuck.

581 Name: !WAHa.06x36 : 2009-04-23 07:22 ID:Heaven [Del]



582 Name: Anonymous : 2009-04-23 10:23 ID:vokRrQsa [Del]

Yeah. Dreamhost private server. Kareha never did this to me before... but lately it's been taking up a large chunk of CPU and RAM.

583 Post deleted by moderator.

584 Name: Anonymous : 2009-04-29 08:22 ID:CZ9Rusd5 [Del]

I`m getting a
Software error:
CGI open of tmpfile: Permission denied
How do I change me temp dir to /wakaba/src/ or something?

585 Post deleted by moderator.

586 Post deleted by moderator.

587 Name: !WAHa.06x36 : 2009-05-08 09:15 ID:Qldo6KoJ [Del]


Dreamhost has some kind of bug where flock() is broken and makes Kareha lock up waiting for a lock on log.txt that is never released.

588 Name: Anonymous : 2009-05-08 12:25 ID:Heaven [Del]

I'm trying desparately to understand compile_template(), but that is some deep magic you got there, WAHa. It looks alien in comparison to the rest of the code, out of place.
Any chance of getting a commented version?

589 Name: !WAHa.06x36 : 2009-05-08 19:37 ID:Heaven [Del]


Yes, it's some pretty wacky magic, if I recall correctly. It was years since I wrote it, though, so I don't necessarily remember exactly how it works myself. I think I gave up on making it readable so I made it unreadable instead. Sorry about that.

It converts the template to Perl code, and turns off strictness so it can use name references to actually change global variables in as it enters and leaves scopes. The main trick is this:

print "$bar\n";

This will print "12". By setting variables this way, the <var> code can just evaluate whatever argument it is given as Perl code.

590 Name: Anonymous : 2009-05-09 04:38 ID:Heaven (Image: 0x0 txt, 31 kb) [Del]

591 Name: Anonymous : 2009-05-10 08:04 ID:Heaven [Del]

You're talking variable variables. Perl's use of references has always been somewhat magical. I'll figure it out, thanks!

It was hard to write, it should be hard to understand, eh?

592 Name: Anonymous : 2009-05-13 08:55 ID:Heaven [Del]

They're not that difficult, just think of them as sort of like pointers.

593 Name: Anonymous : 2009-05-13 11:35 ID:rD4TCTiC [Del]

I'm running a board and can't seem to increase the max number of pages past 2. I've increased considerably the max thread count and the max posts count, even changed the permissions on the folder and rebuilt cache, but I can't get any more pages. Help computah? :<

594 Name: Anonymous : 2009-05-13 21:58 ID:vokRrQsa [Del]

is it possible to disable the logging altogether?

595 Name: !WAHa.06x36 : 2009-05-14 07:49 ID:K4vOYfq0 [Del]


You could put in a cron job to delete log.txt, I guess, but it would break deletion and break IP addresses on the admin page. The flock() itself is needed to avoid concurrent posts stomping on each other.

596 Name: Anonymous : 2009-05-15 19:36 ID:Heaven [Del]

You couldd fake the file locking with a symlink and avoid the flock() call. Make a symlink somewhere (it doesn't even have to point anywhere, really), spin until the link succeeds, and unlink it when the script exits.

597 Name: Anonymous : 2009-05-16 13:58 ID:Heaven [Del]

or you could find a host that doesn't break flock() like that or tell them to fix their broken shit.

598 Name: Anonymous : 2009-05-16 14:59 ID:Heaven [Del]

I did that already. I was trying not to be pompous and elitist about it, though, instead preferring to help others in the hopes that they will on their own realize that the trouble that they have to go through in order to make decent use of a broken web host isn't worth the tiny price difference.

599 Post deleted by moderator.

600 Name: Anonymous : 2009-05-18 13:02 ID:cEXHGDiF [Del]

Trying to set up kahrea on nginx + fcgiwrap. The main board seems to work, but when I try clicking on an individual thread with a URL (in the format of it gives me a 404. I'm on a resource limited VPS and Apache takes up far too many resources for my liking, or else I'd simply use that instead.

This is the part of my nginx config dealing with the board.

location ~ ^/board/.*\.pl$  {
include /etc/nginx/fastcgi_params;
fastcgi_index index.html;

What am I missing?

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