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/
990 from the old thread here,
thanks for the suggestion of an if statement, it worked just fine.
Hi!
I downloaded wakaba, but i cannot find documentation or any kind of instructions. Yet when I edit config.pl, it says there to read documentation first. Where i can find that?
Perhaps I should have linked http://wakaba.c3.cx/docs/docs.html from the first post...
I also have a rather verbose wakaba setup guide at http://wiki.iiichan.net/index.php?title=Wakaba_and_Kareha_Setup_Guide
Thanks! That guide was helpful.
Any idea why the [del] button next to a post you've made won't work from the main page (with all the other threads, like /sup/) but when you go to the thread page (/sup/kareha.pl/######/) it works?
No. Check the Javascript console for error messages.
is there a changelog for wakaba?
No, sorry. The closest is that most changes are noted in the release thread: http://wakaba.c3.cx/sup/kareha.pl/1130723862/.
How do your get google adsense work in wakaba? When I download my wakaba.html, I can see the code in there, but all lines have been stripped away. Is there anything I can do to prevent this from happening? There is no such option in config.pl.
No, there is such an option in config.pl. Search the old thread.
I did that, but didn't find answer, well, at least answer I could understand. It seems I should edit include() in wakautils.pl, but what I should change in it?
That is an ancient answer. Just look at config.pl again, there's a STRIP_NEWLINES option, or something similar.
I looked at it, but I can't still find it there, or anything like it.
I looked at it, but I can't still find it there, or anything like it.
Yeah, seems I only got around to adding it to Kareha and not to Wakaba. You can fix it yourself by adding a ,1 to the end of the compile_template call in futaba_style.pl.
use constant PAGE_TEMPLATE => compile_template(NORMAL_HEAD_INCLUDE.q{
(all the html for the frontpage goes here)
}.NORMAL_FOOT_INCLUDE,1);
Hi, i successfully installed wakaba but when tying to login to managment panel i always get the "Management password incorrect" despite that the password is correct for sure. This happened after i changed the encoding in config.pl file to 'windows-1251' when i change it back everything works fine. How can i fix this problem? Thank you
Does the password contain any non-ASCII characters?
Then I am completely lost.
Does RSS work with image-mode?
So I set up a kareha image-mode board, and people are posting, which makes me happy. But threads keep getting deleted without human input, which makes me unhappy. I can't imagine what's causing this - looking over config.pl, all the settings seem reasonable and shouldn't be killing the threads like that. The threads aren't exceeding size limits, post limits, or time limits. The deletion seems random, but the board's never gotten past 11-12 threads before something disappears, and usually threads disappear before a second page is even created. Any ideas why?
Possibly relevant config.pl settings:
use constant THREADS_DISPLAYED => 10;
use constant THREADS_LISTED => 40;
use constant REPLIES_PER_THREAD => 1;
use constant MAX_THREADS => 0;
use constant MAX_POSTS => 500;
use constant TRIM_METHOD => 1;
use constant DELETE_FIRST => 'single';
none of these seem like they should be deleting things...
yeah, but there haven't been near that many total posts. (it's a very small board)
I suggest setting a MAX_THREADS then leaving MAX_POSTS to 0.
What software should I use to edit the futaba_style.pl file and actually see the changes happen? I am currently using Dreamweaver CS3 to create my site, but when I try to edit this file, I can't see what's going on, I can only see the code.
>>30 I am using kareha. I tried setting the RSS-file name to index.rss, but it only generates an empty file.
Look here:
http://zzub.org/forum/index.html
http://zzub.org/forum/index.rss <- completely empty
Did that, posts are still being weird and disappearing.
Are the image files disappearing from src/
and thumb/
, too?
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?
>>140
Are you sure you can run Perl scripts? Try putting
#!/usr/bin/perl
print "Content-Type: text/plain\n";
print "it works";
in a file, chmod it, and run it.
Gah. That should've been print "Content-Type: text/plain\n\n";
(note the double \n
). Need to read what I type before hitting the button.
(Why can't I use <code> or <tt> with the HTML format?)
>>141
Youre right, that also gave a 403 error. I have a mac, so it comes with apache and perl, i uncommented the addhandler line and added ExecCGI to the options line in the httpd.conf file, what else do i have to do to run perl scripts?
>>143 Make sure that perl actually is installed to /usr/bin/perl
try:
#!/bin/sh
echo "Content-Type: text/plain"
echo
which perl
perl -V
(You can still save it with the .pl extension if you don't feel like messing with your config)
If that doesn't work, CGI scripts are just broken, because /bin/sh should never fail.
Does anyone have success using Google AdSense on Wakaba/Kareha?
I'm trying to put simple banner ads in rules.html and footer.html but it's not working... is there either
* A better place to put them?
* Need to modify the .pl scripts instead of the .html files?
Thanks for any help or advice.
>>148
More details.
When I save the parts of the site, it works offline. It also works online when using Safari (OS X) and Konqueror (Linux). However it doesn't work when using Firefox 2.x on OS X or Linux... Is it something to do with XHTML/HTML configuration?
The error console consistently says on both platforms:
uncaught exception: [Exception... "Object cannot be created in this context" code: "9" nsresult "0x80530009 (NS_ERROR_DOM_NOT_SUPPORTER_ERR)" location "http://pagead2.googlesyndication.com/pagead/show_ads.js Line: 19"
Set STRIP_NEWLINES to 0.
>>150
Is that variable different from KEEP_MAINPAGE_NEWLINES ?
>>151
I would say so. KEEP_MAINPAGE_NEWLINES will keep your newlines; there doesn't seem to be a STRIP_NEWLINES anywhere in the code though. :)
In any case that's what you want.
The thing that's really waxing me about this is that it totally works and looks exactly the way I want it to in
* Safari (OSX)
* Internet Explorer 6&7 (Windows)
* Konqueror (Linux)
But in Firefox 2.x on all platforms it doesn't work for some reason!! It's driving me bananas.... why would it work in some browsers and not in others?? Does it have to do with the handling of the onMouseOver method?
In Kareha, spaces in AA aren't replaced with or anything, messing up the rendering.
Since I don't know perl or regex the best i can get (with google's help) is:
$str=~s/????????/ /g; #clean up spaces for AA
(in the clean_string sub)
No other board does either. In Shift-JIS AA, you use full-width spaces instead.
>>153
Yeah, I'd try turning off USE_XHTML, if it's enabled. I think Firefox is the only browser out of the list you gave that supports it.
>>155
Regardless, could you please give me something that'll let me use regular spaces?
>>157
Actually, nevermind.
I just replaced each double space with a full-width
>>154
Ah ok. That's a good place to start. I'll mess with it and report back.
use constant ADMIN_PASS => 'password'; # Admin password. For fucks's sake, change this.
use constant NUKE_PASS => 'password'; # Password to nuke a board. Change this too, NOW!
use constant SECRET => 'omgwtfidiedlol'; # Cryptographic secret. CHANGE THIS to something totally random, and long.
use constant SQL_DBI_SOURCE => 'DBI:mysql:database=umbrella_wakaba;host=localhost'; # DBI data source string (mysql version, put server and database name in here)
use constant SQL_USERNAME => 'umbrella_interne'; # MySQL login name
use constant SQL_PASSWORD => 'h8machine'; # MySQL password
still getting sql failure. can anyone see any n00b mistakes? Mysql names/pwords/locations have been double triple checked.
Check your error log, usually there's more information in there. In particular if mysql is complaining about /tmp/mysql.sock, try replacing the localhost with 127.0.0.1 and see if that helps.
I got Wakaba working with PostgreSQL. It took a little bit of fiddling with the table structure, but the changes are worthwhile on the whole, I believe:
There's still a few more things that should be done, particularly rewriting the COUNT(*)
queries as Postgres doesn't even try to optimize them, and modifying the table init check to convert the data from an older version. It's a start though, and everything seems to function.
Any ideas about why, when I make any change to wakaba.pl (even harmless stuff like declaring variables) I get a 500 server error?
I'm running wakaba on a linux webhost, PERL 5.008008, the error log says
Mon Feb 11 16:48:20 2008] [error] [client xxx.xxx.xxx.xxx] failed to open log file, referer: http://www.domain.com/cgi-bin/wakaba.pl?task=mpanel&admin=WXdiMCdCZ4HJ
[Mon Feb 11 16:48:20 2008] [error] [client xxx.xxx.xxx.xxx] fopen: Permission denied, referer: http://www.domain.com/cgi-bin/wakaba.pl?task=mpanel&admin=WXdiMCdCZ4HJ
[Mon Feb 11 16:48:20 2008] [error] [client xxx.xxx.xxx.xxx] Premature end of script headers: wakaba3.js, referer: http://www.domain.com/cgi-bin/wakaba.pl?task=mpanel&admin=WXdiMCdCZ4HJ
Ok nevermind, it was Dreamweaver's fault. Editing the files with notepad and uploading them with another ftp client works.
I'd like to ask what I need to look out for when making manager posts on Wakaba.
I can't find any errors coming up in logs, but I tried to make a manager post with a comment and it keeps returning Error: no comment entered.
Where might I find more information on this, please?
>>165 The fields are mis-named in the manager post screen; they need to be called "field 1", etc, like they are on the board proper. Waha forgot to change them.
So would anyone mind telling me please how to get around the problem? What would I need to change in order to get this working? :)
I can't make any manager posts at the moment :(
It's really straightforward, just change the first four form fields in the ADMIN_POST_TEMPLATE form to "field1", "field2", "field3", and "field4".
uh... I've made this change and now when I hit submit it just takes me back to the index page, logging me out of the management panel as if I'd not bothered logging in. When I refresh, there's nothing record of my having posted. This seems a little off, I reckon. It may be straightforward, but it's got me stumped. I doubt this is supposed to happen?
>>169
Did you fill in the "parent" field with the thread you're posting to?
If you want to make a new thread, put a zero there.
hmm... yeps, tried that. Same thing happens. I'm a bit baffled, to be honest.
Try looking at the source to see if the action
attribute in the <form>
is filled in right.
here's the source code from the manager post page, if this is any help?
<div class="postarea"> <form id="postform" action="/wakaba/wakaba.pl" method="post" enctype="multipart/form-data">
<input type="hidden" name="field1" value="post" /> <input type="hidden" name="field2" value="ZfL9BDt4YCBq" />
<input type="hidden" name="field3" value="1" /> <input type="hidden" name="field4" value="1" />
<table><tbody> <tr><td class="postblock">Name</td><td><input type="text" name="name" size="28" /></td></tr> <tr><td class="postblock">Link</td>
<td><input type="text" name="email" size="28" /></td></tr> <tr><td class="postblock">Subject</td><td><input type="text" name="subject" size="35" /> <input type="submit" value="Submit" /></td></tr>
<tr><td class="postblock">Comment</td><td><textarea name="comment" cols="48" rows="4"></textarea></td></tr> <tr><td class="postblock">File</td>
<td><input type="file" name="file" size="35" /> [<label><input type="checkbox" name="nofile" value="on" />No File</label> </td></tr>
<tr><td class="postblock">Parent</td><td><input type="text" name="parent" size="8" /></td></tr>
<tr><td class="postblock">Password</td><td><input type="password" name="password" size="8" />(for post and file deletion)</td></tr> </tbody></table></form></div>
oh... duh. Cheers for that, I'll check 'em and change 'em :D
I want to know how to install Wakaba to my website?
I have installed kareha on to my webserver. My hosting runs perl, I have CGI running and the code went in great. The only problem I'm having is when I post an image it doesn't show up. It show shows up as a hyperlink and when I click on it it takes me to the exact location the image is, "site.com/cgi/src/00000.jpg" Yet an internal server error pops up.
I'm hosting with godaddy which sucks, but they say that imagemagick does run on the hosting server but that it's not installed. (If that makes sense) Could this be the problem? Please, I need help from anon.
Please deliver.
Sound like a) imagemagick is not installed just like they say and b) they don't allow access to images in the cgi directory anyway. You'll need to fix both.
Any thoughts about XHTML2 or HTML 5?
How do i get futallaby working with images in replies?
sry for wrong board but there is no futallaby support anymore Oo
>>183
There's a reason for that. Use Wakaba, or if for some crazy reason you absolutely need to have PHP, find one of the Futallaby hacks with image replies... or you could just use Futaba and translate it to English.
Can someone post up a good rotating script? .pl or .php please.
>>185 google "php image rotator" and you'll find plenty.
hi. using kareha. installs fine, but now getting 405 error:
Method Not Allowed
The requested method POST is not allowed for the URL /kareha/index.html.
Apache/1.3.37 Server at mysite.net Port 80
any ideas?
Your webserver is set up to not allow POST requests.
>>191
that's not the only problem, for some reason his browser is trying to POST to index.html
>>190
Did you run kareha.pl from your browser? All sorts of things break if you try to run it from the command line.
Any reliable way to convert from mode_image to mode_message? I've converted my boards to display in mode_message now, but all of the old posts are still stored in the mode_image format, making readability very tough and producing a rather inconsistent look.
Take http://www.fatechan.net/moe/kareha.pl/1162824087/l50 for example, the mixed posting looks very odd. If I knew more perl I'd just code a conversion script myself, but I don't :<
No, you pretty much have to write a script that does the conversion yourself.
Here's a quick outline: Copy the first line verbatim, ignore the second line and write an empty line instead ("Rebuild caches" will fix it for you later), and ignore the last line in the same way. For every other line, use regexes to extract the various data fields, and then use the templating engine and templates.pl to create the new line.
You might want to fix the >> links too, they'll all be wrong.
How to make the HTML code nicer so wakaba doesn't output everything in one line? ^_^
Is there any simple ''hack'' to do this?
I've tried with some prints and searched http://perldoc.perl.org/ for useful information but seems like I can't get it nicer.
Thanks for any replies. :b
>>198 there's an option in config.pl
. STRIP_NEWLINES? If it's not there, and you've been upgrading from an older version, dl a new version, double-check what the setting's called, and add it to your config.pl
.
Hello, I was unable to find it in Wakaba, but copied it from Kareha and added ".NORMAL_FOOT_INCLUDE,KEEP_MAINPAGE_NEWLINES);"
Thanks for the info!
Everything else works, image posts and replies.. so on. But when I put in my password at the [Manage] panel, it says it's wrong.
use constant ADMIN_PASS => 'password'
has been changed and everything... Dreamhost, permissions and everything else right/working
Are there any special characters in the password?
I'm getting the same problem. I've tried changing the password, using only numbers... it won't let me access the management panel.
ha, I'm a retard, didn't even notice that first one posted. No special characters, only numbers
Oh weird, I changed the URL to have my password on the end and it suddenly started working... um, do I just have to keep doing this? Actually, I don't mind... but if anybody knows what's going on..
I was wondering how hard it would be to set up on a wakaba board a spoiler/censor system like some boards, noteably 4chan's /a/ and /co/, have to replace the thumbnail with a black box or something. Is this something that would take a lot of work? Has already done it and if so would the mind sharing how to set it up?
Sounds like something is very strange with your server, maybe?
I've discovered a denial of service flaw in Kareha, and I've been the victim of these attacks for the past few weeks. I dunno if it's intentional or just some sort of bizarre bug, but if you send a specially formed string in the call to kareha.pl, it will cause the process to hang, forcing lighttpd to spawn another one in a neverending race condition.
It's completely crashed my server twice, and just today I barely caught it in time by noticing the telltale studdering in my ssh connection and killing lighttpd before it got too far.
Sounds sort of like a lighttpd bug. I don't think a CGI process should ever be respawned under any circumstances.
I'm using mode_message and:
use constant PAGE_GENERATION => 'paged';
on my board and I see that kareha is indeed generating cached thread pages (1.html, 2.html, etc) but it doesn't create a page list on any of them. Basically the only way to get at threads that fell off the front page is to view the All Threads page and pick one from there.
Did I miss an option to have it stick a page list somewhere?
>>214paged
and mode_message
aren't so great together.
You can hack the template and add that stuff...
I'm not using fastcgi, just the standard cgi caller, and it's spawning multiple perl processes because the "attacker" will make multiple calls, and since the perl process is hung, the old ones will never die, eventually leading into an out of memory condition.
I guess I misworded it, lighttpd itself isn't spawning new perl processes, but the old ones won't expire so every call to kareha with that malformed string creates a new perl process that hangs.
Well I have it in my logs, I just don't want to openly post it.
Then mail it. See the front page for address.
Access.log entries sent.
I have a problem when setting up kareha (using a free hosting service), I have all the permissions set to 777, and the config.pl file configured for mode_message, but when I try to access kareha.pl from a browser it doesn't assemble the board, instead I get sent to my service's default 404 link. Any ideas what I'm doing wrong?
Not unless you are more specific. Do you get forwarded when you go to kareha.pl? Is index.html created on the server?
How can i run kareha.pl if I only have ssh access to my webserver? Using perl kareha.pl creates an index.html file, but its broken(Can't post anything on the board).
Thanks for your help!
How can i run kareha.pl if I only have ssh access to my webserver? Using perl kareha.pl creates an index.html file, but its broken(Can't post anything on the board).
Thanks for your help!
225 here
"Access wakaba.pl through a web browser. This should create the HTML pages and forward you to them if everything worked."
I'm working on my site from home through ssh. I've got everything setup the way it should, BUT I heard that I should NOT run kareha.pl via command "perl kareha.pl", i must use a web browser.
The thing is....I ONLY have access to my webserver via SSH. How am I supposed to launch kareha.pl without having access to a web browser on the server? Is there a way to open a web browser in ssh?
I'm a newbie to linux, so let me know. Thanks!
Read about CGI scripting.
How is reading about CGI scripting going to solve my problem?
When I run the command "perl kareha.pl", it creates a index.html. When I go to http://"webhost ip" (I dont have a Domain name yet), I CAN see the kareha board fine and everything looks good, but when I create a new thread and click submit. The page refreshes, but the thread doesn't show up.
From what I read here, someone said NOT to run kareha.pl from command because it will create a broken index.html. So, I'm assuming THIS is the broken index.html he was talking about.
>>230
Don't run kareha.pl directly. How hard is that to understand?
>>231
if I run http://webhostip/kareha.pl it just opens up as txt.
How else am I supposed to execute it?
> How is reading about CGI scripting going to solve my problem?
Because Kareha is a CGI script. Read up on how to make those run on your web server.
ok i figured it out i think...
I was putting my kareha files in /var/www/html/ I can't execute perl scripts from that directory. SO I moved my kareha files to /usr/local/apache2/cgi-bin/ and I was able to execute the perl script from my browser, but I get a 500 Internal Error.
What do I have to do to Apache's httpd.conf file to enable me to run scripts in /var/www/html/ ??
>>234
http://wakaba.c3.cx/sup/subback.html
Ctrl-F, "500", Enter.
Also, it would help to read the Apache documentation before blindly running ahead and making a complete mess of everything. That's a fantastic way to end up with a completely insecure setup.
Don't put it in your cgi-bin, either; it's not meant to run that way and it won't work.
You really should take some time to learn what you're doing -- don't expect to be constantly spoon-fed. If you can't put any amount of effort toward solving your problems, why should you expect others to do so for you?
Short question: I'm setting up a site with multiple boards (similar to Desuchan, for example). Do I need a separate SQL database for each board, or will they all share the same database?
>>237
You need different tables for each board, but apart from that they can all use the same database.
Ah yes, I forgot I could change the tables. Thanks a lot :)
how can i make more boards like tv,photography,movies,games etc?
Just install more copies.
But before you do, put some thought to into whether you really need any more boards.
>>237
Desuchan's version of wakaba is a unified "server" structure.
Can't get passed this.
The last thread implied that this means DBD might not be installed, but it is. Can anyone help?
Checked my error log. I get...
[2008-05-13 00:54:50]: error: directory is writable by others: (/home/junkmanx/public_html/level1/LV1)
[2008-05-13 00:48:30]: error: directory is writable by others: (/home/junkmanx/public_html/level1/LV1)
[2008-05-13 00:26:09]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:25:41]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:25:13]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:21:58]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:21:42]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:21:25]: error: file has no execute permission: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:21:05]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:20:07]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:15:23]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-13 00:15:02]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-12 19:53:37]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-12 19:52:36]: error: file is writable by others: (/home/junkmanx/public_html/level1/LV1/wakaba.pl)
[2008-05-12 19:26:10]: error: directory is writable by others: (/home/junkmanx/public_html/level1/LV1)
[2008-05-12 19:26:03]: error: directory is writable by others: (/home/junkmanx/public_html/level1/LV1)
[2008-05-12 19:06:57]: error: directory is writable by others: (/home/junkmanx/public_html/level1/LV1)
[2008-05-11 19:45:22]: error: directory is writable by others: (/home/junkmanx/public_html/level1)
It means your SQL configuration is wrong.
Well what do you suggest I do to fix it? I posted my errors in 245.
None of those errors have anything to do with it. Also, none of us know what your SQL setup is, so it's not like we can do anything about it. You pretty much have to figure it out yourself.
Curious as to why when I made a board it copied everything from the first one I made onto it. Also, more importantly, why aren't my things located at img.(hostname).net/(boardname)? it's just (hostname).net/(boardname). I used img as the thing in mysql.
Because you used the same table in the SQL database? Also, SQL has nothing to do with where your things appear on the web. That's all up to the Apache setup.
>>250
Fair enough, I don't know much about databases (blatantly). Is there any way I can set this up? Will this happen every time I make a new board?
Also, how do I make it so you don't have to post an image with every reply?
>>251 just change what the tables are named in wakaba's config.pl file.
And you don't have to post an image with every reply...?
>>252
Yeah, I figured that out this morning, thanks.
I meant, so you don't have to check the box every time.
How does one give people moderator access?
In kareha, there was an INCLUDE_DIR option where I could set a 'global' header, footer, and rules page for all my boards. Yes, sorry, boards.
I can't seem to find this option in wakaba. Could someone point me in the right direction, please?
My kareha imageboard index loads and seems to be working fine, but when someone tries to make a post, nothing is added. Hitting the submit button seems to do nothing other than refresh the page. Help?
i thought i got everything right but apparently i didn't.. would anyone know what to do when this comes up?
[error] Bareword "DEFAULT_STYLE" not allowed while "strict subs" in use at
/usr/home/me/public_html/wakaba/futaba_style.pl line 642.\nCompilation failed in require at /home/me/public_html/wakaba/wakaba.pl line
19.\nBEGIN failed--compilation aborted at /home/me/public_html/waka
thanks!
Uh oh, one of my boards now only shows as a blank white page and the file size is 0 of wakaba.html. I've tried running wakaba.pl but to no luck-- any help? It worked fine before.
Sorry, never implemented it there. You can either change the paths in futaba_style.pl
, or you can make the include/
directory a softlink to some central directory.
You probably ran kareha.pl
on the command line. Delete index.html
and then go to kareha.pl
through the browser.
You messed up the files somehow, probably config_defaults.pl
.
Go to admin.pl?action=admin
and rebuild caches.
hi i would like to remove the image verification process from my wakaba board. how do i do this while keeping the board clean and functional? thanks.
When did moving posts get implemented (sorry if I'm slowpoking)
It didn't.
I have a wakaba setup with multiple boards and was wondering how
people handle ip bans across multiple boards. Every so often I get
an asshat or two that want to spam crap on a board and a day or
two later after i have removed it hit another board and so on. Do
you use a script to transfer the ip's from board to board ro do
you just deal with them one a a time??
getting
"SQL connection failure"
Other wise the board seems to load up fine.
That got it, bans show up across all boards now, Tnaks
Alright, I'm sorry but I just have a few questions. First off, how do I set up multiple boards. I understand HTML directories and etc, but I don't understand what files need to reside where. Do I need ALL the files for each board? Right now I have a working install, can I just duplicate this, dropping it in folders (one dir down from where it is now) and then create an index.html linking to each of these? Or can I have one copy of some files in the / and duplicates of others? I have no idea why each board would need its own config, CSS, and etc if they are going to be the same. Thanks for your time.
use constant CSS_DIR => '../css/';
The configs won't all be the same; at the very least you need to change the table name, unless you really want all of the boards to share the same posts as well for some perverse reason. Also, symlinks are your friend.
> The configs won't all be the same; at the very least you need to change the table name
unless you're using kareha, >>273 didn't say if he's using wakaba or kareha.
you'd still probably want to change the board title, tho. so you'll probably still have separate configs for each board.
Thanks! I'm sorry that I forgot to mention that I am using Kareha. One more questions, what about the scripts? Do I need duplicate scripts each folder? Do I need the scripts in the root folder? I'm sorry for not understanding much of this. From googling symlinks I found out that they are similar to an alias, which I do understand with my mac background, but I'm not sure how to create one on my server. Thanks for all your help.
Ah. If you have shell access you can make a link with ln -s existing_file new_name
. Don't know if it's possible with ftp though.
Barring that, basically just make a complete installation for each board, and move all the stylesheets and spam.txt up a level. No harm in making complete copies of everything, it's just a little more difficult to make changes across the whole site (e.g. upgrade).
Thank you, for all your help. I don't have ssh access or anything like that, so while working though FTP I just decided to make duplicate files in my directories. I am only trying to set up one board right now, but it is failing pretty hard. I don't want to use any of those stylesheets, so I made my own. I changed default stylesheet to the filename of mine -.css. and placed it in the correct directory. I honestly don't care if the others are options on the page, but I do want mine to be default. Well, when I browsed to kareha.pl it made my html page, and that seemed to work fine, but when I moved all the files (except /CSS and /spam.txt) down a directory it didn't (from / to /b/). I changed the config to ../CSS and ../spam.txt. After that, my index.html wouldn't display with any stylesheets. I don't understand what I'm doing at all. I know XHTML, but not JS, perl, or PHP. I want to customize the page layout, and have no idea how to do this. I don't want the subject field, or the link field. I can't just edit the HTML, that seems to work, but then it screws something up. I have tried around 10 different installs and they all have some problem.
> Well, when I browsed to kareha.pl it made my html page, and that seemed to work fine, but when I moved all the files (except /CSS and /spam.txt) down a directory it didn't (from / to /b/). I changed the config to ../CSS and ../spam.txt. After that, my index.html wouldn't display with any stylesheets.
try deleting index.html and browsing to kareha.pl again after moving the files and changing the config.
> I want to customize the page layout, and have no idea how to do this. I don't want the subject field, or the link field. I can't just edit the HTML, that seems to work, but then it screws something up.
try editing templates.pl.
One of my threads (on a wakaba board) isn't bumping and it's important (thus I need it to). What's up with that? It's not even an old thread.
Does it have more posts than the bump limit?
Has anyone written a script to convert from wakaba to kareha and keep the old wakaba message base? Google is not being helpful.
>>283
Probably not, Wakaba is superior to Kareha, why would you convert it?
>>284
I want to dump the database back end.
While we're at it, does anyone know how to add a "Report" button to either Wakaba or Kareha?
>While we're at it, does anyone know how to add a "Report" button to either Wakaba or Kareha?
Do it yourself?
How would you add noko support to take you back to the thread you posted in when that's in the email field?
(Note: untested code.)
In wakaba.pl, line 600-ish:
- make_http_forward(HTML_SELF,ALTERNATE_REDIRECT);
+ if ($c_email eq 'noko') {
+ make_http_forward(RES_DIR.($num or $parent).PAGE_EXT,ALTERNATE_REDIRECT);
+ } else {
+ make_http_forward(HTML_SELF,ALTERNATE_REDIRECT);
+ }
Kareha is slightly trickier, but still not difficult.
Doesn't work, however I tried something different based off of what you did (in a way).
Replace (around line 600):
make_http_forward(HTML_SELF,ALTERNATE_REDIRECT);
With:
my $noko;
my $noko2;
if($parent)
{
$sth=$dbh->prepare("SELECT num FROM ".SQL_TABLE." WHERE timestamp=? AND comment=?;") or make_error(S_SQLFAIL);
$sth->execute($time,$comment) or make_error(S_SQLFAIL);
$noko = $parent;
$noko2 = '#'.($sth->fetchrow_array())[0];
}
else
{
$sth=$dbh->prepare("SELECT num FROM ".SQL_TABLE." WHERE timestamp=? AND comment=?;") or make_error(S_SQLFAIL);
$sth->execute($time,$comment) or make_error(S_SQLFAIL);
$noko = ($sth->fetchrow_array())[0];
}
if($c_email eq 'noko')
{
make_http_forward(RES_DIR.$noko.PAGE_EXT.$noko2,ALTERNATE_REDIRECT);
}
else
{
make_http_forward(HTML_SELF,ALTERNATE_REDIRECT);
}
It may be bulk and able to be done in less lines of code, but this works perfectly.
If you're using MySQL, there should be a function for getting the value of the autoincrementing column of the last update. You could use that instead of the unwieldy SELECTs.
if($parent) { build_thread_cache($parent); }
else # must find out what our new thread number is
{
if($filename)
{
$sth=$dbh->prepare("SELECT num FROM ".SQL_TABLE." WHERE image=?;") or make_error(S_SQLFAIL);
$sth->execute($filename) or make_error(S_SQLFAIL);
}
else
{
$sth=$dbh->prepare("SELECT num FROM ".SQL_TABLE." WHERE timestamp=? AND comment=?;") or make_error(S_SQLFAIL);
$sth->execute($time,$comment) or make_error(S_SQLFAIL);
}
my $num=($sth->fetchrow_array())[0];
if($num)
{
build_thread_cache($num);
}
}
is what I used as a base for it. I'm not very good at Perl, so I'm just happy it works.
I had to do that because I don't want to rely on MySQL-only features, but if you're doing something for a specific server, you can get away with it. Read the docs for DBD::mysql to find the function in question.
I've been having some trouble installing wakaba...
When I try to open up wakaba.pl in the web browser it comes up with this error:
Forbidden
You don't have permission to access /public_html/wakaba.pl on this server.
I am running wakaba under Apache in Ubuntu 8.04 using Perl 5.8.8 and MySql. Wakaba is currently placed in /var/www/public_html and httpd.conf has been edited to add the lines:
Options +ExecCGI
AddHandler cgi-script .cgi .pl
It's clear that Apache has recognised the scripts as CGI perl files as when I click on them(and it comes up with that error) it also shows:
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch mod_perl/2.0.3 Perl/v5.8.8 Server at localhost Port 8
What should I do about this problem, would you like more information.
This is my first post, and I have looked beforehand for an existing topic, and if I have repeated something, I apologise.
First off, you should not be using mod_perl, if you are. Second, does the webserver have access to those files? Did you set the permissions correctly?
>>296
Check your file permissions and error logs.
> I have looked beforehand for an existing topic
Not enough, evidently ;)
ok, I'll uninstall mod_perl (via synaptic), and I have chmodded wakaba.pl and captcha.pl to 755.
but the error message persists.
Forbidden
You don't have permission to access /public_html/wakaba.pl on this server.
Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.1 with Suhosin-Patch Server at localhost Port 80
I've uninstalled mod_perl, it still comes up with the error.
Problem solved, I added:
ScriptAlias /cgi-bin/ /var/www/html/
<Directory "/var/www/html/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AddHandler cgi-script .pl
Order allow,deny
Allow from all
</Directory>
to /etc/apache2/sites-available/default
and this:
AddHandler cgi-script .cgi .pl
to apache.conf
and loaded the module using:
sudo a2enmod perl
I then restarted Apache and hey presto! the wakaba.pl script loaded up!
I think the source of the problem was not adding the code to /sites-available/default as this defines /var/www/html/wakaba as a directory that can run perl.
>>286
this has been done along with overhauling the mod panel to something sane
Regarding the "KEEP_MAINPAGE_NEWLINE" thing again.
Is there any way to make it works when viewing threads?
I have tried to do like this:
>},1;
at the end of THREAD_HEAD_TEMPLATE but when I try to post again it just output:
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
instead of the comment. Is there any way to do this?
> Is there any way to make it works when viewing threads?
In Kareha? No. The script finds threads by loading single specific lines from the file. Everything breaks if you mess with that.
Two simple queries:
Am I correct in thinking that of Wakaba, Kareha and Kusaba, only Kareha can have dynamically generated 2ch style "show last 50 posts" (eg http://wakaba.c3.cx/sup/kareha.pl/1192108766/50)? I was looking to integrate most recent posts embedded into other parts of the site using this feature, so it seems only Kareha will do using this method.
Particularly in Kareha, is there a simple way of flagging a thread undeletable, so it could be left alone at the end of the board without any danger of it being deleted? I was looking to tie certain threads into the site, so I don't want them being deleted.
Thanks.
>>307
IIRC Kusaba had "first 100" and "last 50" links in that giant mess of useless buttons it adds to every thread. You can do something similar with Wakaba when it's rebuilding the thread page -- just prune the thread after writing the res/*.html file, and run the writer again with a new filename. You'd have to be fairly competent with Perl to hack that in, though.
If you're intending to mix threads in with non-thread content, I think it'd probably be easiest to use Wakaba and pull the threads with an SQL query elsewhere.
>>308
Thanks, I more or less got something working.
Last problem I have is adapting the output to fixed width - for some reason a long line of text in a thread refuses to wrap to a new line (which screws up the display) despite me plastering max-width everywhere in the CSS, I presume I am missing the proper location for max-width in the CSS or style.pl? The page itself is now fixed width, but a long line just doesn't wrap fluidly like it should. The element is a blockquote, but the CSS does nothing to stop the line...
Last piece in the puzzle for me now...
How do you change the "Wakaba image board" title and link "Home" to a specific page?
Ok, I've gotten the "home" link sorted out myself, but I can't figure out how to change the "Wakaba image board" title on the first page.
i am trying to set up wakaba, but i am running into a problem. when i open the .pl in my browser all i get is the code o the screen.
i am thinking that my computer is not set up to execute perl.
how do i set it up to do so, i am using a mac?
i am trying to set up wakaba, but i am running into a problem. when i open the .pl in my browser all i get is the code o the screen.
i am thinking that my computer is not set up to execute perl.
how do i set it up to do so, i am using a mac?
is there a guide to theming wakaba and kusaba?
Hello, first thanks to the author for writing such great software.
Kareha question.
I have one working image board on my private host (Windows). I created a new dir where this board lives and extracted and setup all the files as before to give me a second board.
However when I run kareha.pl from this new dir it displays the title of my original board, says 'Thread specified does not exist.' and fails to create an index.php.
For the life of me I have no idea what's going on. I see no reason how is managing to display the title of my original board.
Before I move my original board to a separate dir I thought I'd ask for help. (Is it even possible to move a board and have its contents survive?)
You need to either delete index.html before running kareha.pl, or go to the admin page and click "Rebuild caches".
Thanks, tried that and ran into a CGI error. Problem with the way my host is setup. m(_ _)m ~ギブ アップ
i am getting this error when i open the wakaba.pl from my browser...
install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: . /System/Library/Perl/5.8.8/darwin-thread-multi-2level /System/Library/Perl/5.8.8 /Library/Perl/5.8.8/darwin-thread-multi-2level /Library/Perl/5.8.8 /Library/Perl /Network/Library/Perl/5.8.8/darwin-thread-multi-2level /Network/Library/Perl/5.8.8 /Network/Library/Perl /System/Library/Perl/Extras/5.8.8/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.8 /Library/Perl/5.8.6 /Library/Perl/5.8.1) at (eval 409) line 3, <FILE> line 3.
Perhaps the DBD::mysql perl module hasn't been fully installed,
or perhaps the capitalisation of 'mysql' isn't right.
Available drivers: DBM, ExampleP, File, Proxy, SQLite, Sponge.
at /Applications/xampp/xamppfiles/htdocs/xampp/wakaba.pl line 45
and i have no idea what is going on with this.
>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 somewhat understand what you're saying to do, but I'm not sure which part to look in. By IDs, do you mean like "Field1" or something else?
Install DBD::mysql.
How do I delete a post I made? I mean I know about checking my post and the delete thing at the bottom, but it wont do it without a password. And it isnt filled in already and the only password thats given when making a post is just a series of dots.
How do I delete a post I made? I mean I know about checking my post and the delete thing at the bottom, but it wont do it without a password. And it isnt filled in already and the only password thats given when making a post is just a series of dots.
Don't disable cookies, or start typing in a password when posting.
I suddenly am having problems posting images on my site. nahc4.com
Basically if I post an image I get:
"Either this image is too big or there is no image at all. Yeah."
Im getting this on any image.. even a 30kb image. I can only post text on the site now. Does anyone have any ideas on why this is happening? I use dreamhost if that helps.
>>328 do you have board-size limits set in config.pl? or a hard limit set with dreamhost?
Your server is probably blocking file uploads.
>>328
I remember you... you spammed your site on every imageboard in the overchan about a year ago, right? And then it collapsed because you were runnning it on a crappy shared host with Draconian bandwidth limits.
Is there an option (or a temporary hack) to perform secure erasure of unwanted images?
The shred is to be done regardless whether the deletion is invoked by user or admin.
Local laws are really tough on contraband.
There is no option, but if you can find a Perl module that does it for you, it'd be easy enough to search wakaba.pl
for "unlink
" and replace that with whatever secure deletion function you have. You could also make it call some external app to do it, using system()
.
>>333
Thank you for your reply. The web host recommend storing everything in EncFS to make deletion unrecoverable. Not too sure about how true that concept is. I'll try to find that Perl module mentioned.
my 'software error' if anybody doesn't mind helping
No ADMIN_PASS defined in the configuration at /usr/lib/perl5/5.8.7/CGI/Carp.pm line 314.
BEGIN failed--compilation aborted at config_defaults.pl line 133.
Compilation failed in require at kareha.pl line 13.
BEGIN failed--compilation aborted at kareha.pl line 13.
for each of these what do i change? like.. showing an example would be the most helpful and i know how to find all te documents for each except /usr/lib/perl5/5.8.7/CGI/Carp.pm
>>335 you forgot to uncomment the lines in config.pl
. remove the # from the very start of the line.
>>336 there is no # and what does uncomment mean? i edited mode_* to mode_image.
now it says:
This board has not been configured yet.
Things you need to do to get the board running:
Choose what kind of board this should be, and copy the files out of the corresponding mode_image directory into the board directory.
Edit config.pl to suit your needs - remember to uncomment the lines you change.
Access kareha.pl again (or just reload this page).
also where is the board directory?
> also where is the board directory?
That's just the one where you're installing things.
ok, so i was at this step >>335
BUT THEN I FUCKED SOMETHIGN UP D:
how do i get back there?
I'm setting up a board using wakaba, when I'm done I have a couple hundred images I would like to upload to start the board off with. Is there an automated way to do this so I don't have to upload them one at a time??
Hi, I know it's been answered before, but the description was a bit complex for me - I tried fixing it and screwed things up completely so I'd appreciate a quick walkthrough. It's the manager post problem, where it says the spam filters have been triggered every time. I edited futaba_style.pl, but only got it to let me post but only including an image and posting as anon. Help would be much appreciated.
>>341 you could make a very specific hand-crafted SQL query.
Okay, I've got a unique problem (Like as far as I have seen while browsing here.)
I have set up Wakaba correctly SQL and Database wise (meaning that there are no server errors and everything is in the right spot)
However, I get "Software error"s now. Here's basically what it looks like:
Software error:
config.pl did not return a true value at wakaba.pl line 16.
BEGIN failed--compilation aborted at wakaba.pl line 16.
config.pl and wakaba.pl are in the same folder and directory, but from what I'm reading (I'm a newbie at perl) is that the wakaba.pl script is claiming it cannot find the config.pl script, therefore not able to draw from it using the
BEGIN { require "config.pl"; }
found on line 16.
I have found above a line containing
use lib '.';
What do I have to do? The server is configured correctly, and my config file seems to be in order, my only guess is that little line (use lib '.';) must have something to do with it. If so, then what do I have to change it to, and if not, then what might be the problem?
No, it finds the file, but it is corrupt one way or the other. You may have deleted too much when editing it?
Hello, I am having a problem or two with setting up Kareha. Everything seems to be in place, but I keep getting the board not configured message. Here's how I have everything in place, am I doing something wrong here?
I followed all the instructions included in the config file along with the setup guide provided here. Should I just try to upload a fresh config file (nonaltered) and just work my way up from there?
>config.pl did not return a true value at wakaba.pl line 16.
I'm not that experienced in Perl, but doesn't that error come from the 1; not being at the end of config.pl?
Yes, probably.
Is there an easy method of adding Adsense to the left of the input table (the one in the middle of the screen, name, link, comments, file input, etc)? It looked like I could just copy/paste the code right into the Futaba_Style file, but it didn't work. Am I missing something?
On another note, I did add the 1 at the end of the compile lists, and it does keep the spaces in there, but still having issues having Adsense show up right next to the input area.
No hard feelings about ads. On another note, I was trying to implement this into pearl, but I suppose I could just toss it into the html page. :p
If you're going to do that, you might as well put it in templates.pl, because the first time you rebuild the cache all of that adding to the html page will vanish.
Yup, figured that out after I re-cached lol.
I figured out how to place ads on my site, but they do not work in Firefox. I looked at other threads here, some say to turn off xhtml (set it to 0) which I did, that didn't work.
I'm looking at Wakachan, and somehow they are able to display ads in Firefox. I just don't know what they are doing differently than myself.
Ahhhh i've spent about 5 hours today trying to even start this thing!!1! So i've set up apache and got that "it works!" message in my browser..ok easy. Then i set up perl scripts - though im not sure how to test if this is working. blah blah blah i did everything and at the end it just displays code in my browser. Any useful links so that i can start over? ( except http://wakaba.c3.cx/docs/docs.html#WakabaQuickStart ) thanks
Basically, if you just follow those steps as generic and simple as it sounds, it should be working.
On another note, I'm still waiting on some help with my Firefox issue with using ads lol. Not showing up in FF, yet shows up in IE.
Well... I found out what the issue was after hours and hours of looking. The problem was simple. It was my htaccess file that was making it so it wouldn't show ads in Firefox. For future reference for anyone having this issue, be sure to check your htaccess file. :)
Hey, i was just wondering how to make a homepage when clicking home. As it currently links to my directory...
If you're seriously asking us how to make a homepage, maybe you should learn a little more about websites before putting up an imageboard...
of course i know how to make a homepage in theory but was just wondering if it was somehow already created, anyway obviously not...off to dreamweaver
LOL
My webhosting server is being run by 'windows 2003 enterprise edition R2' that I can't change any permission as a user of the server. Host says it's because there's no problems running CGIs without permission setting on the OS.
But, finally what I found is this;
Software error:
Can't locate config.pl in @INC (@INC contains: . C:/Perl/site/lib C:/Perl/lib) at D:\userhome\junkbox\wakaba\wakaba.pl line 16.
BEGIN failed--compilation aborted at D:\userhome\junkbox\wakaba\wakaba.pl line 16.
For help, please send mail to this site's webmaster, giving this error message and the time and date of the error.
just as it is on here: http://hosting.ohseon.com/junkbox/wakaba/wakaba.pl
I seems like wakaba.pl couldn't read config.pl (I heard that it is usual problem on Windows that CGI programs don't read its config files.
Now, I'm waitting for the anser for this from my host.
But I' cant be so comfotable with this.
So, Anybody please help me solving this problem.
Okay so far im liking wakaba alot...but because i dont know anything about html or setting up websites at all, some stuff confuses me. So i was wondering, i still don't quite understand where to put the .html file craeted from the install. Atm it's in *chan.org/b(Wakaba)/imgboard.html which links from the home. problem is if you go to *chan.org/b/ you get the directory. How would i go about just showing the page? Also a final question is once i have done this, to add a navigation at the top of imgboard.html like [ b / c / d ] how can i go about this. Thanks. Anon.
I wonder how big and blinky I will have to make that message at the top before people will actually see it? Anyway...
Windows webservers are a big mystery mostly, but you can try looking at what's been figured out in the past here: http://wakaba.c3.cx/docs/docs.html#RunningOnWindows,RunningOnIIS
Sounds like the current directory doesn't get changed to the board directory. A workaround for that should be in there.
There is no html file created from the tarball. You're definitely doing things all wrong. First, learn how to use CGI scripts. Then, try reading http://wakaba.c3.cx/docs/docs.html#WakabaQuickStart.
How can i go about making a side menu that sticks throughout a whole chan?
where can i download Kareha?
>>370
If you have to ask you aren't trying hard enough.
So, I got wakaba up and running, except for a couple of problems:
Any ideas on why these two things are happening?
I receive "SQL connection failure" message when running wakaba.pl script. What I doing wrong?
wakaba.sql database is already created and config.pl is changed:
use constant SQL_DBI_SOURCE => 'DBI:mysql:database=wakaba.sql;host=localhost';
I'm Running Kareha on my test server at home. Now that I've gotten over the quirks of Ubuntu (I hope...), it seems to work fine, except that bans don't have any effect. They show up in .htaccess, but the matching IPs can still read and post. Am I missing something painfully obvious?
Aaaaand what the hey. Right after I posted that it started working properly. Color me confused.
I've installed Kareha but I can't see anywhere to log into with Manage as it says on the documentation.
Any help would be appreciated.
Thanks.
The docs are a bit out of date; now admin.pl is where the management takes place. There's no link to it, so just type it in.
Thanks for the response.
I tried that but it says:
Can't locate strings_en.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/local/lib/perl/5.8.2 /usr/local/share/perl/5.8.2 /usr/local/lib/perl/5.8.1 /usr/local/share/perl/5.8.1 /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0) at captcha.pl line 13, <FILE> line 4.
BEGIN failed--compilation aborted at captcha.pl line 13, <FILE> line 4.
Compilation failed in require at kareha.pl line 15, <FILE> line 4.
BEGIN failed--compilation aborted at kareha.pl line 15, <FILE> line 4.
Compilation failed in require at /home/www/admin.pl line 13, <FILE> line 4.
BEGIN failed--compilation aborted at /home/www/admin.pl line 13, <FILE> line 4.
Everything else seems to work fine.
This has probably been answered already, but I'm not sure what to search for, and reading the whole ~1200 posts in the support threads is a bit daunting.
How do you add a board description? Either below the title (http://orochi.iiichan.net/senti/ is the first example I found) or in the rule list below the message box.
I know Wakaba is designed to handle it, but is there a way to get Kareha to do flood detection and control?
How do I use the german strings instead of the english ones? I want a German board.
where do i have to leave the spainter.jar file for oekaki support?
Just in the base directory along with the rest of the files.
I'm using Yahoo! Small Business webhosting and what I keep getting after hours of trial and error is:
>Software error:
syntax error at config.pl line 173, near "1"
Compilation failed in require at /ichi/kareha.pl line 12.
BEGIN failed--compilation aborted at /ichi/kareha.pl line 12.<
Here is the line of config.pl and surrounding lines,
> 170 #);
171
172
173 1; <
And here is the line of kareha.pl, and surrounding lines,
>11 use lib '.';
12 BEGIN { require 'config.pl'; }
13 BEGIN { require 'config_defaults.pl'; } <
Please help me out.
Thanks,
Mr. Anon
I have been looking over questions and answers and I still have not found out how to make Threads. How might I accomplish this?
>>393
You won't find it because it's a terrible question.
Click "New Thread" under the thread list at the top of the page, fill in a Subject and a Comment, and press the button.
I'm sorry. I just realized that I'm confusing threads with Boards. How would I make a board that I can directly link from my main page that won't get overwritten when I post?
>>398 what? Just copy the entire directly of one board to another and change the config.p information (MySQL most importantly; just change the table names).
Hmm. Okay. I'll try that. Thank you.
I'm trying to post using "Manager Mode" and keep getting this...
Anti-spam filters triggered.
If you are not a spammer, you are probably accidentially trying to use an URL that is listed in the spam file. Try editing your post to remove it. Sorry for any inconvenience.
Known bug, sorry. Check earlier in the thread for workarounds.
I've just setup my first Wakaba and Kareha boards. I was wondering if there was a better way of citing/quoting in Kareha (like in Wakaba, where the cited link highlights that post rather than taking you to a new page).
http://wakaba.c3.cx/soc/kareha.pl/1098886772/
XML Parsing Error: mismatched tag. Expected: </p>.
Location: http://wakaba.c3.cx/soc/kareha.pl/1098886772/
Line Number 76, Column 404:
im using firefox2
Yes, old bug I for some reason haven't fixed on this site. Fixed it, but the pages need some cleaning which I'll try to get around to later. Nag me if I forget.
Software Error
"use" not allowed in expression at config.pl line 4, at end of line
syntax error at config.pl line 4, near "System config
use constant "
BEGIN not safe after errors--compilation aborted at config.pl line 5.
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.
Heres an example
System config
use constant ADMIN_PASS => 'XXXXXXXXXXXXXXX';
use constant SECRET => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
use constant CAPPED_TRIPS => 'XXXXXXXXXXXX =>' 'XXXXXX'=>' <em>cap</em>');
also are there any characters on the standard windows keyboard I should not be using in CAPPED_TRIPS?... because I think I used them all.
That CAPPED_TRIPS line is completely wrong. Look at the example again.
>>409
I changed it to the default setting, just to see if it worked. Now its giving me
"use" not allowed in expression at config.pl line 2, at end of line
syntax error at config.pl line 2, near "System config
use constant "
BEGIN not safe after errors--compilation aborted at config.pl line 3.
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.
>>410
it looks like you removed the #
from the # System config
comment line...
yeah thanks, I forgot that pseudo-code does need to be commented.
Is there any way to add moderators without giving them the admin password? Talking about kareha here.
That's like asking if there's a way to add moderators without adding moderators.
Hi.
How can I modify wakaba to make it load index.html of the install's directory instead of reloading the page itself (wakaba.html)?
I need this because my server is slow and permissions are not set propely after a post before the page is requested (error, etc), so I made index.html which redirects to wakaba.html after a second in each wakaba directory.
>>415
In config.pl, change:
#use constant HTML_SELF => 'wakaba.html';
to:
use constant HTML_SELF => 'index.html';
Hi!
I got an attack, where the "hacker" posted "Obvius Troll is Obvius" serveral times on my boards.
What can I do?
How do I prevent same IP from posting several times in a short period of time?
Every time I try to post a manager's post, I get hit with the anti-spam, even if I don't have a url in my comment. What's going on, and can I fix it?
Thanks.
Known bug, see earlier in this thread for workarounds.
SQL connection failure
D:
Just set up my new chan. How to fix?
>>424
http://command-q.org/wakaba/wakaba.pl is my imageboard.
I just installed Wakaba in my hosting, and it works OK. Question: When I reply to a thread, posts after the 1st do not have a Reply link; what should I do to enable it?
http://resourceroom.org/SSN/wakaba.pl
What happened there?
<<447
Never mind, that was a dumb question.
In case anyone asks the same thing, just click the post number ¬¬
I'm using Kareha.
I want to reload captcha image on click. My idea is to delete the captchakey cookie and to rerequest captcha.pl. So, I can delete to cookie using javascript
var cookie_date = new Date ( ); // current date & time
cookie_date.setTime ( cookie_date.getTime() - 1 );
document.cookie = "captchakey=; expires=" + cookie_date.toGMTString();
Now, given, that kareha captchakey generation mechanism is based on the REMOTE_ADDR and time() in minutes (string 61 in captcha.pl), if I rerequest the captcha within one minute, I'll get the same image.
However, when a user successfully post a message, the captcha is generated randomly (string 430 in kareha.pl).
So, I could follow this way, but before doing this I want to understand, what was your reasons for such design?
how does a script for rotating title images look like? just a short example please...
Don't post if you have nothing to say. Your question is not so important that it absolutely has to be at the top of the board at all times.
>>432
Chrissake, this is something you could have answered yourself in 30 seconds if you did some google searching.
<?php
$a = glob("*.{gif,jpg,png}", GLOB_BRACE);
header("Location:".$a[array_rand($a)]);
I got my imageboard up, but it only allowed me to post the first post with picture only. Every time I try to attach a picture to another post or reply, I get that page that reads, "Duplicate file entry detected" even though it's a completely different picture.
Anybody know why this is; what causes this problem and/or how I can fix it?
Thanks
How the hell do I post with an admin tripcode? Can't seem to find this anywhere.
>>437
In Kareha, you can set up capcodes with specified tripcodes in the config. In Wakaba you can't.
After I went to a page (aaa.pl, I believe) I keep getting 403's just about everywhere... Could you... erm... fix this please? I can't access anything but /sup/ and /soc/.
Not unless I have your IP address.
Hey there
I noticed the preview post function is working perfectly here, so I guess I'm doing something wrong. I've set up kareha message board and everything works perfect... except for the preview post button which gives me some error
I'm uploading an image to let you see.
>>442
Alright, I just realized something, Kareha throws out an error for preview post when you are making a NEW thread, as opposed to previewing a reply post.
The same seems to be the case here. Some sort of bug?
It seems to work fine for me in Safari, even for new threads. What browser?
I am having trouble making wakaba go to a new page. No matter how many images and new threads I create, it will not create a page 2. I messed with the settings in config.pl but they don't seem to do anything:
use constant IMAGES_PER_PAGE => 5; # Images per page
use constant REPLIES_PER_THREAD => 5; # Replies shown
Also, would anyone know how to make a new board in wakaba?
Thanks
>>447 Sounds, once again, like a folder permissions problem.
To make a new board, create a new subfolder and install another copy of wakaba.
Also remember that you have to rebuild caches after any change to the settings, if they "don't seem to do anything".
No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.
I am getting that page when I attempt to install Wakaba. Can someone help me out?
The config_defaults.pl file says when the message No ADMIN_PASS or NUKE_PASS defined in the configuration appears, it means the config.pl file is incomplete. I checked over the config.pl file and everything was completed.
Wakaba installs are completely independent, and handle one single board each. Anything beyond that is up to you to arrange however you want it.
>>453
Thanks a lot, it worked.
Does anyone know how to get rid of the captcha? I tried editing something and it gave me some error lol.
>>456
Yes, you set ENABLE_CAPTCHA to 0. It really isn't that hard to figure out if you actually read the file and use your head. Seriously, are we supposed to handhold you through your entire installation and configuration?
I've been trying to figure it out, but I do believe this is beyond my skills.
As you can see, the top is Firefox and below is Opera. The "choose" or "browse" button does not look the way it's supposed as per CSS. Is this a matter that can be remedied or is that just a browser issue that I cannot help?
I've got a problem with Kareha. I cannot use the delete file function. It just does not work. I want to delete an image without deleting a person's post but nothing happens, the picture is still there. I've tried all the browsers, that doesn't seem to be the problem. It doesn't even give me any errors, I click on 'delete file' and it does something and then it reloads the admin page but the image I wanted to delete is still there...
>>460
Oh, also I am using kareha MESSAGE board with image uploads enabled.
>>459
For the most part, you cannot edit file input via css.
Am I a dumbass or is there no way to sticky or lock threads under Wakaba? I don't see any such option in the management panel.
>>464
Was going to make a rules sticky, because most people are dumb and don't actually read the rules.
I have a problem with encoding in Wakaba. My .htacess file is configured for using utf-8, the same about global encoding settings of Wakaba and DB encodings. I only use cp1251 in my strings file with "use encoding 'cp1251'" and "no encoding" uncommented.
That all works fine, but anything added into database turns into crappy junk. I'm lame so I have no clue of where the error could be.
P.S. sorry for my bad English.
>>467
Thanks, Anon. I've converted strings file into utf-8 and now it seems to work perfectly.
Also, happy New Year everyone!
>>465
you really think people who don't read the rules are going to read them if you move the rules section down the page a little bit?
>>469
Good point.
This is a suggestion regarding security. I assume this is the correct place to post it; otherwise, I can start a new topic.
Please implement proper file content filtering in Wakaba/Kareha. As of right now, Wakaba filters out forbidden file types through an array of forbidden extensions, but this is not necessarily sufficient. For example, a PHP file may be uploaded with extension ".php.7z." If a board allows the 7z extension and if the file is not renamed (as is default in the case of Wakaba), an Apache server may in fact still execute it, resulting in the execution of malicious code. This has actually caused a significant disturbance in a site with which I help out. A simple two-line patch that relies on the UNIX file() utility has been written to address this for the moment.
>>472
the default is to not allow any files except jpg, png, or gif images (and rename them). it's possible to make it insecure by configuring it improperly, but it's certainly not the default.
Like >>473 says.
Also, I'm really tempted to say that that is in fact a PHP bug, and until they fix it you're better off disabling PHP on your server.
>>475
Even if it isn't a bug, it's probably caused by shitty/careless PHP coding.
>>472 also, remove the +x from your uploads folder.
When I say default, I mean Wakaba's behavior when enabling non-prohibited filetypes in config.pl
, such as MP3s. I'm pretty sure Wakaba is set up not to rename those after uncommenting the respective lines.
I am told by the server admin that it is actually a bug with the latest Apache (or perhaps mod_php
), possibly affecting only Gentoo. I could not find a citation (beyond this anecdote) to support the claim, but this is seems to be a known issue. It does turn out that if ".php" is found anywhere in the filename, it is still executed by Apache. A PHP file can then be disguised as a 7zip file or MP3 file (e.g., nasty_hax.php.mp3
), and be uploaded. If the extension is uncommented config.pl
, it gets uploaded. If the server (or PHP interpreter) suffers from the issue, the attacker executes the malicious code and has fun. I have neither tested nor asked about this for other script types. Indeed, renaming files would technically render this exploit moot, but by default Wakaba does not do this with non-pictures. There are Wakaba boards out there that support non-picture uploading, and I have seen only one (Pooshlmer) that renames files.
Indeed, that is a wise suggestion. In fact, I've just chmod
-ed the src/
directories myself.
...and then the pictures could not be accessed by anyone. I set permissions to 644, but no one could see the pictures unless the execute bits were set. I'll have to ask the admin about it myself, unless someone here has an idea.
At any rate, I just thought I'd share the (admittedly nontrivial) suggestion and post about this potential exploit for other people. It completely blindsided us. Having a layer of security at the board software level in case of a future server exploit sounds like the best solution, though I understand leaving it in the hands of the administration rather than adding feature bloat.
Kudos for the script.
it is a mod_mime "feature"
Well, the core issue is that PHP is broken and will execute files without the +x bit set. This is horribly insecure, and should never have been implemented, but apparently now we're stuck with it.
The best solution is to completely disable PHP. If you have to use it, enable it only for folders known to be safe from uploads and disable it everywhere else.
To add extra protection in Wakaba for it, though, rather than mess with file
, it'd be far easier to just dump all files whose filename matches /\.php/
. This issue shouldn't affect any CGI languages, since those won't run without +x.
I've got a problem somehow related to encoding.
I successfully installed Kareha, but every time I try to make a post I get a white screen with text saying "Software error: Unknown encoding 'utf-8' at wakautils.pl line 613". It doesn't abort the posting though (my messages still appear despite the error), but the flashing is no good.
I didn't do any changes to wakautils.pl since the very install. What could be that?
>>485
Nevermind, it's alright now... I really forgot to update my perl.
http://wakaba.c3.cx/sup/kareha.pl/1130723862/318
I noticed this issue was never addressed. The CSS typo is still included in the current version of Kareha. I don't know if you forgot about it or if it's intentional...
Hello, is there any built in way or any code snippets you guys have that would allow my to set an image limit on a threads (like a single on) I could probably manage this myself eventually, but I was wondering if it was done already.
I have a problem with kareha, I cannot set a maximum image limit per thread.
I thought IMAGE_REPLIES_PER_THREAD
actually meant IMAGE REPLIES PER THREAD! Apparently it doesn't do anything. I am still able to post image replies way beyond the limit. Is there any way to control this problem?
I think it makes the thread stop bumping when you pass the limit.
Why on earth would you want to limit the number of image replies anyway? That's just annoying, and adds no value to anyone.
>>491
It allows me to control the amount of images uploaded so that I don't go over a certain limit. I'm running a small board with limited bandwith and space.
I want to be able to control the space in terms of number of threads. There's no shame in that. Why are you trying to control my methods so much by just waving it off as "I don't like it, therefore, it is bad." ?
>>492
There is a configuration option for limiting the threads by filesize, you know.
Like the guy says, there's an option already for setting the maximum disk space usage across the entire board. That's what you want to use, not some weird and ineffective limiting of posts per thread.
>>479
Wakaba starts off by renaming files uploaded with those filetypes, but restores the name afterward. If you want to use the generated names on files, search wakaba.pl for "externally defined filetype - restore the name" and commment out that entire if block. I'd give the line numbers, but I've done a bunch of other custom stuff in mine, so they won't be accurate.
OK, so I just closed a thread in Kareha, and I ended up getting this error when I tried to reopen it. Is this normal? By the way, I'm using image mode, on a Linux server.
>>497 did the thread reopen? That's sometimes an artifact of a page that didn't load completely.
>>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.
Trying to set up kahrea on nginx + fcgiwrap. The main board seems to work, but when I try clicking on an individual thread with a URL (in the format of http://www.whatever.com/board/kareha.pl/somenumber) it gives me a 404. I'm on a resource limited VPS and Apache takes up far too many resources for my liking, or else I'd simply use that instead.
This is the part of my nginx config dealing with the board.
location ~ ^/board/.*\.pl$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:10000;
fastcgi_index index.html;
}
What am I missing?
>>587
Would it be possible to get any more details relevant to the problem with flock()? I only ask because I'm planning on complaining to Dreamhost and it would be good to have as much information as possible.
All I know is that suddenly flock() starts hanging on a specific file, and the only way to resolve it is to rename the file, and copy it back to the old location (so a new file is created, which can again be flocked() normally). Killing all running processes does not release that flock().
dreamhost has not caused issues with kareha or wakaba since 2006 on their regular hosting. maybe there's a problem with their PS service but that's a completely different beast. you should specify "dreamhost ps" in that case.
you don't even need their vps service unless you are getting around 5000 uniques * 10 pages/unique using kareha or if you are getting around 20000 or more a day with wakaba.
I don't know whether the fact that the config.pl should not be in UTF-8 amuses me or makes me want to puke.
Maybe it's my setup;
I ticked off the encoding and the template would display correctly
I ticked it on and the posts would display correctly.
And when I converted config.pl and some other files to ANSI everything came out fine.
Any tips? Should I leave it at that?
I notice that since I installed Wakaba 3.0.7 a while ago, an updated version has come out. What changes have been made? Is there a version history somewhere?
If you want it in UTF-8, you need to have use encoding 'utf-8';
at the top and no encoding;
at the end.
Just bugfixes. It's been too long for me to remember what exactly all of them were, though.
Ive got perl showing the wakaba.pl page correctly, I just need to setup mysql. Anyone have exp with Mysql in Ubuntu? Or even linux for that matter?
Damn, sorry for the quad posts ... server would not reply.
Sorry, you said quad posts so I deleted three of them... Anyway, read http://wakaba.c3.cx/docs/docs.html.
i just " installed " kareha..
but when I visit mah page it only downloads kareha.pl instead of browsing it?
I've installed perl, and changed permissions. so idk : (
See the previous post.
>>614
I followed that completely. I go to <site>/kareha/kareha.pl, says the index.html does not exist. The guide says going to that file should make it.
I CHMOD'd the directory to 777 again, it made the index file fine. But, when I upload an image, it always says "No thumbnail".
Oh, I also can not ban anyone either.
Okay, in admin.pl, it shows their IP as ::ffff:<normal IPv4 address>
It will not let me ban IP addresses??
Okay, I fixed the IPv6 problem, yet I still can not ban IP addresses, nor get the thumbnails to work.
use constant CONVERT_COMMAND => '/usr/local/bin/convert'; # location of the ImageMagick convert command (usually just 'convert', but sometime a full path is needed)
That is the correct path, etc, it just does not work for making the thumbnails ??
Oh, also, all posts are "1 GETs"
Anonymous 09/06/25(Thu)14:58 No.1
Anonymous 09/06/25(Thu)15:00 No.1
Etc.
Quick question: How do we enable more than 11 pages of posts? Thanks.
Change the post limits?
Well, MAX_THREADS and MAX_POSTS are both set to zero in config.pl. Is it something else that I have to set?
MAX_AGE and MAX_MEGABYTES, I guess?
The Wakaba/Kahera support wiki has a SecretFeatures tiddle that says:
>Wakaba and Kareha have a couple of hidden options and features. Can you find them?
I havn't been able to find them and it is driving me mad. Somebody please put me out of my misery.
When trying to make or delete a post, kareha.pl usually forwards me to index.html without it being completely built. This results in a parsing error if xhtml is enabled. index.html is fine if refreshed. Any idea what's causing this?
>>628
they're probably referring to things like ^H
and the other date formats that aren't documented in config.pl
.
Sounds like some kind of very weird or broken server. The redirect isn't done before the file is completely written to disk.
I never found MAX_AGE in config.pl (running 3.1.3). It's in there now, let's see what it does.
I basically want to be able to archive everything if possible.
>>630
No offence but I hope you are wrong because that is dissappointing.
I think I need a perl guru to help me with this mystifying problem. I run a wakaba image board and the admins want to have #admin after their posts, which is fair enough.I got it working by adding this at line 144 of futaba_style.pl (308):
<if !$email><if $name eq 'NAME'><if $trip eq 'TRIP'><span class="admin">#Admin#</span></if></if></if>
<if $email><if $name eq 'NAME'><if $trip eq 'TRIP'><span class="admin">#Admin#</span></if></if></if>
This worked flawlessly on a test site, but when I added the code to my live site it works fine on some boards and not at all on others. Even if I copy futaba_style.pl from a board which is working it still refuses to work. Even more baffling is one particular board which inserts #Admin# for posts that already exist, but not new posts!?!
I only have very basic programming knowledge but I don't even see how the last scenario is even possible. If the script recognises a name and trip combo and inserts #Admin# in one post, how can it not recognise the exact same name and trip combo in another post. Baffling. Obviously there is something more to this beyond my knowledge so if someone can point me in the right direction I'd be supper appreciative.
I have no idea what causes the problem, but mabe you should first just remove the outermost <if> statements and just have the code in there once. There's little point in doing it twice like that.
Also, you can combine several tests into <if $name eq 'NAME' and $trip eq 'TRIP'> to get rid of another if statement. Making the code simpler might help in figuring out what is going wrong
I am trying to install Wakaba on a shared hosting server. When I try and run wakaba.pl to get the html files it just trys to download the file and not run it. I asked my host about this and they said the files have to be in the cgi bin folder or something. Can someone please explain how to get this working X__X thank you.
>>637
My server is running Lighttpd, Ubuntu 9.04. It supports .htaccess, I think.
It is chmodded 777. All access.
Not to begin with, but when someone makes a post, it makes a 0-Byte file there, as if it tried to thumbnail and failed.
Why is it SUPPOSED to be like that? And no, it is all posts. Why does the first image not get thumbnailed though?
> My server is running Lighttpd
Wakaba has only been tested on Apache. If you want to run it on anything else you're on your own. There will be problems. This is not recommended unless you really know what you're doing, and it seems that maybe this isn't the case.
>>342
To fix the manager post problem, edit futaba_style.pl:
Search the file for ADMIN_POST_TEMPLATE. This should be found around line 590. There is some shit about form fields. Leave the "hidden" type alone. Starting on line 602 is the shit about postblocks for name, email, subject,(submit button) and comment. Leave the submit button alone. Change the name="whatever" to name="field1". Do this for name, email, subject, and comment; as in, change them to field1, field2, field3, and field4. In the order they are.
Also, change it so it looks like this:
use constant ADMIN_POST_TEMPLATE => compile_template(MANAGER_HEAD_INCLUDE.q{
<div align="center"><em><const S_NOTAGS></em></div>
<div class="postarea">
<form id="postform" action="<var $self>" method="post" enctype="multipart/form-data">
<input type="hidden" name="task" value="post" />
<input type="hidden" name="admin" value="<var $admin>" />
<input type="hidden" name="no_captcha" value="1" />
<input type="hidden" name="no_format" value="1" />
<table><tbody>
<tr><td class="postblock"><const S_NAME></td><td><input type="text" name="field1" size="28" /></td></tr>
<tr><td class="postblock"><const S_EMAIL></td><td><input type="text" name="field2" size="28" /></td></tr>
<tr><td class="postblock"><const S_SUBJECT></td><td><input type="text" name="field3" size="35" />
<input type="submit" value="<const S_SUBMIT>" /></td></tr>
<tr><td class="postblock"><const S_COMMENT></td><td><textarea name="field4" cols="48" rows="4"></textarea></td></tr>
<tr><td class="postblock"><const S_UPLOADFILE></td><td><input type="file" name="file" size="35" />
[<label><input type="checkbox" name="nofile" value="on" /><const S_NOFILE></label>
</td></tr>
<tr><td class="postblock"><const S_PARENT></td><td><input type="text" name="parent" size="8" /></td></tr>
<tr><td class="postblock"><const S_DELPASS></td><td><input type="password" name="password" size="8" /><const S_DELEXPL></td></tr>
</tbody></table></form></div><hr />
<script type="text/javascript">set_inputs("postform")</script>
That should be fixed in the latest version.
Problem with oekaki:
After painting my image, uploading it and writing RIGHT captcha, i see error about wrong captcha. What it can be?
I'm wondering if there's anyway to grab the subject from the first post in a thread, and to reflect it within "futaba_style.pl".
>>641-642
I've been running Wakaba and Kareha both on lighty for quite some time on a couple of different systems (I have tried it with OS X Tiger, FreeBSD, and Arch Linux, and had no problems)
The only snag is that lighty doesn't support htaccess files, so you'll have to translate the relevant stuff to its own config format. Not that hard to do, just tell it that .pl files should run with perl. You don't need to enable the fastcgi module (in fact, don't enable it) You might additioanlly want to fiddle with the expires headers if you find you're getting old copies of the pages served after posting.
As for permissions, if you set up execwrap or something similar you can get it running without the (highly insecure!) chmod 777. It's easier to configure than Apache's suexec, imo.
I have a bit of a question about Wakaba: I want to create an upload board like 4chan's flash board. However, I just installed it and it functions like a regular imageboard (like you'd see on any other part of 4chan). Is there a way I can get Wakaba to mimic 4chan's flash board in terms of appearance and function, and if not what should I be using?
> As for permissions, if you set up execwrap or something similar you can get it running without the (highly insecure!) chmod 777.
or you can just set the owner of the directories to the user that the scripts run as, and then set the permissions to 755.
>>649
That's still not secure, and requires root on some systems in order to "give away" the permissions to the web server. In fact it's probably a worse choice because it could potentially lull you into a false sense of security where you're actually in the same circumstance as before.
The issue is that other processes on the server can open up config.pl and scrape (and perhaps change) your admin password, either because it's readable and writable to all, or because they're all running as the same user. If two people have access to the web server and the server is running all scripts under the same user id, all script files are accessible to all users regardless of what else you do to them.
It's a shame that the Apache developers reacted so irrationally and so strongly against suexec, because it solves many problems and creates very few.
>>650
the point wasn't that it's secure to do it that way, just that there are other ways to do it without setting the permissions to 777.
>>651
Sure there are. But the method you suggested is more effort than a plain chmod 777 without being beneficial in some way.
>>648
All it takes is writing an appropriate style.pl file. It is essentially find-and-replace stuff, I did it once, and I had no idea what I was doing,
I have a similar'ish problem as >>600, i looked over the thread and still cant find a answer to this, the board works fine, but when make a post (successfully) and go to hit reply to the thread, i instead get the thread minus all styles, yet, if i go to http://site.com/board/kareha.pl/threadnumber/index.html, everything looks as it should and behaves properly, can anyone point out what part of the code needs to be adjusted to append /index.html to the reply url's kareha generates please?
i suspect its the webserver thats ultimately responsible for this but it seems to be a good exercise for me to do anyway ^_^
Is there a way to merge the posts from two kareha boards together? Thanks.
You can just copy all the files from res/ on one board to the other, and rebuild caches. However, this will break >> links and deletion of old posts for the ones that moved. You can fix the former by either running some search-and-replace on the res files, or by setting up an HTTP redirect.
A while back the captcha on my Wakaba install stopped working - when I view captcha.pl directly, it spits out the error:
Undefined subroutine &utf8::is_utf8 called at /usr/lib/perl5/5.8.0/CGI/Util.pm line 251.
I notice the 5.8.0 part in there because by the look of things, my hosting is running Perl 5.8.8
Since this happened on its own I guess it's more likely my hosting service's Perl install is somehow screwed up, but is this a sign that I'm doing something wrong at my end?
Correction: captcha.pl throws that error for everybody EXCEPT (a) one dude in Finland, and (b) the support guy I'm trying to get help from. He says that Perl is running fine.
HAHA DISREGARD THAT I SUCK COCKS (and by "suck cocks" I mean "had the support dude reinstall Perl and it fixed everything")
Hey there. I have been trying to get kareha working now for a while (I am a complete idiot when it comes to programming) and I have stumbled upon a problem: everytime I try to acces localhost/kareha.pl it gives me a 403 error. Could anyone help me to fix this problem?
Regards,
Sebastian
Anyone here?
>>661
Make sure you set the correct permissions on the .pl files. You might want to read those: http://wakaba.c3.cx/docs/docs.html
I'm using Kareha in message board mode. When I try to rebuild caches from admin.pl I keep getting this error:
"Couldn't write to file "" at wakautils.pl line 1013."
The rules header gets updated, but other threads with parentheses for titles get created. I can't delete them, or post in them.
What can I do to fix this?
Sounds like a broken configuration of some kind. Hard to say how exactly.
I found a perl script to generate random images on a wakaba board which works brilliantly, but I have been getting requests for the image to link to the thread the image comes from. I'm guessing I need to query the mysql database to find the thread but my coding skills are very weak so if someone could get me started I would really appreciate it. Perl or PHP is fine and here is the script I am using...
#!/usr/bin/perl
my $directory="b/thumb";
my @files=glob("$directory/*");
my $file=$files[rand @files];
print "Status: 302 Found\n";
print "Location: $file\n";
print "\n";
Noobish question; is this installed on your site, or uploaded and the files edited to make changes?
Yes the script is installed and running. I want to modify the script to also return the thread which the image originates from. I'm learning perl from scratch so I'm looking for pointers to help me out, cheers.
Can someone please answer my question?
what web hosting companies would guys recommend to run an imageboard website?
Lots of people like Dreamhost because it's cheap and has lots of bandwidth and space. It's a bit unreliable at times but if you can live with that it's nice enough.
Is it possible to deny a post by using ID?
I need to ban a certain user that changes IP frequently...
I'm getting
Error: No verification code on record - it probably timed out.
When I try to post.
There is no little picture next to the 'verification' box =\.
>>680
fixed that.
I really need to learn to shut up.. sorry for the stupid questions.
One more question to throw at anyone here though, None of the themes that came with wakaba are working. See pic for details.
Anyone know what to do about
Caused by SystemException in API_Linux.cpp:434: execve() for program "/home/content/u/s/e/username/html/cgi/ra/thumb/1253939376496s.jpg" failed: Exec format error
[Fri Sep 25 22:52:06 2009] [error] [client 70.251.74.93] Premature end of script headers: /var/chroot/home/content/u/s/e/username/html/cgi/ra/thumb/1253939376496s.jpg
I can't get any images to thumbnail with imagemagick, is this the reason/?
I want to host a low bandwidth image board where people can't upload images, but they can link to images on other servers. What do you recommend? Can Wakaba or Kareha be configured to do this?
>>683 It's definitely possible, although you'd need to understand perl to do it. Also, that's a pretty annoying thing for webmasters to deal with; expect nasty emails and redirects to goatse.
>>681
Still can't get themes to work.
I moved the .css files into a separate css folder outside of the cgi folder, but wakaba is still trying to execute the ones inside the cgi folder.
I tried adding this into config.pl:
use constant CSS_DIR => '../../css/';
but it doesn't change anything.
Any help on this would be greatly appreciated, my board still has no theme =\
And FOR THE THIRD TIME, IT WORKS , RIGHT AFTER I POST THIS
ARRRRRGGGHHHHH
IGNORE MY WORTHLESS POSTS PLEASE!
I've been using wakaba for a while and I love it, but sometimes I wish it had more involved administrative options. Things like the ability to sticky posts (not manager posts, ones made by other uses), edit posts, blacklist certain words from being posted.
One of the reasons I chose wakaba over other options was its simplicity, so I can get along without any of that, but sometimes it would just be so nice.
Also, is there any way to easily upgrade from one board version to another?
I'm sure I just messed something up but nothing is working with the board:
http://www.theybannedme.com/wakaba/wakaba.html
I did install it from shell as it wouldn't run from browser. I'm pretty sure this is why it's messed up but I'm in over my head. Any help is appreciated. Thanks.
>I did install it from shell
Yep, that's wrong. Delete everything and start over.
>>689
You can easily blacklist words, that's the spam.txt file. Or the "ban word" form under the bans/whitelist page.
Stickies will never happen, neither will post editing. Look around for patches; they've been made. But please reconsider, since that sort of thing is annoying as hell on a board, and it generally enforces the principle that the userbase is only there to watch the administrators dick around. Stickies especially; the bullet-point list and space between the post form and the threads serves as a much better place to disseminate information; if you're trying to sticky threads to artificially redirect the natural course of conversation on the board, you're potentially stifling it.
Nevertheless, if you want to do that stuff anyway, know a bit of Perl, and feel like a small challenge, stickies are literally a five-line patch (if you don't want to draw icons for them).
(Incidentally, what is the difference between spam.txt and the "ban word" form? WAHa?)
Spam.txt is slightly more powerful (it can do regexps) and is easier to update in bulk. Also they give different error messages. So basically the banned words is more for dealing with problematic topics, and spam.txt is for spammers specifically. It's a bit redundant, I guess.
If one does not post any word, what can I do?
Post like only porn picture is making me nuts...
Regarding 694, is there any setting in Kareha?
Ok I figured that.
Im trying to work on Subback.html to show only thread name.
I changed suback.html but after I rebuild the cash it got back to the original style.
anyone can give me a idea where to change?
Can I use Kareha or Wakaba to make a board with no images? Just text discussion?
Thanx.
When I open the wakaba.pl file it just downloads it in my browser.
Chmod in the directory has been set to 755.
if i run perl wakaba.pl i get:
Status: 500
Content-type: text/html
<h1>Software error:</h1>
<pre>No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
</p>
[Mon Oct 12 16:49:14 2009] wakaba.pl: No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
[Mon Oct 12 16:49:14 2009] wakaba.pl: BEGIN failed--compilation aborted at config_defaults.pl line 126.
[Mon Oct 12 16:49:14 2009] wakaba.pl: Compilation failed in require at wakaba.pl line 17.
[Mon Oct 12 16:49:14 2009] wakaba.pl: BEGIN failed--compilation aborted at wakaba.pl line 17.
>>701
You need to configure the board first. Fix config.pl.
How to make nginx exec perl scripts?
>>703
Probably more productive to ask that on some nginx support board.
how do you sticky in wakaba?
[why is there no readme for it?]
where can i get the 4chan version of the software?
>>704 Of course I asked, now waiting for answ. May be there is special way for wakaba? :)
Just a quick question about the crypto code in the wakautils file, I'm sure I'd figure it out if I looked at the code (for multiple hours), but answering this could save me a fair bit of time:
Is the crypto code in the wakautils file used only for processing tripcodes?
Thanks, Random anon.
It's used for some other things, like masked IPs and bookkeeping in Kareha.
Well, I figured it out, but thanks for the confirmation, I don't really need it for what I'm doing. I'm making a stripped down version of wakaba that's anonymous-only that's lower bandwidth and less processor intensive.
It's also going to include some lossless image compression features if I get a little better at perl (well, it'll bump up the processor needs, but it's worth it for the bandwidth savings).
It's also going to be bastardized with some AJAX if I can get it to degrade nicely.
Here's hoping I can get the whole thing as small as possible (for the fun of it).
Well, since I have this tab open still, I might as well shoot you another question:
Would it be a really bad idea to take out the file scan from the utils file (haven't the exploits it scans for already been patched a while ago?)
I mean, it would be a-ok so long as everyone has a fairly up to date OS... that is unless these images exploit imagemagick.
>>711
It's a pointless idea. Not like it takes a matter of minutes or even seconds to scan the file.
is there any mod for no access via proxy?
i mean for kareha. i know nothing about perl and just start try to learn it after get interested with kareha board script. if someone know about the mod or know where to start modifiying in kareha script, please help.
oops my bad, i've added tons of proxy list in spam files
DBD::SQLite::db prepare failed: near "-": syntax error at /path/to/wakaba.pl line 1794, <FILE> line 5.
DBD::SQLite::db prepare failed: near "-": syntax error at /path/to/wakaba.pl line 1686, <FILE> line 5.
whats wrong?
>rew
>>719
You screwed up your board, and you're giving next to zero information.
server nginx/0.7.62
>[user@host o]# ls -g
>-rwxrwxrwx 1 nobody 9916 Окт 24 03:31 captcha.pl
>-rwxrwxrwx 1 nobody 12265 Окт 26 07:11 config.pl
>-rwxrwxrwx 1 nobody 8368 Окт 24 10:52 config_defaults.pl
>-rwxrwxrwx 1 nobody 894 Сен 12 2004 favicon.ico
>-rwxrwxrwx 1 nobody 2784 Окт 24 03:31 finish.pl
>-rwxrwxrwx 1 nobody 23633 Апр 16 2009 futaba_style.pl
>-rwxrwxrwx 1 nobody 592 Окт 24 03:31 getpic.pl
>drwxrwxrwx 2 nobody 176 Окт 20 02:40 include
>-rwxrwxrwx 1 nobody 819 Окт 22 06:32 oekaki_config.pl
>-rwxrwxrwx 1 nobody 1284 Окт 21 16:59 oekaki_strings_ru.pl
>-rwxrwxrwx 1 nobody 12665 Окт 22 06:33 oekaki_style.pl
>-rwxrwxrwx 1 nobody 1645 Окт 24 03:31 paint.pl
>-rwxrwxrwx 1 nobody 222502 Фев 26 2006 spainter_all.jar
>-rwxrwxrwx 1 nobody 2764 Фев 14 2006 spainter_normal.html
>-rwxrwxrwx 1 nobody 894 Сен 12 2004 wakaba.ico
>-rwxr-xr-x 1 nobody 48185 Окт 25 04:04 wakaba.pl
>-rwxrwxrwx 1 nobody 3072 Окт 26 07:13 wakaba.sql
>-rwxrwxrwx 1 nobody 32069 Апр 16 2009 wakautils.pl
wakaba.sql contains one empty table - tbl1
when iam trying to access wakaba.pl from browser it says
>Critical SQL problem!
perl says
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../wakaba.pl line 1794, <FILE> line 5.
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../wakaba.pl line 1794, <FILE> line 5.
>DBD::SQLite::db prepare failed: near "-": syntax error at /.../wakaba.pl line 1686, <FILE> line 5.
wakaba.pl
>1 #!/usr/bin/perl
>2
>3 use CGI::Carp qw(fatalsToBrowser);
>4
>5 use strict;
>6
>7 use CGI;
>8 use DBI;
>9
is there anyway to add custom redirector site just like in 2ch (like ime.nu)?
but the complete url still show the original url
err, what must i say...
if i can make it just like in 2ch it would be great
simply: can i add custom redirector site easily in config.pl?
i'm really confused with perl
>>721
try looking near lines 1794 and 1686 in wakaba.pl.
at 1686
1686 $sth=$dbh->prepare("CREATE TABLE ".SQL_ADMIN_TABLE." (".
"num ".get_sql_autoincrement().",". # Entry number, auto-increments
"type TEXT,". # Type of entry (ipban, wordban, etc)
"comment TEXT,". # Comment for the entry
"ival1 TEXT,". # Integer value 1 (usually IP)
"ival2 TEXT,". # Integer value 2 (usually netmask)
"sval1 TEXT". # String value 1
");") or make_error(S_SQLFAIL);
at 1794
sub table_exists($)
{
my ($table)=@_;
my ($sth);
1794 return 0 unless($sth=$dbh->prepare("SELECT * FROM ".$table." LIMIT 1;"));
return 0 unless($sth->execute());
return 1;
}
looks like i have to create tables manually? if so, how to?
>>725
what did you set SQL_ADMIN_TABLE
to?
you're getting a SQL syntax error. you probably put something screwy in the table name.
I am using "-" character in table names, lol. And I suppose the last question, I am using utf8 everywhere, but all non-eng strings from included files like strings_en.pl and header.html displayed incorrectly.
No verification code on record - it probably timed out.
Locale problem heuristically fixed, CONVERT_CHARSET must be false)
My Kareha Install sometimes shows the whole page in plain text instead of interpreting the HTML code. Example: http://www.3-ch.org/3ch/uni/kareha.pl/1255162076/
It seems to occur randomly and is browser independent.
However, when I remove the last /, it works normally. How can I fix this?
Somebody mentioned patches to enabled post editing over Wakaba...
Anyone can point me toward a nice one?
And yeah, read the warning, but this is for a small private board, and it's to supplement the directory dumper, advanced mode does let you add messages to every post, but it's kinda hard to know what to say when you can't see the picture...
I'd like something that easily lets me dump a batch of pic and then go back and edit the post to add messages to the ones I wanted to say something about...
I can't browse the wakaba.pl, it's only downloadble... even though I changed the permission to 755
What's wrong?
when i test out wakaba.pl it loads mybookface... wtf is goin on?!?!
when i test out wakaba.pl it loads mybookface... wtf is goin on?!?!
What the fuck is going on here? I have no idea what I'm doing
> The server encountered an internal error or misconfiguration and was unable to complete your request.
you obviously misconfigured your server.
How to create "To Thread / To Board" radio buttons?
Quick dirty question:
Is there a way to disable Browser Caching?
Right now my browser is caching the boards and when replying it doesn't update and you have to manually press F5.
Thank you ^^
>>701
I'm having the same problem. I've been researching about it and I've gotten myself confused about what needs to be done. If somebody could please give a simple answer, that'd be great, thanks.
Hey everyone, after much struggling I managed to get passed the 500 error.
But now when I try to access the site, I just get the directory. Trying to open wakaba.pl makes my browser try to download it instead of generating the html.
In the error log I get this:
[Wed Jan 06 15:28:06 2010] [error] [client 24.162.***.***] client denied by server configuration: /home/ritsucha/public_html/config.pl
I've already configured the config and setup a database (unless I did it wrong :/)
You need to configure Apache to run CGI scripts properly. How to do that depends on your setup and where you're hosted.
http://wakaba.c3.cx/docs/docs.html has some hints, but it's really up to you to figure out how to do that.
Hey, can anyone help me here?
I've added the following lines to the bottom of httpd.conf;
# Perl
Options +ExecCGI
AddHandler cgi-handler .cgi .pl
I've made sure that wakaba.pl has the permissions 0755 and the hashbang is set to /usr/bin/perl (I checked, and the file does exist there) but I still only see the source code when I run wakaba.pl. I've also enabled mod_perl in httpd.conf (I'm not sure if you're supposed to or not) but it made no difference. Does anyone know what the problem is?
I'm using XAMPP on Ubuntu 9.04, if it helps. And yes, I've been restarting apache after each change to httpd.conf.
Alright, I've set the permissions correctly and everything. I've correctly set up the mysql databases and linked them in config.pl.
I've checked again and again and I know the database name, user name, and host are all correct, yet I still get a "SQL connection error" message.
Here are example configs to fix the Kareha + nginx issues folks like >>600 experience. A catchall for .pl files won't work, kareha.pl and admin.pl must be explicitly set in the nginx config.
location ~ kareha.pl {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/path/to/perlfcgi.socket;
fastcgi_param SCRIPT_FILENAME /path/to/webroot$fastcgi_script_name;
}
location ~ admin.pl {
include /etc/nginx/fastcgi_params;
fastcgi_pass unix:/path/to/perlfcgi.socket;
fastcgi_param SCRIPT_FILENAME /path/to/webroot$fastcgi_script_name;
}
The absolute path of the files may be specified as well...
location = /path/to/kareha.pl
... but the first two examples simplify a multi-board setup.
Enjoy.
Some noob questions about wakaba.
Why wakabamark doesn't working with russian charsets? Also, javascripts don't working as well. Can't change style or inasert post number in comment.
i want to use kareha image mode, but every time i try to upload an image (example: 800x600px 37KB image) there are no thumbnail at main page and it said 'No thumbnail'
i only change file config.pl in 'ADMIN_PASS' and 'SECRET' the rest of config variable are still default.
help please
Software error:
"use" not allowed in expression at config.pl line 1, at end of line
syntax error at config.pl line 1, near "to use shift"
"use" not allowed in expression at config.pl line 12, at end of line
BEGIN not safe after errors--compilation aborted at config.pl line 13.
Compilation failed in require at wakaba.pl line 16.
BEGIN failed--compilation aborted at wakaba.pl line 16.
>>750
Вакаба работает с русской кодировкой. Переименуй файл wakaba3.js в wakaba.js.
//Wakaba work with russian charset. Rename wakaba3.js in wakaba.js.
Отписался в платиновом треде
How do I access wakaba.pl via my webbrowser? it only wants to save/open it but I can't really figure out how it should create an .html.
You're going to need to play around with it on the server side. That happened to me and I had to play around with apache.
I installed wakaba and all. It created the html pages and everything seemed to be working until I tried to upload a picture.
It spat out this error:
"Software error:
CGI.pm: Server closed socket during multipart read (client aborted?)."
I haven't worked with apache2 a lot or most web host stuff before. Any ideas what's going on?
Maybe Apache is configured to block large uploads or something?
Can't find anything but that doesn't mean there is. -
Woops, I intended to make my post here but for some reason made a new thread. That was a new and interesting brain fart. Anyways, my oekaki board was working perfectly fine for a while it seemed, but now every so often it's giving this:
Software error:
Can't read uploaded file at finish.pl line 85.For help, please send mail to the webmaster,
giving this error message and the time and date of the error.
Any ideas? Thanks!
I don't know how the data base of kareha is designed. Maybe it is impossible to do this: Is it possible to limit the file size of the files that a kareha message board creates to a specific value? (What is the smallest possible size?) Would this imply some restrictions to, for example, the length of threads? Thank you for your help.
the admin and pass were defined in config.pl yet i cant install wakaba, any ideas?
Hello, I'm having a rather annoying problem. Whenever I edit some things in my wakaba.html or index.html (whichever one is the HTML_SELF), all the data I added gets erased whenever I post or add a new picture. Is there any way to fix this?
Those files are autogenerated, so any changes will always be lost. To make actual changes, edit the templates or include files.
I keep getting this:
Software error:
Can't locate config.pl in @INC (@INC contains: . C:/perl/lib C:/perl/site/lib) at E:\Domains\[url]\wwwroot\wakaba\wakaba.pl line 16.
BEGIN failed--compilation aborted at E:\Domains\[url]\wwwroot\wakaba\wakaba.pl line 16.
I don't understand what's wrong?
>>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.
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.
> What do ?
Speak proper English, for one.
Stop trying to run everything under cgi-bin
.
Fix your clearly broken CSS paths.
Probably also learn how web servers work.
I use Heliohost, every perl script work but it give me an error:
No ADMIN_PASS defined in the configuration at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314.
BEGIN failed--compilation aborted at config_defaults.pl line 133.
Compilation failed in require at kareha.pl line 13.
BEGIN failed--compilation aborted at kareha.pl line 13.
line 133 of config_defaults it's an "}"
I changed password and now it says:
Can't locate wakautils.pl in @INC (@INC contains: . /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8) at templates.pl line 3.
BEGIN failed--compilation aborted at templates.pl line 3.
Compilation failed in require at kareha.pl line 14.
BEGIN failed--compilation aborted at kareha.pl line 14.
It randomly works now. Thanks Guys and good luck.
>>974
I am sorry for my poor English...
I am going to put back by default the css directory, and I am going to post some configs (screenshot).
I would really like to use kareha, because there is little of French txtboard and to make something good.
>>980
Move that stuff out of cgi-bin, and in fact do not even have a cgi-bin.
You don't need to fiddle with probably 99% of config.pl, so yeah, leave the CSS_PATH etc. alone.
also, je m'en fiche si votre anglais c'est imparfait, mais d'ecrire comme "what do" vous ressemblez un /b/tard, et pas capable de configurer un textboard
>>981
When the script will work I would begin to configure Textboard, I have already set up textboard php. The problem it is the perl language, moreover my host loads this language only in the cgi-bin. That have to I make?
>>982
Probably a good idea to look for another host, cgi-bin is the enemy of a proper and functioning installation.
Sure you can't set it up with a .htaccess or something?
>>985
This was the bettest french host...lol I'm going to open a dreamhost account! Thx for support all.
Wakaba
i turned on function stops Wakaba from renaming image files, but the cyrillic characters look really weird, like укр.jpg.
Can you help me make wakaba show cyrillic names correctly?
will anyone answer me?
>>989
i do use!
i set use encoding 'utf-8' in the beginning of Strings_en, but it does not help
>>990
Check your server's configuration. The files have to be served as UTF-8, and that is outside of Wakaba's realm. Specifically, the Content-Type
header needs to have a charset=utf-8
.
I can't understand how to use open proxy check feature. Can you point me where can I read about configuring wakaba to do it? Exactly what external proxy checking program should I use, this one http://www.corpit.ru/mjt/proxycheck.html ?
No ADMIN_PASS or NUKE_PASS defined in the configuration at /usr/lib/perl5/5.8.8/CGI/Carp.pm line 314.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at /var/www/mydomain/imageboard/wakaba.pl line 17.
BEGIN failed--compilation aborted at /var/www/mydomain/imageboard/wakaba.pl line 17.
Keep getting that error. Yes, I've defined ADMIN_PASS and NUKE_PASS in config.pl
>>993
have you really defined them, or are the lines where you think you defined them still commented out?
They're not commented out, nor is there whitespace at the start of the line.
>>993
Are you defined to all *.pl files 0755 chmod?
I configured config.pl my way, set all needed .pl files to executable and ran kareha.pl on perl. It just created and index.html page, nothing more. When I access it, it's a perfect page, but it's static, which means that if I try to post anything, it won't do anything... What have I done wrong?
>>997
It's supposed to create static pages and it will update when someone posts.
>>997
Just guessing: if you did perl kareha.pl
or something similar, delete that html file and try again from a web browser.