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/
Indeed they are. And the HTML files from res/ as well.
>>39 uh, you didn't read what I said. I want to SEE the actual changes that the values I edit make, the COSMETIC changes to the site. I can see the actual code fine, I just want to see it change in realtime instead of having to upload it to the server everytime.
Install a local copy and run it. That's the only way.
How would I go about doing this? Do I have to install apache server and Imagemagic software on my PC?
I don't know how to setup a local host.
Yes, pretty much.
>>43 google "wamp" for the basic package, then install perl as well.
Ok, installed them both, but I don't know what to do next. Is there a new-user friendly tutorial on this or would you folks just have to end up walking me through this?
Thanks for the software though.
Is there ## Admin and ## Mod functionality in base Wakaba?
And you should really consider not doing it.
So no ideas as to what's causing it? It's really getting annoying.
None. It's the first I've ever heard of a problem like that. Can you post your entire config.pl?
okay, my config.pl, save the crypto secret and the admin pass, and a huge block of stuff I didn't touch (everything after SPAM_TRAP is still commented out and at its default), is at http://hofochan.tejat.net/configbugged.txt
I've made a few changes since I posted those lines back in >>31 but the problem hasn't stopped.
You've got MAX_MEGABYTES set to 1. That's how many megabytes the entire board is allowed to take up before threads start getting deleted.
oh wow, really? I totally misinterpreted that - I thought it was the max size for each image. Wow. Go me.
Thanks for helping!
how the poop do i change the color of the captchas? currently it is #800000 (128,0,0) but when i edit the (128,0,0) places in captcha.pl it stops showing captcha images altogether.
what the butt am i doing wrong? D:
There is a hack in there that reads the colour from the CSS files, so change it in there.
>>57
yeah i saw that.. i just have no idea what css to put in the file.. ie what label to use.
Ok so i got mysql, apache configrued to run cgi, heidisql, and wakaba. I know i have to create a database so I did but I don't know what tables to add. And im not real sure where to put wakaba in apache folder. does it go in htdocs? Well i put it in there and told apache to use wakaba.pl as a default page so heres what i get. Go to http://75.4.51.1
Ok then so im gonna put these in steps in order from what i know.
1.gain apache, mysql, perl
2.allow apache to use cgi
3.create a database for wakaba
4.download wakaba files and unzip them
5.edit config files config.pl,wakaba.pl,maybe another one
6.At this step im confused, where do i put my files to make them work? I think i have to put them in apache but i don't know if i should put them in the root directory or the cgi folder. After i do this i should be able to access the site.
Another thing is you said not to make wakaba my defualt page so what should i tell apache and if i need to be able to make wakaba.pl an html file how do i do that? As you can see i have the basic idea on how to get started but the problem is tweaking config files and placing my files in a place readable by perl and apache. All thanks to who gets my stuff to work
So, anyone else gotten RSS working with kareha image mode?
>>61 Whatever directory you set up as the "root" directory in apache. Go look at the apache documentation, it's not our job to help you out with that.
I have a problem. When trying to make a manager post without file i get "no comment entered" error. When i make a post with an image everything works fine except for that the comment i entered is not displayed along with Name and Subject. What can be the cause and how can i fix it?
Thank you.
>>65
I'm pretty sure the manager post form is broke as hell.
Check the old support thread for a post on how to fix it.
>>65
make sure the id for the different fields in the management panel are the same as the ones in the normal post form. somewhere along the lines some things got changed and waha didn't apply the changes on the management panel.
I'm trying to get Kareha to work with IIS. So far, it largely works fine... the script runs, it's possible to post/reply, thumbnail converter works, etc. However, if I try to access the page for a specific thread (ie ./kareha.pl/1192108766/l50) it gives me a 404 error. However, it is creating the thread files in the ./res/, and the front page is able to load that data...
Any ideas?
it's likely trying to open a folder named /1192108766/, which obviously doesn't exist. There must be a way to re-write that url so that it sends the request to kareha.pl instead. I know you could do it using mod_rewrite in apache, but ISS is another matter entirely.
Sounds like CGI is broken in IIS, and it doesn't support PATH_INFO properly.
The only solution I can think of other than somehow making IIS not be broken is to hack Kareha to not use PATH_INFO but some kind of normal CGI parameter instead. Not recommended unless you know your way around Perl.
Is there a possibility of a MySQL powered Kareha (2ch-mode)?
No, not really.
Hi, I was wondering if there is anyway to use Wakaba without using SQLite, I haven't played with just commenting it yet but thats something I will do when I have a chance. Thanks.
(Just for the curious ones)
Im getting this message while running Wakaba.pl
Software error:
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: . /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at (eval 321) line 3, <FILE> line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at wakaba.pl line 45
Clearly showing that I don't have SQLite installed.
Again, is there anyway around using SQLite? Thanks, Wakaba is great.
Hi, I was wondering if there is anyway to use Wakaba without using SQLite, I haven't played with just commenting it yet but thats something I will do when I have a chance. Thanks.
(Just for the curious ones)
Im getting this message while running Wakaba.pl
Software error:
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: . /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at (eval 321) line 3, <FILE> line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at wakaba.pl line 45
Clearly showing that I don't have SQLite installed.
Again, is there anyway around using SQLite? Thanks, Wakaba is great.
> Hi, I was wondering if there is anyway to use Wakaba without using SQLite,
yes, you can use mysql instead.
Uhh, how? I set up the database and everything...
Its still given me that error.
NVM, I seem to have gotten it, just uncommented the 2nd use constant SQL_DBI_SOURCE
How do I make new directories?
I copied the wakaba.html file over into the new directory but it shows the same thing that the wakaba.html does. also, what about the reply pages and what not? How should everything be placed and routed?
>>79
You need to copy everything to the new directory.
everything like what?
The res folder? the .pl's? im pretty sure I wouldn't have to copy EVERYTHING over cause most pages have links and what not made so it will go back to itself like "/chan/whatever/"
>>79 are you trying to set up two boards, like say /anime/ and /non-anime/? then you need to set everything up twice. the boards don't talk to each other.
>>81
Ugh, okay, let's start from the beginning.
You download wakaba, so you now have a wakaba folder. Goto config.pl, edit the data you want to edit and save it. Upload load it to your site, and change the directory name (site.com/anime/). Change the config (from your computer) again to what you want the new board to be. And upload it to your site as a differenct directory (site.com/non-anime).
How to use utf-8:
The top of your config file should look like this:
use constant ADMIN_PASS => 'change this';
use constant NUKE_PASS => 'change this';
use encoding 'utf-8';
Note that use encoding is applied AFTER the admin passwords.
Also, NUKE is an offensive term for a country that was bombed by nuclear weapons, and why do you insist on swearing in comments to the source code?
>>84
I've never seen anyone consider nuke an offensive term, besides nuke is a very fitting term for what the feature does.
Waha probably uses swearing to emphasize how important it is to change the password.
And lastly in my experience, most non-native english speakers don't consider english swearing to be as offensive as a native english speaker would.
How would you go about setting the password for mods? I've tried making an admin password and giving it to the mods but that doesn't work.
>>88
Nope, and after they try to use it it won't let me log in and I have to reset it.
Can't find anything on this, so I'll post it hoping there is a quick solution.
I installed a fresh copy of wakaba with oekaki integration and attempt to upload a file and get this error:
CGI open of tmpfile: Permission denied
Now, I googled this and it turns out that it might have something to do with the world writeable temp directory that is supposed to be there on the host, but probably is not now because my host (ipower) has been getting worse and worse lately.
So, is there a way to make all the wakaba scripts use the tmp directory from the oekaki?
Is there a way to make an image appear below the "Flood detected" screen?
>>91 check out the strings files, or perhaps the template one, depending on whether you're talking about kareha or wakaba
lol sorry for all these posts, I'm a little new to this. I'm having a problem with the little icons that should appear next to the board title on the tab for each board. Instead I'm getting the default page icon on Firefox. Now, it'll work if I go directly to the board, but if I click on the board from the site it won't work.
That is not handled by Wakaba, but by CGI.pm. You'd have to hack or replace that somehow, but if you can't even get a temp directory working right on that server, chances are you're not going to have much luck with that either.
$ perldoc CGI | tail -n +767 | head -n 13
The temporary directory is selected using the following algorithm:
1. if the current user (e.g. "nobody") has a directory named
"tmp" in its home directory, use that (Unix systems only).
2. if the environment variable TMPDIR exists, use the location
indicated.
3. Otherwise try the locations /usr/tmp, /var/tmp, C:\temp,
/tmp, /temp, ::Temporary Items, and \WWW_ROOT.
Each of these locations is checked that it is a directory and is
writable. If not, the algorithm tries the next choice.
$
so it should be as easy as making a directory that's writable by the script and then setting the TMPDIR environment variable.
>>98 Where would I go about setting such a variable? In the wakaba script hopefully, because I do not have access to server settings as it is share hosting.
>>97 sorry, forgot to say, the tmp directory that I set up for the oekaki works fine, which means the oekaki part of the wakaba script and the board itself function perfectly, the only thing that happens is that I can't post images directly. So to return to >>98 where would I go to set such a variable, sorry I am unfamiliar with perl to that extent.
>>99-100
http://www.devdaily.com/perl/edu/qanda/plqa00014/
second result on google for perl environment variables.
>>101 thanks, !waha where would be a good place to drop this statement in your code?
I am very interested in programming, specifically for mac. What app would someone use to program without using java or applescript? How would you compile the source for Dag Ågren's source codes?
You probably want it right at the top, perhaps even in a BEGIN {} statement. At least, it should be before the "new CGI" line. I'm not sure when CGI.pm reads those variables...
What would cause tripcodes to be shat out differently every time?
The Wakaba install was working perfectly before it was moved to a new system (that was set up almost exactly the same), and now using tripcodes results in a random output. They're completely broken.
We're one of the "large" chans, probably the only one of large size still using Wakaba as Kusaba is a hunk of shit, so this is a bit of a critical problem.
>>105
maybe your server's crypt() isn't the usual des-based one?
on bsd systems you can check to see if crypt_default is set in /etc/auth.conf, if it's set to something other than des you'll probably have to change it.
What >>106 said.
What >>107 said.
But seriously, many fairly well known western imageboards, which have been around for quite a while, use wakaba:
There's a lot more, but I'm getting out of the "large" chans as you put it. Point is, after weeding out the weak attempts at boards that high school kids started that are generally destined for failure, the vast majority of imageboards do, in fact, use Wakaba.
I'm wondering what people are using to automatically archive their kareha boards, to try and keep loads down. Kareha gets a little top-heavy as the thread count rises.
I'm wondering, I moderate a fairly popular site for anime fans and we're trying to setup wakaba for all the sections there. I've read that it's possible to span the spam.txt file throughout all boards so that way you only have one spam.txt file to edit when we need to blacklist a site. How can we do that to save the hassle of modifying all 8 spam files?
>>111 use constant SPAM_FILES => ('http://domain.tdl/boards/spam.txt', 'http://wakaba.c3.cx/antispam/spam.txt', '../boards/spam.txt');
Should be down near the bottom of the config.pl file.
>>113
Wouldn't that cause wakaba to download the spam file every time someone posts? (Can you even use http links there?!)
>>114 Read the comment next to it, it explains everything. The code is somewhat self-documented, after all.
> # Spam definition files, as a Perl list.
> # Hints: * Set all boards to use the same file for easy updating.
> # * Set up two files, one being the official list from
> # http://wakaba.c3.cx/antispam/spam.txt, and one your own additions.
All that comment tells me is that I can put more than one file there, and where I can get the official list. In fact, nowhere in the source code does Wakaba attempt to download anything defined in either SPAM_FILES or any local variable derived from it. Please elaborate further.
Is there any way to only permit registered users to post even though that is totally against the concept of imageboards?
>>117 It's in the wakautils.pl
file. spam_checker()
, spam_engine()
, etc.
So, I've been trying to intall the latest kareha release on my webspace (perl version 5.8.7), and I'm getting stuck. When I go to http://www.ftmvariations.org/sg/kareha.pl I'm getting:
Software error:
syntax error at config.pl line 165, near "1;"
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.
line 165 refers in my config.pl file to the very end, the last line with "1;"
---------
# Allowed HTML tags and attributes. Sort of undocumented for now, but feel free to
# learn by example.
# use constant ALLOWED_HTML => (
# 'a'=>{args=>{'href'=>'url'},forced=>{'rel'=>'nofollow'}},
# 'b'=>{},'i'=>{},'u'=>{},'sub'=>{},'sup'=>{},
# 'em'=>{},'strong'=>{},
# 'ul'=>{},'ol'=>{},'li'=>{},'dl'=>{},'dt'=>{},'dd'=>{},
# 'p'=>{},'br'=>{empty=>1},'blockquote'=>{},
#);
1;
---------
What I am doing wrong/missing?
You probably messed up the last uncommented line.
>>120
Provide a line number. It just doesn't happen.
I just traced the execution by hand, and unless I'm incredibly dense, it does no wget or locally implemented equivalent anywhere.
Full execution path is as follows:
post_stuff
passes spam_files=>[SPAM_FILES]
to spam_engine
spam_engine
initializes local @spam_files
arrayspam_engine
passes @spam_files
to compile_spam_checker
compile_spam_checker
maps read_array
on its local arg listread_array
accepts one scalar, which can either be a filehandle or a filename; if it's a filename, it opens the file locally with open FILE,$file
. Either way, it returns all the lines in the given file as an array.compile_spam_checker
to munge the results from read_array
into a form suitable for inserting into a regex@re
compile_spam_checker
, take @re
and build a block of code out of itspam_engine
; results from compile_spam_checker
are saved as $spam_checker
and all the form fields are scrunched together into $fulltext
spam_engine
still. actually run the spam checker with the given text, and call spam_screen
if it gets triggeredspam_screen
just prints out a page saying "anti-spam filters triggered". (On an unrelated note, this page doesn't use the templates at all.)Durrr, I think it won't load anything over http. There is a caching http loader function in wakautils though so it would be pretty easy to add it if one was into that kind of thing.
So I've loaded up kareha and it's all nice and pretty, but I can't post anything. After I press the Create Thread button the page reloads, but there is no new thread. What's most likely wrong?
Linux, Kareha 3.1.3
>>127
Sounds like your caching is screwy. You can confirm this by clearing your browser cache and reloading the page; if it still doesn't show up you've got other problems, but if it does...
Assuming you're using Apache, make sure you have mod_headers enabled. Try adding a line like the following at the top of your .htaccess:
Header add X-Test "This is a test"
If you suddenly get an internal server error, you don't have it enabled, so you'll have to fiddle with your httpd.conf.
mod_headers is enabled, clearing cache doesn't help. Also, kareha isn't reloading from include/rules.html either. This happens on multiple clients.
How can I change the character coding?
Well, I partially know where, but when I'm executing wakaba.pl, some special language characters are changed to "?"..
>>131
I want to set the encoding from the default utf-8 to windows-1250 (so the board can display polish characters).
I'm editing the encoding in config.pl (I'm also uncommenting it, I'm not THAT stupid). I'm also changing the .htaccess file.
I change the board title in config.pl to "różne" (with the polish chars, I don't know if they'll work on this board, there may be problems).
Then all the stuff gets uploaded, chmodded and I run wakaba.pl. What I get then: the title changes to "ró?ne" or something like that. I want the title to stay in its original, polish form.. But it won't work.
So?
Okay, I solved my encoding problem (the post above) but there's another one now.
As I'm trying to post a message on the imageboard, I get an error:
Software error:
Wide character in subroutine entry at /usr/lib/perl5/5.8.8/i686-linux/Encode.pm line 162.
What now?
There's no need to change the charset to do that. UTF-8 will allow polish characters just fine, and anything else, too.
I've got a problem with my kareha forum, new threads show up fine in the "view all thread" page, but don't show on the front page, even though I think my config.pl file is fine:
"# Page look
use constant TITLE => 'Intersections';
use constant SHOWTITLETXT => 1; # Show TITLE at top (1: yes 0: no)
#use constant SHOWTITLEIMG => 0; # Show image at top (0: no, 1: single, 2: rotating)
#use constant TITLEIMG => 'title.jpg'; # Title image (point to a script file if rotating)
use constant THREADS_DISPLAYED => 10; # Number of threads on the front page
use constant THREADS_LISTED => 40; # Number of threads in the thread list
use constant REPLIES_PER_THREAD => 3; # Replies shown
use constant S_ANONAME => 'Anonyme'; # Defines what to print if there is no text entered in the name field
use constant DEFAULT_STYLE => 'Futaba'; # Default CSS style title
use constant FAVICON => 'kareha.ico'; # Path to the favicon for the board
"
I'm wondering what's up with that?
I've tried rebuild caches.
When I look at the raw html of the index file, the post is there.
Hey, Just set up kareha, did config file, i can run perl scripts, and i set all the permissions to 777. But when navigate to kareha.pl, it gives me a 403 forbidden error... What should i try next?
ok, i think i dont have apache set up right. I uncommented the Addhandler, added .pl to its line, and added Includes ExecCGI to the options line, is there anything i forgot?