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/
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.
Hi,
How do i moderate/manage bans? I'm using Kareha, image mode. I can see the 'ban ip' link next to posts in the admin screen, but how do i keep track of bans, lift them, etc.?
>>875
Ideally you're banning people you don't want around, so lifting bans should be a rare event. Kareha handles bans by writing to .htaccess and letting the server handle it. (which also means it's not useful out of the box unless you're running Apache, incidentally) So, edit that file on the server, find the "Deny from" for the IP, and delete that line.
thx... new prob, I can't find htaccess, not at root, not in the folder i have my kareha folder. It's not there. I have an old one in another subfolder (which is doing a 301 for a domain I don't use anymore). hidden files are set to visible...
maybe it creates .htaccess when i do my first ban?
and i don't want to ask a lot of dumb questions I can answer just by trial and error... but last thing, how do I add text/images/banners above or below the input fields? I've edited the 'rules' file a little (basically i want to tell readers what's up, not to post snuff, in the long run maybe add a ad banner) but editing that file is inelegant. is there a better way?
>>880
How is that inelegant? That's what the file is for.
Kareha has an option which allows editing files from the admin interface (hint: ADMIN_EDITABLE_FILES
.) You can use that if you're too lazy to edit rules.html/.htaccess/whatever from FTP, but read the safety warnings first.
well i'll get it going either way, thx for your help. board works great.
btw here is my implementation so far: http://sidemission.com/theboard/index.html
as far as IDs are concerned do you have a suggested way of telling my readers to ID themselves as the 'real' one?
Telling the users to use tripcodes is enough, isn't it? You could also activate forced IDs which should be able to prevent impersonation as long as the poster retains the same IP.
How do i pass variables to the template file? I've managed to pass them to POST_PANEL_TEMPLATE from wakaba.pl, but I also need to pass the same variable to MANAGER_HEAD_INCLUDE, to use it with <var $foo>, and I can't seem to find out how.
>>886
Oh, and I forgot to say that this is Wakaba I'm talking about.
I have a couple questions.
How do I activate an email form with noko.
And, there is a problem where all teh thumbnails are working, it just shows "No Thumbnail" with a link to the image. Can anyone help me?
is there a way for users to add links to images and embed youtube?
Thanks but if you could be just a bit clearer on where I should put noko?
Oh and also, I don't have access to the host, so I can't install imagemagick. Unfortunately. (It does have to be installed on the server right? Not just the ftp I have?)
>>892
You don't understand servers, and should probably stay away from anything resembling installing software.
As for noko, there's no "right" answer as long as it works. I'd probably stuff it before the forced_anon check, because anything below that won't guarantee the existence of $email. (although I really wonder why that's checked before running clean_string / decode_string)
something like:
if ($email=~/noko/i) { $email=''; $noko=1; }
then at the bottom of that function,
if ($noko) { $where=(the url to that thread); } else { $where=HTML_SELF; }
make_http_forward($where,ALTERNATE_REDIRECT);
You could do it 1000 other ways too, but that's probably the least intrusive.
>>893
That's kind've why I I started trying to do this. To learn. So if you could just let me know if it's possible for me to fix the problem of no thumbnail.
If you have any questions first just let me know, really appreciate the help thus far, thanks.
>>894
Well, to start: there's nothing special about a system-wide installation of something. If you can get Wakaba to work, you can (typically) get anything to run. You need to (a) identify what platform you're running on (Linux, FreeBSD, Winshit, etc. which libc version is installed; is it x86, amd64, or something weird; etc.), and (b) compile a version of ImageMagick -- specifically the convert
program -- that'll run on that system. Once you accomplish that, you can put it wherever you want. Then fix the config.pl to point to where you've uploaded it and it "should" work.
This sort of thing is way easier if you have a shell login, particularly if you're running on a server that has a C compiler installed. (Of course, pretty much anything is easier with a login than screwing around with ftp.)
How do I use the ALTERNATE_REDIRECT option in the config? Do I change the '0' to 'javascript' or what? Sorry if this has been asked before/I'm extremely naive but I've googled and don't know how to do it
>>896
You can set it to 1, or "javascript", or "magical purple hyenas" for that matter.
But if your board is working, don't touch it.
fwiw: I posted a proper patch implementing >>893 in the patch thread (http://wakaba.c3.cx/sup/kareha.pl/1256252904/10)
Okay, sorry, but how do I go about identifying that?
>>901
You should be able to find that out from your host.
Or, since you've already gotten perl running, stick die `uname -a`;
right under the use strict;
in wakaba.pl and hit it from a browser. If you're not on Windows that should give you a lot of useful information.
Thanks, this is what it gave me:
Linux hosting1-de.santrex.net 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux
So does that tell me i'm runnins on linux?
Hello everyone. I'm curious about archiving in this script. I have a private imageboard that gets used regularly, and I'd like to find a better way to archive posts. What I currently do is go into the manager, select post by post what ones I want to archive and then hit archive. The logical thing to do after looking in the manager. This, however, can be a bit tedious when I have a large amount of posts to archive.
What I want to know is if there is a way to perhaps select all of the posts at once, or if there is a way to have it auto archive (either every time there is a post, or maybe based on when it gets to a certain number of pages.)
Any ideas, or am I stuck doing it post buy post?
Thanks!
>>903
Yes. Get hold of a 32-bit Linux build of the convert
binary, upload it to your FTP account, make sure it's executable, and set the correct path to it in Wakaba. It should work.
>>905
Well, the trick is, most binary versions are linked against X11, which is unlikely to exist on the server.
(You might still have to build it yourself.)
>>906
that wouldn't be a problem with a statically linked binary, which is really the way to go for something like this. it eliminates the need to find out what versions of various libraries are installed on the server, and it won't break if the hosting company updates or removes those libraries.
>>907
So you suggest statically linking all of X11? That's patently foolish.
>>905
>>906
>>907
>>908
Uh, sorry but you guys are really confusing me, I'm going to search for a 32-bit linux build of the convert thing, but what do I do once I find it?
Also I tried installing this on a different board, and it gave me this error code, I don't know what it's talking about since in the same folder is the config.pl file:
Can't locate config.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at /home/www/boards.fuckingmagnets.org/b/wakaba.pl line 16.
>>909
You put it onto the server, of course. Then change CONVERT_COMMAND in the config to point at the file you uploaded.
Make sure to set it executable (chmod 755)
>>908
no program links against all of X11, statically or dynamically.
it's only xlib that things link against, and there's no reason at all for convert
to be linked against that.
$ ldd /usr/bin/convert
linux-gate.so.1 => (0xb78d6000)
libMagickCore.so.4 => /usr/lib/libMagickCore.so.4 (0xb7662000)
libMagickWand.so.4 => /usr/lib/libMagickWand.so.4 (0xb754f000)
libpthread.so.0 => /lib/libpthread.so.0 (0xb7535000)
libc.so.6 => /lib/libc.so.6 (0xb73ea000)
liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb73b7000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb735d000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb72d8000)
libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0xb72a3000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb7275000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7266000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb725e000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7247000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb712d000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb70dc000)
libbz2.so.1.0 => /lib/libbz2.so.1.0 (0xb70cb000)
libz.so.1 => /usr/lib/libz.so.1 (0xb70b5000)
libm.so.6 => /lib/libm.so.6 (0xb7090000)
libgomp.so.1 => /usr/lib/libgomp.so.1 (0xb7083000)
libltdl.so.7 => /usr/lib/libltdl.so.7 (0xb707b000)
/lib/ld-linux.so.2 (0xb78d7000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb7055000)
libuuid.so.1 => /lib/libuuid.so.1 (0xb7051000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb7038000)
libdl.so.2 => /lib/libdl.so.2 (0xb7034000)
librt.so.1 => /lib/librt.so.1 (0xb702b000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb7028000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7023000)
Ergo you're an idiot.