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/
>>498
No, the page didn't reopen. Not even when I refreshed it.
Hey I've got a bit of a problem. I've got Kareha pretty much set up but I'd like my .htacess to default to a different page.
Googling gets me the syntax for that (DirectoryIndex etc.) but I don't understand the included example.htaccess file and the directions to change the RewriteRule stuff. Maybe this is more of a general IT question but what am i missing?
http://httpd.apache.org/docs/2.2/mod/mod_dir.html
> A file written by the user, typically calledindex.html
. TheDirectoryIndex
directive sets the name of this file. This is controlled bymod_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.)
Don't touch config_defaults.pl, ever. That's just where the error was triggered. Your problem is still in config.pl, and you've either removed, commented, or renamed ADMIN_PASS or NUKE_PASS.
Not sure about your verification code error, but to change the title (or anything else), just edit config.pl and let wakaba.pl regenerate your html.
And, yes, wakaba.pl has a purpose; it's what your site runs on...
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?
Another question:
When you run wakaba.pl, 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.
>>513
Doesn't work, I changed that and it had no affect. Edited the field in config.pl, deleted wakaba.html and re-ran wakaba.pl but it still creates wakaba.html.
is there any way i can disable the ability to post images?
>>516
Yes, it's very plainly in the configuration. Look for the word "image".
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
is there any way to have multiple boards?
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
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?
>>523
Multiple kareha installations.
This really isn't that hard.
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?
Did you rebuild caches?
>>527
Ah, forgot to do that. Thanks for your help!
http://rokuchan.org/wakaba/wakaba.pl does any one know what the problem is and how to fix it
Software error:
Bad name after comments' at config_defaults.pl line 15.
Compilation failed in require at /home98c/sub009/sc61836-VWOA/rokuchan.org/wakaba/wakaba.pl line 17.
BEGIN failed--compilation aborted at /home98c/sub009/sc61836-VWOA/rokuchan.org/wakaba/wakaba.pl line 17.
We aren't psychic, we can't tell what you put in that file that broke it.
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 http://wakaba.c3.cx/sup/kareha.pl/1168935423/7 but I still can not fix it for replies.
is there some who can help me please I'm using Futallaby right now and I hate it
I'm >529
>>531
well here is the file I put * over the some stuff like the pw user name and other stuff
here is the txt file
http://rapidshare.com/files/209442147/wkbrokuchan.txt.html
>>534
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.
there
>>537-538
I daresay you're editing the wrong file. Start over, and pay closer attention, you should not be touching config_defaults.pl at all.
Whew. This thread is quite the read.
I'm having an issue where I delete wakaba.html and run (access via browser) wakaba.pl. I am then redirected to wakaba.html, which does not exist. It is not built/rebuild when I access wakaba.pl. Clearing cache results in the same 404. Suggestions?
What if you go to admin.pl?task=admin
and rebuild it?
>>541 admin.pl isn't in the zip file I downloaded. I can still rebuild from wakaba.pl using wakaba.pl?task=admin (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.
>>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.
I'm wondering why Wakaba doesn't automatically truncate threads beyond a certain point, if it does,, there do I find this option
thanks
I have a quick question, does posting (running kareha.pl) cause that script to rebuild all the pages?
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 notes.pl script, thanks!
oops, I found the notes.pl script :)
I thought it was just in indefinite testing, sorry
thanks
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?
> 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.
>>550
Hm... helpful advice. I would have just recommended getting off of the internet altogether.
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 ?
>>552
Ops i forgot the beginning:
Apache wont execute wakaba.pl
>>553
does this perl test script work?
http://wakaba.c3.cx/sup/kareha.pl/1109033191/4
Read through config.pl 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.
>>554
It works with mod-perl activated, but with that i get this error with wakaba.pl:
[Wed Mar 25 14:06:30 2009] [error] Can't locate config.pl 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/wakaba.pl line 16.\nBEGIN failed--compilation aborted at C:/xampp/htdocs/wakaba/wakaba.pl line 16.\n
Internal Server error 500
>>555
I did it using this guide:
http://www.thesitewizard.com/archive/addcgitoapache.shtml
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.
Configure Apache to send no-cache headers for all files in tmp/
.
>>560
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
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
</Files>
</IfModule>
Still don't work.
>>563
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.
Well, all of a sudden my wakaba install is giving me this error:
Software error:
Malformed UTF-8 character (fatal) at wakautils.pl 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 wakautils.pl.
Probably some kind of malformed UTF-8 in a filename or something similar.
You are sending those headers only for html files. Note the <Files *.html>
.
Is there any option that allows Kareha threads to be numbered like that of Wakaba?
No.
Hi. when i'm trying to run wakaba.pl i get a 403 error.
permissions are set to 775.
I'd like to put google analytics in BBS system
Where should I put the code?
Sorry the bbs is Kareha
Sorry for sounding like a n00b, but how do I change the time zone settings? Currently it's five hours past my time zone.
>>574DATE_STYLE
in config.pl
.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
.
> 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.
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.
>>577
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.
I am attempting to run Kareha on free hosting server and so far i copied files and style to main directory and edited config.pl
When i try to run kareha.pl it shows me this:
Can't locate config.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.8.4
halp.
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
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
538 USERNAME 18 0 70824 54m 1828 H 15 13.0 0:14.51 kareha.pl
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 kareha.pl
6192 USERNAME 15 0 24784 9544 1744 S 0 2.2 0:00.10 kareha.pl
13649 USERNAME 18 0 24916 9604 1752 S 0 2.2 0:00.10 kareha.pl
16515 USERNAME 16 0 24788 9540 1744 S 0 2.2 0:00.10 kareha.pl
17883 USERNAME 16 0 24916 9604 1752 S 0 2.2 0:00.11 kareha.pl
18518 USERNAME 18 0 24792 9476 1744 S 0 2.2 0:00.10 kareha.pl
19332 USERNAME 15 0 24784 9536 1744 S 0 2.2 0:00.10 kareha.pl
20228 USERNAME 16 0 24784 9544 1744 S 0 2.2 0:00.11 kareha.pl
22054 USERNAME 16 0 24920 9616 1752 S 0 2.2 0:00.10 kareha.pl
22678 USERNAME 18 0 24784 9536 1744 S 0 2.2 0:00.10 kareha.pl
23959 USERNAME 15 0 24920 9608 1752 S 0 2.2 0:00.13 kareha.pl
25918 USERNAME 18 0 24788 9476 1744 S 0 2.2 0:00.10 kareha.pl
25949 USERNAME 18 0 24788 9476 1744 S 0 2.2 0:00.10 kareha.pl
28000 USERNAME 16 0 24920 9612 1752 S 0 2.2 0:00.11 kareha.pl
28666 USERNAME 15 0 24788 9536 1744 S 0 2.2 0:00.10 kareha.pl
29829 USERNAME 16 0 24784 9532 1744 S 0 2.2 0:00.10 kareha.pl
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
Dreamhost?
>>581
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.
I`m getting a
Software error:
CGI open of tmpfile: Permission denied
How do I change me temp dir to /wakaba/src/ or something?
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.
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?
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:
$foo="bar";
$$foo=12;
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.
>>591
They're not that difficult, just think of them as sort of like pointers.
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? :<
>>587
is it possible to disable the logging altogether?
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.
>>595
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.
>>596
or you could find a host that doesn't break flock() like that or tell them to fix their broken shit.
>>597
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.