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:

701 Name: Anonymous : 2009-10-12 09:53 ID:KvdknF/A [Del]

When I open the file it just downloads it in my browser.

Chmod in the directory has been set to 755.

if i run perl i get:

Status: 500
Content-type: text/html

<h1>Software error:</h1>
<pre>No ADMIN_PASS or NUKE_PASS defined in the configuration at line 8.
BEGIN failed--compilation aborted at line 126.
Compilation failed in require at line 17.
BEGIN failed--compilation aborted at line 17.
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.

[Mon Oct 12 16:49:14 2009] No ADMIN_PASS or NUKE_PASS defined in the configuration at line 8.
[Mon Oct 12 16:49:14 2009] BEGIN failed--compilation aborted at line 126.
[Mon Oct 12 16:49:14 2009] Compilation failed in require at line 17.
[Mon Oct 12 16:49:14 2009] BEGIN failed--compilation aborted at line 17.

702 Name: Anonymous : 2009-10-12 10:24 ID:Heaven [Del]

You need to configure the board first. Fix

703 Name: Willitrun? : 2009-10-15 10:51 ID:bfq5DYWo [Del]

How to make nginx exec perl scripts?

704 Name: Anonymous : 2009-10-15 13:58 ID:Heaven [Del]

Probably more productive to ask that on some nginx support board.

705 Name: >.> : 2009-10-15 14:22 ID:ZXD4KlZ9 [Del]

how do you sticky in wakaba?
[why is there no readme for it?]

706 Name: Anonymous : 2009-10-15 14:26 ID:ZXD4KlZ9 [Del]

where can i get the 4chan version of the software?

707 Name: Willitrun? : 2009-10-15 16:37 ID:NI8lZqC3 [Del]

>>704 Of course I asked, now waiting for answ. May be there is special way for wakaba? :)

708 Name: Ranon!1qiKDn9IIo : 2009-10-17 14:25 ID:k9xsYIAJ [Del]

Just a quick question about the crypto code in the wakautils file, I'm sure I'd figure it out if I looked at the code (for multiple hours), but answering this could save me a fair bit of time:

Is the crypto code in the wakautils file used only for processing tripcodes?

Thanks, Random anon.

709 Name: !WAHa.06x36 : 2009-10-17 17:08 ID:Heaven [Del]

It's used for some other things, like masked IPs and bookkeeping in Kareha.

710 Name: Ranon!1qiKDn9IIo : 2009-10-17 18:40 ID:k9xsYIAJ [Del]

Well, I figured it out, but thanks for the confirmation, I don't really need it for what I'm doing. I'm making a stripped down version of wakaba that's anonymous-only that's lower bandwidth and less processor intensive.

It's also going to include some lossless image compression features if I get a little better at perl (well, it'll bump up the processor needs, but it's worth it for the bandwidth savings).

It's also going to be bastardized with some AJAX if I can get it to degrade nicely.

Here's hoping I can get the whole thing as small as possible (for the fun of it).

711 Name: Ranon!1qiKDn9IIo : 2009-10-18 13:13 ID:k9xsYIAJ [Del]

Well, since I have this tab open still, I might as well shoot you another question:

