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: http://wakaba.c3.cx/sup/kareha.pl/1141929669/
Questions about "500 Internal Server Errors" go in this thread: http://wakaba.c3.cx/sup/kareha.pl/1109033191/
Quick question: How do we enable more than 11 pages of posts? Thanks.
Change the post limits?
Well, MAX_THREADS and MAX_POSTS are both set to zero in config.pl. Is it something else that I have to set?
MAX_AGE and MAX_MEGABYTES, I guess?
The Wakaba/Kahera support wiki has a SecretFeatures tiddle that says:
>Wakaba and Kareha have a couple of hidden options and features. Can you find them?
I havn't been able to find them and it is driving me mad. Somebody please put me out of my misery.
When trying to make or delete a post, kareha.pl usually forwards me to index.html without it being completely built. This results in a parsing error if xhtml is enabled. index.html is fine if refreshed. Any idea what's causing this?
>>628
they're probably referring to things like ^H
and the other date formats that aren't documented in config.pl
.
Sounds like some kind of very weird or broken server. The redirect isn't done before the file is completely written to disk.
I never found MAX_AGE in config.pl (running 3.1.3). It's in there now, let's see what it does.
I basically want to be able to archive everything if possible.
>>630
No offence but I hope you are wrong because that is dissappointing.
I think I need a perl guru to help me with this mystifying problem. I run a wakaba image board and the admins want to have #admin after their posts, which is fair enough.I got it working by adding this at line 144 of futaba_style.pl (308):
<if !$email><if $name eq 'NAME'><if $trip eq 'TRIP'><span class="admin">#Admin#</span></if></if></if>
<if $email><if $name eq 'NAME'><if $trip eq 'TRIP'><span class="admin">#Admin#</span></if></if></if>
This worked flawlessly on a test site, but when I added the code to my live site it works fine on some boards and not at all on others. Even if I copy futaba_style.pl from a board which is working it still refuses to work. Even more baffling is one particular board which inserts #Admin# for posts that already exist, but not new posts!?!
I only have very basic programming knowledge but I don't even see how the last scenario is even possible. If the script recognises a name and trip combo and inserts #Admin# in one post, how can it not recognise the exact same name and trip combo in another post. Baffling. Obviously there is something more to this beyond my knowledge so if someone can point me in the right direction I'd be supper appreciative.
I have no idea what causes the problem, but mabe you should first just remove the outermost <if> statements and just have the code in there once. There's little point in doing it twice like that.
Also, you can combine several tests into <if $name eq 'NAME' and $trip eq 'TRIP'> to get rid of another if statement. Making the code simpler might help in figuring out what is going wrong
I am trying to install Wakaba on a shared hosting server. When I try and run wakaba.pl to get the html files it just trys to download the file and not run it. I asked my host about this and they said the files have to be in the cgi bin folder or something. Can someone please explain how to get this working X__X thank you.
>>637
My server is running Lighttpd, Ubuntu 9.04. It supports .htaccess, I think.
It is chmodded 777. All access.
Not to begin with, but when someone makes a post, it makes a 0-Byte file there, as if it tried to thumbnail and failed.
Why is it SUPPOSED to be like that? And no, it is all posts. Why does the first image not get thumbnailed though?
> My server is running Lighttpd
Wakaba has only been tested on Apache. If you want to run it on anything else you're on your own. There will be problems. This is not recommended unless you really know what you're doing, and it seems that maybe this isn't the case.
>>342
To fix the manager post problem, edit futaba_style.pl:
Search the file for ADMIN_POST_TEMPLATE. This should be found around line 590. There is some shit about form fields. Leave the "hidden" type alone. Starting on line 602 is the shit about postblocks for name, email, subject,(submit button) and comment. Leave the submit button alone. Change the name="whatever" to name="field1". Do this for name, email, subject, and comment; as in, change them to field1, field2, field3, and field4. In the order they are.
Also, change it so it looks like this:
use constant ADMIN_POST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><em><const S_NOTAGS></em></div>
<div class="postarea">
<form id="postform" action="<var $self>" method="post" enctype="multipart/form-data">
<input type="hidden" name="task" value="post" />
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="no_captcha" value="1" />
<input type="hidden" name="no_format" value="1" />
<table><tbody>
<tr><td class="postblock"><const S_NAME></td><td><input type="text" name="field1" size="28" /></td></tr>
<tr><td class="postblock"><const S_EMAIL></td><td><input type="text" name="field2" size="28" /></td></tr>
<tr><td class="postblock"><const S_SUBJECT></td><td><input type="text" name="field3" size="35" />
<input type="submit" value="<const S_SUBMIT>" /></td></tr>
<tr><td class="postblock"><const S_COMMENT></td><td><textarea name="field4" cols="48" rows="4"></textarea></td></tr>
<tr><td class="postblock"><const S_UPLOADFILE></td><td><input type="file" name="file" size="35" />
[<label><input type="checkbox" name="nofile" value="on" /><const S_NOFILE></label>
</td></tr>
<tr><td class="postblock"><const S_PARENT></td><td><input type="text" name="parent" size="8" /></td></tr>
<tr><td class="postblock"><const S_DELPASS></td><td><input type="password" name="password" size="8" /><const S_DELEXPL></td></tr>
</tbody></table></form></div><hr />
<script type="text/javascript">set_inputs("postform")</script>
That should be fixed in the latest version.
Problem with oekaki:
After painting my image, uploading it and writing RIGHT captcha, i see error about wrong captcha. What it can be?
I'm wondering if there's anyway to grab the subject from the first post in a thread, and to reflect it within "futaba_style.pl".
>>641-642
I've been running Wakaba and Kareha both on lighty for quite some time on a couple of different systems (I have tried it with OS X Tiger, FreeBSD, and Arch Linux, and had no problems)
The only snag is that lighty doesn't support htaccess files, so you'll have to translate the relevant stuff to its own config format. Not that hard to do, just tell it that .pl files should run with perl. You don't need to enable the fastcgi module (in fact, don't enable it) You might additioanlly want to fiddle with the expires headers if you find you're getting old copies of the pages served after posting.
As for permissions, if you set up execwrap or something similar you can get it running without the (highly insecure!) chmod 777. It's easier to configure than Apache's suexec, imo.
I have a bit of a question about Wakaba: I want to create an upload board like 4chan's flash board. However, I just installed it and it functions like a regular imageboard (like you'd see on any other part of 4chan). Is there a way I can get Wakaba to mimic 4chan's flash board in terms of appearance and function, and if not what should I be using?
> As for permissions, if you set up execwrap or something similar you can get it running without the (highly insecure!) chmod 777.
or you can just set the owner of the directories to the user that the scripts run as, and then set the permissions to 755.
>>649
That's still not secure, and requires root on some systems in order to "give away" the permissions to the web server. In fact it's probably a worse choice because it could potentially lull you into a false sense of security where you're actually in the same circumstance as before.
The issue is that other processes on the server can open up config.pl and scrape (and perhaps change) your admin password, either because it's readable and writable to all, or because they're all running as the same user. If two people have access to the web server and the server is running all scripts under the same user id, all script files are accessible to all users regardless of what else you do to them.
It's a shame that the Apache developers reacted so irrationally and so strongly against suexec, because it solves many problems and creates very few.
>>650
the point wasn't that it's secure to do it that way, just that there are other ways to do it without setting the permissions to 777.
>>651
Sure there are. But the method you suggested is more effort than a plain chmod 777 without being beneficial in some way.
>>648
All it takes is writing an appropriate style.pl file. It is essentially find-and-replace stuff, I did it once, and I had no idea what I was doing,
I have a similar'ish problem as >>600, i looked over the thread and still cant find a answer to this, the board works fine, but when make a post (successfully) and go to hit reply to the thread, i instead get the thread minus all styles, yet, if i go to http://site.com/board/kareha.pl/threadnumber/index.html, everything looks as it should and behaves properly, can anyone point out what part of the code needs to be adjusted to append /index.html to the reply url's kareha generates please?
i suspect its the webserver thats ultimately responsible for this but it seems to be a good exercise for me to do anyway ^_^
Is there a way to merge the posts from two kareha boards together? Thanks.
You can just copy all the files from res/ on one board to the other, and rebuild caches. However, this will break >> links and deletion of old posts for the ones that moved. You can fix the former by either running some search-and-replace on the res files, or by setting up an HTTP redirect.
A while back the captcha on my Wakaba install stopped working - when I view captcha.pl directly, it spits out the error:
Undefined subroutine &utf8::is_utf8 called at /usr/lib/perl5/5.8.0/CGI/Util.pm line 251.
I notice the 5.8.0 part in there because by the look of things, my hosting is running Perl 5.8.8
Since this happened on its own I guess it's more likely my hosting service's Perl install is somehow screwed up, but is this a sign that I'm doing something wrong at my end?
Correction: captcha.pl throws that error for everybody EXCEPT (a) one dude in Finland, and (b) the support guy I'm trying to get help from. He says that Perl is running fine.
HAHA DISREGARD THAT I SUCK COCKS (and by "suck cocks" I mean "had the support dude reinstall Perl and it fixed everything")
Hey there. I have been trying to get kareha working now for a while (I am a complete idiot when it comes to programming) and I have stumbled upon a problem: everytime I try to acces localhost/kareha.pl it gives me a 403 error. Could anyone help me to fix this problem?
Regards,
Sebastian
Anyone here?
>>661
Make sure you set the correct permissions on the .pl files. You might want to read those: http://wakaba.c3.cx/docs/docs.html
I'm using Kareha in message board mode. When I try to rebuild caches from admin.pl I keep getting this error:
"Couldn't write to file "" at wakautils.pl line 1013."
The rules header gets updated, but other threads with parentheses for titles get created. I can't delete them, or post in them.
What can I do to fix this?
Sounds like a broken configuration of some kind. Hard to say how exactly.
I found a perl script to generate random images on a wakaba board which works brilliantly, but I have been getting requests for the image to link to the thread the image comes from. I'm guessing I need to query the mysql database to find the thread but my coding skills are very weak so if someone could get me started I would really appreciate it. Perl or PHP is fine and here is the script I am using...
#!/usr/bin/perl
my $directory="b/thumb";
my @files=glob("$directory/*");
my $file=$files[rand @files];
print "Status: 302 Found\n";
print "Location: $file\n";
print "\n";
Noobish question; is this installed on your site, or uploaded and the files edited to make changes?
Yes the script is installed and running. I want to modify the script to also return the thread which the image originates from. I'm learning perl from scratch so I'm looking for pointers to help me out, cheers.
Can someone please answer my question?
what web hosting companies would guys recommend to run an imageboard website?
Lots of people like Dreamhost because it's cheap and has lots of bandwidth and space. It's a bit unreliable at times but if you can live with that it's nice enough.
Is it possible to deny a post by using ID?
I need to ban a certain user that changes IP frequently...
I'm getting
Error: No verification code on record - it probably timed out.
When I try to post.
There is no little picture next to the 'verification' box =\.
>>680
fixed that.
I really need to learn to shut up.. sorry for the stupid questions.
One more question to throw at anyone here though, None of the themes that came with wakaba are working. See pic for details.
Anyone know what to do about
Caused by SystemException in API_Linux.cpp:434: execve() for program "/home/content/u/s/e/username/html/cgi/ra/thumb/1253939376496s.jpg" failed: Exec format error
[Fri Sep 25 22:52:06 2009] [error] [client 70.251.74.93] Premature end of script headers: /var/chroot/home/content/u/s/e/username/html/cgi/ra/thumb/1253939376496s.jpg
I can't get any images to thumbnail with imagemagick, is this the reason/?
I want to host a low bandwidth image board where people can't upload images, but they can link to images on other servers. What do you recommend? Can Wakaba or Kareha be configured to do this?
>>683 It's definitely possible, although you'd need to understand perl to do it. Also, that's a pretty annoying thing for webmasters to deal with; expect nasty emails and redirects to goatse.
>>681
Still can't get themes to work.
I moved the .css files into a separate css folder outside of the cgi folder, but wakaba is still trying to execute the ones inside the cgi folder.
I tried adding this into config.pl:
use constant CSS_DIR => '../../css/';
but it doesn't change anything.
Any help on this would be greatly appreciated, my board still has no theme =\
And FOR THE THIRD TIME, IT WORKS , RIGHT AFTER I POST THIS
ARRRRRGGGHHHHH
IGNORE MY WORTHLESS POSTS PLEASE!
I've been using wakaba for a while and I love it, but sometimes I wish it had more involved administrative options. Things like the ability to sticky posts (not manager posts, ones made by other uses), edit posts, blacklist certain words from being posted.
One of the reasons I chose wakaba over other options was its simplicity, so I can get along without any of that, but sometimes it would just be so nice.
Also, is there any way to easily upgrade from one board version to another?
I'm sure I just messed something up but nothing is working with the board:
http://www.theybannedme.com/wakaba/wakaba.html
I did install it from shell as it wouldn't run from browser. I'm pretty sure this is why it's messed up but I'm in over my head. Any help is appreciated. Thanks.
>I did install it from shell
Yep, that's wrong. Delete everything and start over.
>>689
You can easily blacklist words, that's the spam.txt file. Or the "ban word" form under the bans/whitelist page.
Stickies will never happen, neither will post editing. Look around for patches; they've been made. But please reconsider, since that sort of thing is annoying as hell on a board, and it generally enforces the principle that the userbase is only there to watch the administrators dick around. Stickies especially; the bullet-point list and space between the post form and the threads serves as a much better place to disseminate information; if you're trying to sticky threads to artificially redirect the natural course of conversation on the board, you're potentially stifling it.
Nevertheless, if you want to do that stuff anyway, know a bit of Perl, and feel like a small challenge, stickies are literally a five-line patch (if you don't want to draw icons for them).
(Incidentally, what is the difference between spam.txt and the "ban word" form? WAHa?)
Spam.txt is slightly more powerful (it can do regexps) and is easier to update in bulk. Also they give different error messages. So basically the banned words is more for dealing with problematic topics, and spam.txt is for spammers specifically. It's a bit redundant, I guess.
If one does not post any word, what can I do?
Post like only porn picture is making me nuts...
Regarding 694, is there any setting in Kareha?
Ok I figured that.
Im trying to work on Subback.html to show only thread name.
I changed suback.html but after I rebuild the cash it got back to the original style.
anyone can give me a idea where to change?
Can I use Kareha or Wakaba to make a board with no images? Just text discussion?
Thanx.
When I open the wakaba.pl file it just downloads it in my browser.
Chmod in the directory has been set to 755.
if i run perl wakaba.pl i get:
Status: 500
Content-type: text/html
<h1>Software error:</h1>
<pre>No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
</p>
[Mon Oct 12 16:49:14 2009] wakaba.pl: No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
[Mon Oct 12 16:49:14 2009] wakaba.pl: BEGIN failed--compilation aborted at config_defaults.pl line 126.
[Mon Oct 12 16:49:14 2009] wakaba.pl: Compilation failed in require at wakaba.pl line 17.
[Mon Oct 12 16:49:14 2009] wakaba.pl: BEGIN failed--compilation aborted at wakaba.pl line 17.
>>701
You need to configure the board first. Fix config.pl.
How to make nginx exec perl scripts?
>>703
Probably more productive to ask that on some nginx support board.
how do you sticky in wakaba?
[why is there no readme for it?]
where can i get the 4chan version of the software?
>>704 Of course I asked, now waiting for answ. May be there is special way for wakaba? :)
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.
It's used for some other things, like masked IPs and bookkeeping in Kareha.
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).
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.
>>711
It's a pointless idea. Not like it takes a matter of minutes or even seconds to scan the file.
is there any mod for no access via proxy?
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.
oops my bad, i've added tons of proxy list in spam files
DBD::SQLite::db prepare failed: near "-": syntax error at /path/to/wakaba.pl line 1794, <FILE> line 5.
DBD::SQLite::db prepare failed: near "-": syntax error at /path/to/wakaba.pl line 1686, <FILE> line 5.
whats wrong?
>rew
>>719
You screwed up your board, and you're giving next to zero information.
server nginx/0.7.62
>[user@host o]# ls -g
>-rwxrwxrwx 1 nobody 9916 Окт 24 03:31 captcha.pl
>-rwxrwxrwx 1 nobody 12265 Окт 26 07:11 config.pl
>-rwxrwxrwx 1 nobody 8368 Окт 24 10:52 config_defaults.pl
>-rwxrwxrwx 1 nobody 894 Сен 12 2004 favicon.ico
>-rwxrwxrwx 1 nobody 2784 Окт 24 03:31 finish.pl
>-rwxrwxrwx 1 nobody 23633 Апр 16 2009 futaba_style.pl
>-rwxrwxrwx 1 nobody 592 Окт 24 03:31 getpic.pl
>drwxrwxrwx 2 nobody 176 Окт 20 02:40 include
>-rwxrwxrwx 1 nobody 819 Окт 22 06:32 oekaki_config.pl
>-rwxrwxrwx 1 nobody 1284 Окт 21 16:59 oekaki_strings_ru.pl
>-rwxrwxrwx 1 nobody 12665 Окт 22 06:33 oekaki_style.pl
>-rwxrwxrwx 1 nobody 1645 Окт 24 03:31 paint.pl
>-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 wakaba.pl
>-rwxrwxrwx 1 nobody 3072 Окт 26 07:13 wakaba.sql
>-rwxrwxrwx 1 nobody 32069 Апр 16 2009 wakautils.pl
wakaba.sql contains one empty table - tbl1
when iam trying to access wakaba.pl from browser it says
>Critical SQL problem!
perl says
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../wakaba.pl line 1794, <FILE> line 5.
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../wakaba.pl line 1794, <FILE> line 5.
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../wakaba.pl line 1686, <FILE> line 5.
wakaba.pl
>1 #!/usr/bin/perl
>2
>3 use CGI::Carp qw(fatalsToBrowser);
>4
>5 use strict;
>6
>7 use CGI;
>8 use DBI;
>9
is there anyway to add custom redirector site just like in 2ch (like ime.nu)?
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