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/
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.
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 config.pl in 'ADMIN_PASS' and 'SECRET' the rest of config variable are still default.
help please
Software error:
"use" not allowed in expression at config.pl line 1, at end of line
syntax error at config.pl line 1, near "to use shift"
"use" not allowed in expression at config.pl line 12, at end of line
BEGIN not safe after errors--compilation aborted at config.pl line 13.
Compilation failed in require at wakaba.pl line 16.
BEGIN failed--compilation aborted at wakaba.pl line 16.
>>750
Вакаба работает с русской кодировкой. Переименуй файл wakaba3.js в wakaba.js.
//Wakaba work with russian charset. Rename wakaba3.js in wakaba.js.
Отписался в платиновом треде
How do I access wakaba.pl via my webbrowser? it only wants to save/open it but I can't really figure out how it should create an .html.
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.
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:
CGI.pm: 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?
Maybe Apache is configured to block large uploads or something?
Can't find anything but that doesn't mean there is. -
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 finish.pl 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!
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.
the admin and pass were defined in config.pl yet i cant install wakaba, any ideas?
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?
Those files are autogenerated, so any changes will always be lost. To make actual changes, edit the templates or include files.
I keep getting this:
Software error:
Can't locate config.pl in @INC (@INC contains: . C:/perl/lib C:/perl/site/lib) at E:\Domains\[url]\wwwroot\wakaba\wakaba.pl line 16.
BEGIN failed--compilation aborted at E:\Domains\[url]\wwwroot\wakaba\wakaba.pl line 16.
I don't understand what's wrong?
>>771
uhm, where's that at? fuck I don't even know if I can edit that on this host.
How can i create new boards and edit main page? I configured config.pl 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...
That's what you get. You do any customizing like that by hand. Install multiple copies, edit templates and includes, and so on.
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?
how about fixing this?
http://wakaba.c3.cx/sup/kareha.pl/1099697376/365,370
Recently there are lots of porn poster bots on my board, running for the site hot.gazo.us 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.
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?
How about removing the CP from guns category?!?!?!
Hi guys! Just wanna ask a noob's question:
What kind of SQL database and in what collation should I make for Wakaba/Kareha?
>>790
I imagine you would have to code that sort of thing yourself.
>>792
You are very lost. http://iiichan.net/dis/error/
>>793
Read config.pl -- 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.
How can I disable auto-linking in Kareha...?
>>795
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.
hey
>>796
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.