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/
>>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.
>>798
That's true, and I do that too. But the layout of my site puts the textboard inside of a frame, so... :T
>>800
Thank you. Is there a way to apply this to all external links automatically, though? Other than asking everybody to do that when they post.
Sorry, I'm not very clear x__x;
>>801
Yes, edit the source. Should be obvious enough, find where it writes links and change it.
hey im creating a imageboard so far ive done the front page but i installed wakaba properly and i cant figure out how do iadd seperate pages for each board its so confusing and i wanna add a recent images /posts thing like on 4chan
thx
>>803
Can't you idiots come up with something new and interesting instead of blatantly copying 4chan and its frontpage all the damn time?
Here is my collection of errors which seem to appear randomly:
-I get a blank page and nothing happens
-I get the "BAREWORD ... not allowed while "strict subs" in use"-Error.
-"Attempt to reload config.pl aborted. Compilation failed in require at /opt/lampp/htdocs/altercon.net/cgi-bin/wakaba/wakaba.pl line 16. BEGIN failed--compilation aborted at /opt/lampp/htdocs/altercon.net/cgi-bin/wakaba/wakaba.pl line 16. "
-The "Global symbol "$parent_res" requires explicit package name"-Error
I run the script in my cgi-bin.
the mentioned perl test works.
What i tried:
First, i got these errors from a fresh install.
Used wget to obtain the zip
used unzip to unzip it
used emacs to edit the config.pl
used chmod 755 wakaba.pl captcha.pl
I also tried setting the wakaba directory to 755 and 777
Horrible
That sounds mostly like some kind of horribly broken server.
I'm getting this error:
[Fri Apr 16 20:38:32 2010] [error] [client MY IP] script '/var/www/vhosts/mysite.com/subdomains/mysite/httpdocs/url_handler.php' not found or unable to stat
>>809
That has nothing to do with wakaba or kareha. Figure out what piece of software uses url_handler.php, if any. Hell, that might just be some idiot who's trying to hit a file that doesn't exist.
Well, when I try and visit my site with wakaba I get a internal server error, etc... and I get this in access logs:
[Sat Apr 17 13:13:20 2010] [error] Can't locate config.pl in @INC (@INC contains: . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 /etc/httpd) at /var/www/vhosts/mysite.com/httpdocs/wakaba.pl line 16.\nBEGIN failed--compilation aorted
There a way to post as an admin?
It's a nub question, but if there's a way, I'd like to know.
>>814
Kareha supports capcodes out-of-the-box.
In Wakaba you have the opportunity to post with HTML. If you want capcodes, you'll have to create them yourself. It's not really that hard, even I managed it and I suck at programming.
i dont have any thumbnails, why is that?
how do i delete [burichan] [futaba] etc in admin bar? when i remove it from my index.html it's ok for a while and then, after f5ing board, it comes back. whats going on?
>>817
Edit your templates.pl. The html files are of course generated by wakaba.
An odd question on Wakaba, but i really need to know:
How to configure a board this way: replying to any thread will never make it go up, no matter it's position or how old or new it is?
Thanks a lot.
>>819
I mean, the threads must always remain in order of they're creation.
>>819-820
just comment out (or remove) this section:
if($parent) # bumping
{
# check for sage, or too many replies
unless($email=~/sage/i or sage_count($parent_res)>MAX_RES)
{
$sth=$dbh->prepare("UPDATE ".SQL_TABLE." SET lasthit=$time WHERE num=? OR parent=?;") or make_error(S_SQLFAIL);
$sth->execute($parent,$parent) or make_error(S_SQLFAIL);
}
}
or change the first line there to if(!NEVER_BUMP && $parent) # bumping
and put eval "use constant NEVER_BUMP => 0" unless (defined &NEVER_BUMP);
in config_defaults.pl and use constant NEVER_BUMP => 1;
in config.pl.
Why not just read the config and/or the code you commented out, and set MAX_RES to 0?
>>823
why bother checking $parent
and $email=~/sage/i
if you're not going to bump the thread anyway?
How to disable Email field?
>>826
This also removes the Name field.
I only want to remove Email.
Ok, i searched these two threads, but could not find what's the problem.
I made my own server (ubuntu is the OS), on which i set up apache2, mySql, phpmyadmin.
In phpmyadmin, i made a database testChan, for which i didn't specify any tables (when tried to manually create tables, i got myself a list of options for the table, and i didn't know what to set).
I edited config.pl to set passwords, salt, and SQL options ->
i set SQL options as default, set passwords and users, and set SQL_DBI_SOURCE as DBI:mysql:database=testChan;host=localhost
Ran perl wakaba.pl in commandline (got some problems in firefox perl.
Got the same errors as post no. 113 in the first support thread, but wakaba.html got created.
http://localhost/wakaba.html, and i see a page! But, uploading anything == nothing is done. It doesn't work.
Rerun perl wakaba.pl, got only 303 go west, and the page stays the same.
I'm pretty much beginner to the whole SQL thingy, so please, bear with me, and tell me what shall i troubleshoot first, as my knowledge is poor enough to make me not know where the problem lies.
> Ran perl wakaba.pl in commandline
Don't do that. It breaks things.
>>830
Temporarily I don't have internet connection on my server to redownload perl to make it run under firefox (and, even if, how do I do that under Ubuntu?), but I will try it.
In the meantime, two questions. First has been asked already in my response. Second is, what's the difference between commandline and firefox in terms of perl script? Why does 'commandline' perl break things? Shouldn't it be the same thing?
>>831
On the command line, none of the CGI environment is defined, and the file permissions for any of the cached HTML files will be incorrect.
Regarding Firefox and Ubuntu: that completely doesn't matter. Just access http://www.whatevercrapchan.com/yourboard/wakaba.pl with any web browser on any operating system, and if it doesn't build the files and send you to the index, you screwed something up (or you have a terrible web host).
>>831
perl runs on the server. it doesn't run in firefox. running it from the command line doesn't set all the environment variables to tell it things like where the script is.
>>832
I am my own webhost, and that means that I screwed up.
So, currently, i made sude libapache2-mod-perl2 is installed, and I ran http://localhost/testchan/wakaba.pl
All it did was a prompt to download wakaba.pl!
So, here's the problem. Googling tells me nothing, nothing at all.
Any help, please?
Ok, found it. ALMOST, that is
Added CGI to apache2.conf
But then...
403 forbidden error. 777 or 755 to the whole of wakaba folder with -R. There are some questions about that in that thread, however, none of them are anwsered. Merely ignored.
One more time: Do not use mod_perl.
>>836
What should I use, then? All tutorials that I've found on google about apache & perl relied on mod_perl to execute these scripts.
Without that and CGI added in apache2.conf all that happened when running via Firefox was a file download prompt.
Your wiki & install documentation is somewhat poor on that matter, unless I'm blind || don't know where to look for :(
hi all
I'm totally noob and just installed Wakaba on my host. How can I make many boards on it, instead of a single one?
And is there a way I can add an age-rating for images? (I've seen this on few imageboards, it's like 15+, 18+ marks when uploading images)
How to make user remain in thread after replying, not redirected to the main page?
>>841
By adding the feature yourself.
Look for where it sends a redirect (search for 303), and change that line.
>test
>>841
There are several patches for it posted on this board.
>>845
There's one in the "Wakaba/Kareha Patches" thread. Click All Threads at the top of this page.
That should get you started. Browse around.
My host is really stupid and does not allow profanity. How would I go about installing a wordfilter? Thanks :3
>>847
make a list of everything that is profanity (without including anything that isn't profanity).
once you've completed that impossible task, turning it into a regex and adding a die 'no profanity, please.' if $comment =~ /
.../;
line is trivial.
I finally got everything to work, but the only way it will work without giving me permission errors is if i set the folder's user to apache's username/group (apache:apache).
I have a feeling this is quite insecure. I have gone through all the threads here as well as multiple other ones throughout the internet.
I also noticed that the only way the test.pl file will work is if i append -w to the #!usr/bin/perl.
For more security, you should set up Apache to switch to another user account before running scripts, using something like suexec. I'm no Apache expert, so don't ask me for particulars on that, though.
I ended up switching the apache user/group in httpd.conf to user/group "nobody".
This has solved my problems. Thanks for the suexec tip, it's what led me to this solution
Okay, I have a single question. I see to have multiple boards you must install wakaba more than once, but how do you create links to all the boards at the top or on the side like a normal chan website?
If this involves very difficult coding, then I am looking for someone to help me out in their spare time.
Yep, cause if I knew how to do that, I would've done it without asking, now wouldn't I. I don't know how to do that! Besides I've got kusaba now, so If you guys still want to help me, Id be willing to go back over to wakaba, but I just need some help.
>>856
if you don't know how to do that, you shouldn't be running a web site. if you knew anything at all, you wouldn't touch kusaba with a 10-lightyear pole.
how to delete the 1st thread by the user who created this thread himself ,and not effect the following reply ?
In my board, if the user delete the first thread which he've created, all the replies in this thread would also be deleted.this make all discussion disappear.I think this is not a good method.
so,how to setup kareha ?
Thanks all !
thank you very much for answer the question !
Will wakaba and kareha update future ?
Just wondering, can this software be uploaded to any free host such as Webs?
>>862
No. The host must have proper support for Perl scripts with MySQL/SQLite bindings. There are (probably) free hosts out there which support these things, but you're better off using payed shared hosting with Perl support. NearlyFreeSpeech supports Wakaba/Kareha just fine and their prices are fairly cheap.
Hi, I'm not a coder or anything, I suggested the idea of a word filter for a joke to an admin of an image board running wakaba, and he said it's not possible.
I've checked around and couldn't find any information besides perl scripting, which I'm not sure if that's what I'm looking for.
To be short, is it possible to word filter on wakaba? And if it is, could anyone tell me?
>>864
It's tremendously stupid, and you ought to be well aware of the myriad reasons for that, but of course it's possible. Since Wakaba doesn't supply a pre-packed filter (and for very good reason) you'll have to do it by hand, but it's seriously not hard. Just put some s/from/to/;
before the >>1
substitute in sub format_comment
. But word filters are really really dumb, and you should consider otherwise.
(If you have trouble understanding that, you shouldn't be messing with the code.)
Everytime I trying to run the .pl script it just takes me to a page with all of the code in text format. Oh and the server supports pearl and CGI. Do the files have to go into the cgi bin because I put them in the pulbic_html folder.
>>866
No, you should definitely not put them in cgi-bin.
What you do need to do is figure out how to get your server to execute Perl.
>>866
Get a proper host. If it's your server, configure it properly.
Oh I know I shouldn't be messing with code, I'm just a secretary or sorts since admin is busy. I appreciate your help, even though you think it's silly. I honestly think filters are silly too, I just want to joke around for a day.
I hope he can understand that though, blargh.
Thanks!
Is it actually possible to parse the code in network includes? I am using <const get_http("http://www.example.com/include/header.html")>
in Kareha's header.html
(which is on another server, hence the reason I need this the first place), but the template code doesn't get processed.
I suppose I could always use crontab to fetch the file automatically or put the template code in templates.pl
, but I'd like to try getting the above-mentioned working first. Any ideas?
Okay, this might be a bit complicated, I would just like a basic idea of how to do it, but how would I go about setting up an email field, fully functional, and be able to add noko, for thread replies, like on popular chans.
Sorry if this is a dumb question, but I didn't see it after I set wakaba up.