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/
>>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
simply: can i add custom redirector site easily in config.pl?
i'm really confused with perl
>>721
try looking near lines 1794 and 1686 in wakaba.pl.
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?
>>725
what did you set SQL_ADMIN_TABLE
to?
you're getting a SQL syntax error. you probably put something screwy in the table name.
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 strings_en.pl and header.html displayed incorrectly.
No verification code on record - it probably timed out.
Locale problem heuristically fixed, CONVERT_CHARSET must be false)
My Kareha Install sometimes shows the whole page in plain text instead of interpreting the HTML code. Example: http://www.3-ch.org/3ch/uni/kareha.pl/1255162076/
It seems to occur randomly and is browser independent.
However, when I remove the last /, it works normally. How can I fix this?
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...
I can't browse the wakaba.pl, it's only downloadble... even though I changed the permission to 755
What's wrong?
when i test out wakaba.pl it loads mybookface... wtf is goin on?!?!
when i test out wakaba.pl it loads mybookface... wtf is goin on?!?!
What the fuck is going on here? I have no idea what I'm doing
> The server encountered an internal error or misconfiguration and was unable to complete your request.
you obviously misconfigured your server.
How to create "To Thread / To Board" radio buttons?
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 ^^
>>701
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.
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 wakaba.pl 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/config.pl
I've already configured the config and setup a database (unless I did it wrong :/)
You need to configure Apache to run CGI scripts properly. How to do that depends on your setup and where you're hosted.
http://wakaba.c3.cx/docs/docs.html has some hints, but it's really up to you to figure out how to do that.
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 wakaba.pl 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 wakaba.pl. 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.
Alright, I've set the permissions correctly and everything. I've correctly set up the mysql databases and linked them in config.pl.
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.
Here are example configs to fix the Kareha + nginx issues folks like >>600 experience. A catchall for .pl files won't work, kareha.pl and admin.pl must be explicitly set in the nginx config.
location ~ kareha.pl {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/path/to/perlfcgi.socket;
fastcgi_param SCRIPT_FILENAME /path/to/webroot$fastcgi_script_name;
}
location ~ admin.pl {
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/kareha.pl
... but the first two examples simplify a multi-board setup.
Enjoy.
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.