Would it be a really bad idea to take out the file scan from the utils file (haven't the exploits it scans for already been patched a while ago?)

I mean, it would be a-ok so long as everyone has a fairly up to date OS... that is unless these images exploit imagemagick.

712 Name: Anonymous : 2009-10-20 19:16 ID:Heaven [Del]

It's a pointless idea. Not like it takes a matter of minutes or even seconds to scan the file.

713 Name: !A2PFY1a/zs : 2009-10-20 20:13 ID:uA9oE6L3 [Del]

is there any mod for no access via proxy?

714 Name: !A2PFY1a/zs : 2009-10-20 20:55 ID:uA9oE6L3 [Del]

i mean for kareha. i know nothing about perl and just start try to learn it after get interested with kareha board script. if someone know about the mod or know where to start modifiying in kareha script, please help.

715 Name: !A2PFY1a/zs : 2009-10-21 17:20 ID:Heaven [Del]

oops my bad, i've added tons of proxy list in spam files

716 Name: 0x000BLAh : 2009-10-23 14:15 ID:odn23zIS [Del]

DBD::SQLite::db prepare failed: near "-": syntax error at /path/to/ line 1794, <FILE> line 5.
DBD::SQLite::db prepare failed: near "-": syntax error at /path/to/ line 1686, <FILE> line 5.

whats wrong?

717 Name: Anonymous : 2009-10-23 17:29 ID:dncjFSH0 [Del]


718 Post deleted by user.

719 Name: 0x000BLAh : 2009-10-25 03:06 ID:odn23zIS [Del]


720 Name: Anonymous : 2009-10-25 08:58 ID:Heaven [Del]

You screwed up your board, and you're giving next to zero information.

721 Name: 0x000BLAh : 2009-10-25 17:25 ID:odn23zIS [Del]

server nginx/0.7.62

>[user@host o]# ls -g
>-rwxrwxrwx 1 nobody 9916 Окт 24 03:31
>-rwxrwxrwx 1 nobody 12265 Окт 26 07:11
>-rwxrwxrwx 1 nobody 8368 Окт 24 10:52
>-rwxrwxrwx 1 nobody 894 Сен 12 2004 favicon.ico
>-rwxrwxrwx 1 nobody 2784 Окт 24 03:31
>-rwxrwxrwx 1 nobody 23633 Апр 16 2009
>-rwxrwxrwx 1 nobody 592 Окт 24 03:31
>drwxrwxrwx 2 nobody 176 Окт 20 02:40 include
>-rwxrwxrwx 1 nobody 819 Окт 22 06:32
>-rwxrwxrwx 1 nobody 1284 Окт 21 16:59
>-rwxrwxrwx 1 nobody 12665 Окт 22 06:33
>-rwxrwxrwx 1 nobody 1645 Окт 24 03:31
>-rwxrwxrwx 1 nobody 222502 Фев 26 2006 spainter_all.jar
>-rwxrwxrwx 1 nobody 2764 Фев 14 2006 spainter_normal.html
>-rwxrwxrwx 1 nobody 894 Сен 12 2004 wakaba.ico
>-rwxr-xr-x 1 nobody 48185 Окт 25 04:04
>-rwxrwxrwx 1 nobody 3072 Окт 26 07:13 wakaba.sql
>-rwxrwxrwx 1 nobody 32069 Апр 16 2009

wakaba.sql contains one empty table - tbl1

when iam trying to access from browser it says

>Critical SQL problem!

perl says

>DBD::SQLite::db prepare failed: near "-": syntax error at /.../ line 1794, <FILE> line 5.
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../ line 1794, <FILE> line 5.
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../ line 1686, <FILE> line 5.

>1 #!/usr/bin/perl
>3 use CGI::Carp qw(fatalsToBrowser);
>5 use strict;
>7 use CGI;
>8 use DBI;

722 Name: !A2PFY1a/zs : 2009-10-26 03:32 ID:Heaven [Del]

is there anyway to add custom redirector site just like in 2ch (like
but the complete url still show the original url
err, what must i say...

if i can make it just like in 2ch it would be great

723 Name: !A2PFY1a/zs : 2009-10-26 04:09 ID:Heaven [Del]

simply: can i add custom redirector site easily in
i'm really confused with perl

724 Name: Anonymous : 2009-10-26 09:04 ID:Heaven [Del]

try looking near lines 1794 and 1686 in

725 Name: 0x000BLAh : 2009-10-26 14:08 ID:odn23zIS [Del]

at 1686

1686 $sth=$dbh->prepare("CREATE TABLE ".SQL_ADMIN_TABLE." (".
"num ".get_sql_autoincrement().",".	# Entry number, auto-increments
"type TEXT,". # Type of entry (ipban, wordban, etc)
"comment TEXT,". # Comment for the entry
"ival1 TEXT,". # Integer value 1 (usually IP)
"ival2 TEXT,". # Integer value 2 (usually netmask)
"sval1 TEXT". # String value 1
");") or make_error(S_SQLFAIL);

at 1794

sub table_exists($)
my ($table)=@_;
my ($sth);
1794	return 0 unless($sth=$dbh->prepare("SELECT * FROM ".$table." LIMIT 1;"));
return 0 unless($sth->execute());
return 1;

looks like i have to create tables manually? if so, how to?

726 Name: Anonymous : 2009-10-27 20:36 ID:Heaven [Del]

what did you set SQL_ADMIN_TABLE to?
you're getting a SQL syntax error. you probably put something screwy in the table name.

727 Name: 0x000BLAh : 2009-10-28 02:15 ID:5ck9qgXc [Del]

I am using "-" character in table names, lol. And I suppose the last question, I am using utf8 everywhere, but all non-eng strings from included files like and header.html displayed incorrectly.

728 Name: Anonymous : 2009-10-28 20:30 ID:9oF6qwTS [Del]

No verification code on record - it probably timed out.

729 Name: 0x000BLAh : 2009-10-30 16:31 ID:odn23zIS [Del]

Locale problem heuristically fixed, CONVERT_CHARSET must be false)

730 Name: bob : 2009-10-31 10:42 ID:flltB5S+ [Del]


731 Name: tka!!LT1qjn4w : 2009-11-01 13:43 ID:6vM32nI9 [Del]

My Kareha Install sometimes shows the whole page in plain text instead of interpreting the HTML code. Example:
It seems to occur randomly and is browser independent.

However, when I remove the last /, it works normally. How can I fix this?

732 Name: Anonymous : 2009-11-01 16:47 ID:Heaven [Del]

Get a less broken server.

733 Name: Anonymous : 2009-11-11 10:45 ID:khZcfair [Del]

Somebody mentioned patches to enabled post editing over Wakaba...
Anyone can point me toward a nice one?
And yeah, read the warning, but this is for a small private board, and it's to supplement the directory dumper, advanced mode does let you add messages to every post, but it's kinda hard to know what to say when you can't see the picture...
I'd like something that easily lets me dump a batch of pic and then go back and edit the post to add messages to the ones I wanted to say something about...

734 Name: Anonymous : 2009-12-15 10:41 ID:FfMN5m4t [Del]

I can't browse the, it's only downloadble... even though I changed the permission to 755

What's wrong?

735 Post deleted by moderator.

736 Name: Anonymous : 2009-12-25 00:10 ID:/gAGFhhP [Del]

when i test out it loads mybookface... wtf is goin on?!?!

737 Name: Anonymous : 2009-12-25 00:11 ID:/gAGFhhP [Del]

when i test out it loads mybookface... wtf is goin on?!?!

738 Name: Anonymous : 2009-12-26 14:35 ID:Yul/cbIp [Del]

What the fuck is going on here? I have no idea what I'm doing

739 Name: Anonymous : 2010-01-01 21:41 ID:Heaven [Del]


> The server encountered an internal error or misconfiguration and was unable to complete your request.

you obviously misconfigured your server.

740 Name: Anonymous : 2010-01-03 14:00 ID:vw2dW0qL [Del]

How to create "To Thread / To Board" radio buttons?

741 Name: Anonymous : 2010-01-05 13:54 ID:B///v/Gd [Del]

Relevant to my interests

742 Name: Anonymous : 2010-01-05 18:42 ID:tyXQmHCX [Del]

Quick dirty question:

Is there a way to disable Browser Caching?
Right now my browser is caching the boards and when replying it doesn't update and you have to manually press F5.

Thank you ^^

743 Name: !WAHa.06x36 : 2010-01-05 20:13 ID:Qldo6KoJ [Del]


See example.htaccess.

744 Name: Anonymous : 2010-01-05 21:11 ID:QmV/J3F8 [Del]

I'm having the same problem. I've been researching about it and I've gotten myself confused about what needs to be done. If somebody could please give a simple answer, that'd be great, thanks.

745 Name: Anonymous : 2010-01-06 13:34 ID:Dnt0e2zv [Del]

Hey everyone, after much struggling I managed to get passed the 500 error.

But now when I try to access the site, I just get the directory. Trying to open makes my browser try to download it instead of generating the html.

In the error log I get this:
[Wed Jan 06 15:28:06 2010] [error] [client 24.162.***.***] client denied by server configuration: /home/ritsucha/public_html/
I've already configured the config and setup a database (unless I did it wrong :/)

746 Name: !WAHa.06x36 : 2010-01-07 10:06 ID:Heaven [Del]

You need to configure Apache to run CGI scripts properly. How to do that depends on your setup and where you're hosted. has some hints, but it's really up to you to figure out how to do that.

747 Name: Jay : 2010-01-08 19:16 ID:EPadINMP [Del]

Hey, can anyone help me here?

I've added the following lines to the bottom of httpd.conf;

# Perl
Options +ExecCGI
AddHandler cgi-handler .cgi .pl

I've made sure that has the permissions 0755 and the hashbang is set to /usr/bin/perl (I checked, and the file does exist there) but I still only see the source code when I run I've also enabled mod_perl in httpd.conf (I'm not sure if you're supposed to or not) but it made no difference. Does anyone know what the problem is?

I'm using XAMPP on Ubuntu 9.04, if it helps. And yes, I've been restarting apache after each change to httpd.conf.

748 Name: Hmm : 2010-01-10 20:57 ID:aj80II5Z [Del]

Alright, I've set the permissions correctly and everything. I've correctly set up the mysql databases and linked them in
I've checked again and again and I know the database name, user name, and host are all correct, yet I still get a "SQL connection error" message.

749 Name: Ross!!h1K4xyNk : 2010-01-11 10:55 ID:uoYxkXC4 [Del]

Here are example configs to fix the Kareha + nginx issues folks like >>600 experience. A catchall for .pl files won't work, and must be explicitly set in the nginx config.

location ~ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/path/to/perlfcgi.socket;
fastcgi_param SCRIPT_FILENAME /path/to/webroot$fastcgi_script_name;
location ~ {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/path/to/perlfcgi.socket;
fastcgi_param SCRIPT_FILENAME /path/to/webroot$fastcgi_script_name;

The absolute path of the files may be specified as well...

location = /path/to/

... but the first two examples simplify a multi-board setup.


750 Name: Anonymous : 2010-01-12 13:20 ID:l1PuRUb8 [Del]

Some noob questions about wakaba.
Why wakabamark doesn't working with russian charsets? Also, javascripts don't working as well. Can't change style or inasert post number in comment.

751 Name: Anonymous : 2010-01-13 02:57 ID:YGK7wmZV [Del]

i want to use kareha image mode, but every time i try to upload an image (example: 800x600px 37KB image) there are no thumbnail at main page and it said 'No thumbnail'

i only change file in 'ADMIN_PASS' and 'SECRET' the rest of config variable are still default.

help please

752 Name: Anonymous : 2010-01-14 14:57 ID:MbJQhzfJ [Del]

Software error:

"use" not allowed in expression at line 1, at end of line
syntax error at line 1, near "to use shift"
"use" not allowed in expression at line 12, at end of line
BEGIN not safe after errors--compilation aborted at line 13.
Compilation failed in require at line 16.
BEGIN failed--compilation aborted at line 16.

753 Name: !WAHa.06x36 : 2010-01-14 15:52 ID:Heaven [Del]


Imagemagick is not correctly installed.


You messed something up in

754 Name: Anonymous : 2010-01-14 23:06 ID:E1kHSg1H [Del]

Вакаба работает с русской кодировкой. Переименуй файл wakaba3.js в wakaba.js.

//Wakaba work with russian charset. Rename wakaba3.js in wakaba.js.

755 Name: anon : 2010-01-17 17:55 ID:xxS2mcmc [Del]

Отписался в платиновом треде

756 Name: samwise : 2010-01-22 03:37 ID:20REOGm5 [Del]

How do I access via my webbrowser? it only wants to save/open it but I can't really figure out how it should create an .html.

757 Name: Anonymous : 2010-01-22 12:52 ID:O3yuxb2C [Del]


You're going to need to play around with it on the server side. That happened to me and I had to play around with apache.

758 Name: Anonymous : 2010-01-22 12:55 ID:O3yuxb2C [Del]

I installed wakaba and all. It created the html pages and everything seemed to be working until I tried to upload a picture.

It spat out this error:
"Software error: Server closed socket during multipart read (client aborted?)."

I haven't worked with apache2 a lot or most web host stuff before. Any ideas what's going on?

759 Name: !WAHa.06x36 : 2010-01-22 15:13 ID:Heaven [Del]


Maybe Apache is configured to block large uploads or something?

760 Name: Anonymous : 2010-01-22 16:24 ID:O3yuxb2C [Del]


Can't find anything but that doesn't mean there is. -

761 Name: Anonymous : 2010-01-25 11:51 ID:IVdAPTo8 [Del]

Woops, I intended to make my post here but for some reason made a new thread. That was a new and interesting brain fart. Anyways, my oekaki board was working perfectly fine for a while it seemed, but now every so often it's giving this:
Software error:
Can't read uploaded file at line 85.For help, please send mail to the webmaster,
giving this error message and the time and date of the error.

Any ideas? Thanks!

762 Name: Anonymous : 2010-01-28 10:48 ID:VKYbR1Uv [Del]

I don't know how the data base of kareha is designed. Maybe it is impossible to do this: Is it possible to limit the file size of the files that a kareha message board creates to a specific value? (What is the smallest possible size?) Would this imply some restrictions to, for example, the length of threads? Thank you for your help.

763 Name: Spycker : 2010-01-28 11:48 ID:0livikiu [Del]

the admin and pass were defined in yet i cant install wakaba, any ideas?

764 Name: Zowayixx : 2010-01-28 14:35 ID:085N3y5+ [Del]

Hello, I'm having a rather annoying problem. Whenever I edit some things in my wakaba.html or index.html (whichever one is the HTML_SELF), all the data I added gets erased whenever I post or add a new picture. Is there any way to fix this?

765 Name: !WAHa.06x36 : 2010-01-29 06:42 ID:Heaven [Del]


Those files are autogenerated, so any changes will always be lost. To make actual changes, edit the templates or include files.

766 Name: Zowayixx : 2010-01-30 15:16 ID:085N3y5+ [Del]


Ah, thanks. I got the header, but where are the templates?

Thanks! ^^

767 Name: Anonymous : 2010-01-30 17:52 ID:yiyOAvk4 [Del]

I keep getting this:

Software error:

Can't locate in @INC (@INC contains: . C:/perl/lib C:/perl/site/lib) at E:\Domains\[url]\wwwroot\wakaba\ line 16.
BEGIN failed--compilation aborted at E:\Domains\[url]\wwwroot\wakaba\ line 16.

I don't understand what's wrong?

768 Post deleted by moderator.

769 Post deleted by moderator.

770 Post deleted by user.

771 Name: Anonymous : 2010-02-01 04:33 ID:J8i2SjIT [Del]

Change .pl scripts header, path to you compliler with .exe
And add wakaba directory to mod_cg and %PATH%

772 Name: Anonymous : 2010-02-01 04:36 ID:J8i2SjIT [Del]


773 Post deleted by moderator.

774 Name: Anonymous : 2010-02-01 14:12 ID:yiyOAvk4 [Del]

uhm, where's that at? fuck I don't even know if I can edit that on this host.

775 Post deleted by user.

776 Name: Anonymous : 2010-02-02 17:06 ID:GTRuts9c [Del]

How can i create new boards and edit main page? I configured etc. and i See one, deafult board when i run /wakaba/ folder. How to make another boards /a/ /b/ /c/ etc.? In admin panel there is only few options...

777 Name: !WAHa.06x36 : 2010-02-02 17:34 ID:Heaven [Del]


That's what you get. You do any customizing like that by hand. Install multiple copies, edit templates and includes, and so on.

778 Post deleted by moderator.

779 Name: Anonymous : 2010-02-04 00:42 ID:GTRuts9c [Del]

okej, thx. What's the diffrence between kareha and wakaba. Which one is better? Why should i choose wakaba/kareha? Why shouldnt i choose serissa or kusaba?

780 Post deleted by moderator.

781 Post deleted by moderator.

782 Post deleted by moderator.

783 Post deleted by moderator.

784 Post deleted by moderator.

785 Post deleted by user.

786 Name: Anonymous : 2010-02-21 15:47 ID:Heaven [Del]

787 Name: Anonymous : 2010-02-21 15:48 ID:hgp/h576 [Del]

i meant to bump this...

788 Post deleted by moderator.

789 Name: Anonymous : 2010-03-12 05:31 ID:RMghOGCf [Del]

Recently there are lots of porn poster bots on my board, running for the site so they can hotlink images off of the server. I'd rather not disable hotlinking, and am not sure if disabling just that site from hotlinking us would stop it for now. Is there a way to block bots by password? They seem to be using the same one even across IPs.

790 Name: Anon : 2010-03-25 15:08 ID:VqC5r0op [Del]

How do I include the space used (Listed in the name page) under the main wakaba page. On the front page I want to have a stats section on number of posts and total size used?

791 Post deleted by user.

792 Name: Pedohater : 2010-03-26 05:24 ID:vaNfkHyY [Del]

How about removing the CP from guns category?!?!?!

793 Name: weetabix : 2010-03-28 08:21 ID:3dQO8A+A [Del]

Hi guys! Just wanna ask a noob's question:
What kind of SQL database and in what collation should I make for Wakaba/Kareha?

794 Name: Anonymous : 2010-03-28 13:05 ID:Heaven [Del]

I imagine you would have to code that sort of thing yourself.

You are very lost.

Read -- it tells you how to set up Wakaba with either MySQL or SQLite. You don't have to make any of the tables. Kareha doesn't need a database.

795 Name: Anonymous : 2010-03-31 18:17 ID:mnrbeJWf [Del]

How can I disable auto-linking in Kareha...?

796 Name: Anonymous : 2010-04-01 00:50 ID:mnrbeJWf [Del]

Actually, scratch that. I'd like to know if there is some way to have external links open in a new window when you click on them.

797 Name: Anonymous : 2010-04-01 19:41 ID:XcBctTa3 [Del]


798 Name: Anonymous : 2010-04-04 05:39 ID:Heaven [Del]

Speaking as a user, if I want to have a link open in another window, I can do it myself, with right click -> open in new window. If I want it to open in the same window, I just click it. Making all pages open in a new window is just annoying, and makes me stop visiting that site.

799 Name: Anonymous : 2010-04-04 13:04 ID:mnrbeJWf [Del]

That's true, and I do that too. But the layout of my site puts the textboard inside of a frame, so... :T

800 Name: Anonymous : 2010-04-04 19:19 ID:Heaven [Del]


<a target="_top" ...>
This thread has been closed. You cannot post in this thread any longer.