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/
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.
>>913
You sure are bad at using capital letters for such an insufferable pedant.
Forgive me if this is a common question, but I've done a cursory search and only seen one pots (which everyone seems to have missed). I want to implement spoiler images on my site (like 4chan has, tick a box and the image thumbnail is replaced) but I wouldn't know how to go about it. Shouldn't be difficult though, should it?
>>916
Well, no, none of these 4chan-ish features are difficult, as the previous couple patches were intended to demonstrate.
Seems to me this would necessarily involve a bit of a hack to get process_file not to generate a thumbnail, I think you'd have to add another variable:
sub process_file($$$$)
{
my ($file,$uploadname,$time,$spoiler)=@_;
Then when it's figuring out whether to make a thumbnail (the if(!$width)
stuff), if $spoiler is set, don't make one. Then add a checkbox to the form (of course), look at the value in post_stuff, etc. etc.
It's a little more complex than some other hacks, but still only a couple lines.
Hey guys, had another question here. I installed wakaba on a subdomain, and now im getting sql connection failure. Do I have to change the host?
>>917
Heh, I think this is way out of my league for now. I'm going to have to do some reading on Perl and give it a go another time. Thanks anyway, hopefully that'll get me started!
I installed wakaba on a nearlyfreespeech server, when all of the permissions are set to 775 i get the "could not write to directory error" and when i set the permissions to 777, it changes the url from ...wakaba.pl to ...wakaba.html and it gives me a "404 not found error" What do?
I also have this problem what I saw posted at least err.
2 times on this thread, and NEITHER had a post answering the trouble.
I am trying to install Kareha (and wakaba once, same problem)
I have two machines, one is a host I have remotely, and one is a basic linux (desktop) with apache installed by me and it works.
When I use on my local machine I can physically touch, to say, and access Kareha.pl on web browser, I see the code, if I try install it on the remote host I have, it gives me a download window to save the Kareha.pl file.
I also added the perl exec CGI thing but from other stuff I dunno.
Could someone answer with the "only show's code and does nothing" when accessing the #.pl in browser?
Thank you.
>Could someone answer with the "only show's code and does nothing" when accessing the #.pl in browser?
Here's your answer: Apache isn't configured properly.
Paste your config file and point out the changes you made, or check out the thousand other posts about this issue.
Hey guys, my board by default is set up at ../chat/ch.htm, and I'm using htaccess to be able to use http://outrank.me/ch or /ch/76 for example, however when submitting posts, replying to threads etc etc etc all the links revert to /chat/ch.htm, /chat/res/76.htm etc...
How can I make it so the board effectively replaces /chat/ch.htm with /ch?
>>925
Use some mod_rewrite trickery to fix that.
And lol, good luck getting users on 15 dead boards.
As a user, when writing a post, how do you change your text color?
The board in question is running futaba but that's likely to have similar syntax, no?
>>927
Futaba has no markup, except for quoting and auto-linking.
Hmm. There are several people on the board who are able to post text in colors of their choosing.
>>929
Admin posting privileges?
Why not just ask the people on the board in question how it's implemented?
I have asked, but they're elitists who refuse to divulge their "secret."
mod_rewrite!
Non of threads is alive so I'm opening new one.
Does anyone figured how to make 'noko'?
I tried with few functions people gave here but always getting error.
>>933
Been answered several times, and it's really, really straightforward.
Okay, this is weird. Somehow or another accessing wakaba.pl on the board I have installed no longer runs the script; the browser tries to download it instead.
I don't remember changing anything since the last time it worked (last night), but I might have done something stupid and forgotten. Does anyone have any clue what might cause this?
You broke something, and only a person who can see what you actually did could tell you what.
Here is exploit for wakaba that brokes HTML formatting: http://rghost.ru/3016309. Change 191704 for actual post number and post it. Any ideas for workout?
>>937
I can't replicate it. Please explain how it works, what happens, etc. (I do not understand Russian.)
Broken part of page's formatting:
onclick="highlight(100002 </blockquote> </td></tr></tbody>
>>942
Okay, I was able to reproduce it now. This warrants for a release of Wakaba 3.0.9, yes?
I put google adsense on kareha.
For index.html it works ok but not individual thread.
Where should I change the config?
use constant KEEP_MAINPAGE_NEWLINES => 1;is set to 1.
It did not work when it was 0.
>>947
Add it in templates.pl
or any file in the include/
folder, and rebuild caches.
>> 948 thanks for the reply.
Well I did all of that but it does not work....
I've been trying to input Adsense to the each thread but still can not find the way to do.
Is that because I am using Japanese template?
test
How to go in wakaba.pl on wakaba I don't see it anywhere :(
>>952
You evidently deleted some important files. Reinstall.
>>953 OK thx. But When i try to visit wakaba.pl it just tries to download it what to do now ?
Hello
I try to setup a kareha textboard, on a webserver hosted with a cgi-bin folder and perl ready. But When i'm going to the mainpage, style can't load and links don't works. I think than can be a javascript issue.
What do you think ?
>>955 How to execute Perl files on 000webhost or something ?
Thank you for your help :)
>>959
You can't. They don't offer it for non-paying users.
>>956
How? I keep trying but it just won't work!
Also, when I try running kareha from the terminal I get the error "Bareword "SECRET" not allowed while "strict subs" in use at /home/myusername/server/kareha.pl line 368."
a little help please, it's the first time i use apache/perl.
What is the issue...
CHMOD755, Perl ready on my webserver.
http://bit.ly/btcffP
>>960 Is there some other way to do this maybe some other web host ? I'm also using xampp
>>963
Xampp is garbage. Never use it. Never touch it. Don't even breathe around it.
Get a real host, the sort that you pay for that has actual web servers with real Perl and real Apache installed, and not some flaky Windows ME-based "My First Website" setup.
>>964 I have 2 real web host
1. 000webhost
And 2. unlimited tree
But For unlimited tree I don't know how to use it to execute Perl files :/ You know how to use it ?
I also have a look at perlmonks.org so i can do it my self but have not help -.-
I spend 2 weeks on kusaba x Trying to fix out the error on line 55. So I move to Wakaba >:)
Plz just tell me what to do to go in Wakaba.pl Do i make it in to an HTML or something.
>>966
Offhand, both of those even sound like garbage hosts that are highly unlikely to provide decent services. Unlimited Tree has its entire site running on a forum, what the hell is up with that?
Generally speaking:
Maybe try out NearlyFreeSpeech. While I have never dealt with them, I have heard good things about them, and at a glance, their website seems to show that they're competent. Actual, detailed version numbers of everything installed is reassuring. The "WE HAS MSYQL OK?!?!!" type stuff that some hosts (e.g. your Unlimited Tree) write in place of actual information is not a good sign, and is basically telling you that they know nothing whatsoever about what's installed on their servers.
Also, you might want to spend a few minutes getting to know how CGI scripts really work. That will help tremendously if something goes wrong.
If you're going to be running a webserver, you really should know that.
>>969
This was powering by a webhoster, can't acces to subdirectories and Apache logs. All kahera files are 0755. What do ?
always that same issue,
>>962
moved my css directory but nothing happen.