This thread is for all your simple questions about installing and running Wakaba or Kareha, that just require quick answers. Please don't create any more new threads for issues like that, post them in here instead.
How do I ban people in Kareha exactly?
You don't. You can, however, ban them with Apache by adding lines of the format Deny from xx.xx.xx.xx
to your .htaccess file. Or you can try applying the changes listed in http://wakaba.c3.cx/sup/kareha.pl/1124340406/ to add banning functionality. I'll probably try to roll some of that into the next version, whenever I get some spare time to work on it.
Can you ban them from posting but still let them browse the board?
I'm getting this.
This board has not been configured yet.
Things you need to do to get the board running:
Can I've done the first. Can someone please tell me exactly what I change on config.pl and what do I change it to?
If you're getting that, you haven't done the first. Otherwise, you'd be getting a different error.
But I did do the first. Unless I did it incorrectly. The folder looks like this now.
The threads show up on the main page, but not the actual post itself. Whats going on?
If you mean REPLIES_PER_THREAD, no, its at its default of 10.
Did you modify the templates at all?
The front page is being generated with the correct number of posts, but the posts only consist of a bunch of spaces. What exact changes did you make from the base install?
I copied the mode_message stuff into the folder and edited the config.pl file.
Its something in the config file, I copied it again and its working.
Weeeeird. Well, as long as it works...
Software error:
Bareword "SECRET" not allowed while "strict subs" in use at captcha.pl line 115, <FILE> line 4.
BEGIN not safe after errors--compilation aborted at captcha.pl line 148, <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.
What's this?
Your installation is still broken.
2 Kareha Questions:
1) Is it possible to remove the Board Look section and just make it use Futaba style?
2) Is there a place I can define what html tags are allowed? It would be cool if I could allow people to post things like google or youtube videos directly on the board.
Your installation is still broken.
Obviously. Any idea how or why, or how to fix it?
>>82
1) remove this from templates.pl:
<div class="adminbar">
<loop $stylesheets>
[<a href="javascript:set_stylesheet('<var $title>')"><var $title></a>]
</loop>
-
2) set ALLOWED_HTML in config.pl:
use constant ALLOWED_HTML => (
'a'=>{args=>{'href'=>'url'}},
'b'=>{},'i'=>{},'u'=>{},'sub'=>{},'sup'=>{},
'em'=>{},'strong'=>{},
'ul'=>{},'ol'=>{},'li'=>{},'dl'=>{},'dt'=>{},'dd'=>{},
'p'=>{},'br'=>{empty=>1},'blockquote'=>{},
)
>>84
oops, i was a little careless with my copypasta... leave the <div class="adminbar">
line in.
Do it over. You've obviously got files all mixed up.
Hi, everytime I run wakaba.pl I get Error: Could not write to directory.
I asume it means it cant make wakaba.html can anyone help me fix this?
Fix permissions. See the docs at http://wakaba.c3.cx/docs/docs.html for more info.
Short version: set the directory permissions to 777.
I tried kareha message and image mode versions.
I liked message mode better, but:
I would like to have some functionalities of image mode in the message mode board. For example: password for user post deletion.
in the message mode board, all posts have a [del] link, and i guess you can delete your own messages based on a cookie? I prefer the password because of users that connect from different machines...
Also, I can't see any admin link in my site. check it out: http://www.pixelorama.com.ar/messk/ and if I type kareha.pl?task=admin I get a "Script error; no task speficied."
For Kareha, the admin script is a separate script that you can copy out of the extras
folder. If you want passwords, you can hack them yourself, but I most probably won't do it for the main distro because it's a bit too inelegant. (You basically need to change the password form fields in the template from type="hidden"
to type="password"
.
Software error:
Insecure dependency in `` while running with -T switch at wakautils.pl line 1073.
I am getting this error when attempting to post in my Imageboard
Uh, you should set up your server to stop running perl with the -T switch.
I have no idea why it'd do that in the first place, so don't ask me.
How hard would it be to make Kareha run with Perls taint checks?
Dunno, I never actually bothered to learn how to deal with taint checks properly, so I never bothered. I did try to read up on it and it sounded like more annoyance than it was worth, so I never did anything about it.
I have some kareha boards set up on my site, and there is something about it thats really annoying me, and I'm not sure where the problem lies. I keep seeing old, outdated versions of the board, unless I hit the refresh button in firefox.
For example, I can go and make a post on my board, close firefox, then open it back up and load my board, and i wont see the post I just made unless I refresh. I've never noticed this problem on any other sites or boards.
You need to set up Apache to tell browsers not to cache pages. Rename example.htaccess
to .htaccess
to do this - however, it will only work if mod_headers is loaded on the server.
>>95
you could try changing the #! line to:
#!/usr/bin/perl -t
and then adding this line after it:
no warnings qw(taint);
lol it works now, the problem was that the -t in the hash bang was a capped T, after I made it lowercase it worked.
There is now another problem. The script is not creating the reply pages needed. e.g /res/1.html does not exist.
I can't get my kareha or wakaba boards to convert images to thumbnail, so I'm currently using stupid_thumbnailing
I have ImageMagick installed and it works fine from cmd.
Any suggestions?
Yes, post in the right thread.
Apart from that, what OS?
>>106
Sorry :(
Windows server (WAMP5
+ActivePerl
+ImageMagick
)
:-/
btw, "install linux" is not a very good asnwer for me...I've heard it a hundred times already T_T
...I know there is a way to get this to work on windows...I'm just an internet noob I guess :-/
Any healp greatly apprecieted :3
Running on Windows seems to lead to random and difficult to track down problems. Good luck with that.
http://wakaba.c3.cx/docs/docs.html#RunningOnWindows has some hints, and maybe there are some others if you dig through the board, but beyond that, I can't really say.
I would like to place ads on my kareha board. They are text ads and are generated from some javascript code. If I put it in one of the include files though, it doesnt appear on the board. Normal text that I place in there shows, but the text from the javascript doesn't.
This is probably because they are google ads, and don't allow stripping out newlines, which the template code does by default. There's an option in config.pl to turn this off, but I forget the name. STRIP_NEWLINES
or something.
Why it strips them, or why Google ads won't work? I don't know about the latter, but the former is because Kareha needs posts on a single line, so I designed the template engine to strip them (because I did not exactly feel like writing templates on a single line), and so that behavior carried over into other places where it wasn't strictly necessary, but didn't really hurt either (except for breaking the Google ads).
Using debian, I get the following after trying to create a new database using sqlite.
hanzo# ./wakaba.pl
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: admin(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: admin(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: proxy(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: proxy(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: comments(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
[Thu Apr 20 23:59:12 2006] wakaba.pl: DBD::SQLite::db prepare failed: no such table: comments(1) at dbdimp.c line 269 at ./wakaba.pl line 1802, <FILE> line 3.
Status: 303 Go West
Location: wakaba.html
Content-Type: text/html
Do you get that repeatedly, or only the first time? If the latter, that's perfectly normal. If the former, try running the command-line sqlite tool to see what's actually in the database.
PS: This thread exists.
So...is there anyone running on windows that might be able to help me with thumbnailing?
I've tried looking at the problem myself, but to be honest, I don't really know a lot about perl. I can get convert
to execute, so ImageMagic isn't the problem. I'm just so confused :-/
Any help at all would be greatly appreciated.
(I read #RunningOnWindows over a few times...it doesn't help me, since perl is in the right dir and imagemagick works.)
>>115
If you got Q8 like "RunningOnWindows" recommended, try getting Q16. I /think/ that's how mine started working, but to be honest, I have no idea why anything at the beginning of the entire setup process was as difficult as it was or even started working.
I have made several other wakaba and kareha boards without any problem on Linux systems. However, I recently moved to a new server that uses Windows Server. I had several issues that I already sorted out (DBI wasn't installed), and now there's only one left. When I try to access the management panel, it hangs for about 2 minutes and then says:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers.
I don't have administrator access, so I can't easily get more information, but I will try.
Any clues?
Can you post to the board? Sounds a bit like it locks up at some point and then times out, probably when trying to access the database.
Man, I have no idea what's going on there. I suggest you follow the program flow for the login procedure, and put in die
statements along the way to see how far it gets before it locks up.
What is it in wakaba's .htaccess that causes this to happen:
http://imgboard.eleochan.org/statistics/
I noticed that when I removed wakaba's .htaccess this didn't occur when static stats pages were generated (with both awstats and webalizer). Since I suck at .htaccess I figured you'd be able to tell me what I can remove/edit without messing everything up.
Wakaba is currently installed to the root folder so it's imgboard.eleochan.org/ so don't really have options as to where to put /statistics instead.
I'm so sleepy.
>>120
I did as you suggested, here's the line of code that is causing it:
print "Status: 303 Go West\n";
in wakautils.pl
when I told it to die just before this, it died properly
when I told it to die just after, it gave the original error, but no long pause
It's fixed
but I had an odd little problem
I changed ALTERNATE_REDIRECT to 1 in config, but it didn't actually use the alternate redirect
so I changed the code in wakautils.pl to force it to use it, and now it works
Thanks for pointing me in the right direction
.htaccess is set up to send files as application/xml+xhtml
when the browser supports it, which causes the browser to parse it much stricter. It looks like you edited the template and broke the <!DOCTYPE
statement.
Oh yeah, I remember now that ALTERNATE_REDIRECT
is sometimes needed on Windows machines. But I'm not sure why it won't use it properly. I'll look into it.
>>124
Nuh uh, I didn't do anything to the template.
I had to comment out the last block from wakaba's .htaccess
#<IfModule mod_rewrite.c>
#RewriteEngine On
#RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
#RewriteRule \.html$ - [T=application/xhtml+xml;charset=utf-8]
#</IfModule>
Oh wait, I misunderstood what was happening. The web statistics tools don't generate valid XHTML, so when Apache tries to send them as application/xhtml+xml
, Firefox activates the strict parser and breaks.
I guess the simplest solution is to just comment those lines out like you did.
Oh okay I get what's going on.
I have two questions. How much does bandwidth does kareha use during peak usage? And also, is there any way for me to change the thread list at the top of each page so that it displays in a table, like on world4ch?
>>128
4-ch goes through about 5-15kb/s, that's anywhere from 240MiB to several Gb per day. We average it out to be close to 1GiB a day*.
If you just want a to put each entry on its own line, you can add a display:block
to the a
elements in the thread list in the CSS files. I forget where exactly... threadbox a { display:block }
maybe.
If you want an actual table with with more data, you'll have to edit template.pl
to do that.
>>129
How many unique users do you have? I'm betting I won't have as many unique users as 4-ch for quite awhile, so the best way I could approximate how much bandwidth my board would use is if I knew the average bandwidth used by each user, or maybe per hit.
>>130
Thanks, now I understand. By the way, congrats on the new version!
Thanks for answering these questions for me!
is there a way to make a link to web pages that have some name in front of it like:
<a href="example.com" >example sight</a >
that results in a the text "example sight" to be linked to example.com?
Click "More options..." and pick HTML formatting.
I've done everything, installing Perl and Apache, fixing the Hashbangs (though I don't get how you're supposed to set permissions to 755, as I can't understand anything on the Kareha Quickstart page). Still, it does not work, nothing does. I've read through the documentation time and time again and I personally don't find it detailed enough; it's confusing and I think I'm placing the wrong files in the wrong directories. I've been at this for a week now, as I'd like to get a Kareha-site up and running for a few mates of mine.
So, is there a more detailed walkthrough on setting up your own Kareha image board? Or am I to keep trying to decipher the documentation? Thanks.
First off, use this thread for support requests.
Second, unless you tell us what problems you have, there's not much we can do to help. Setting up Kareha itself is a very simple task, and there's not much need for a walkthrough. The trick part is usually getting CGI scripts working in the first place, if you're installing a server from scratch. Guides for how to do that are available elsewhere on the net. I don't have any good links at hand, though, but Google will help, and maybe somebody else could mention a good guide?
Also read the 500 Internal Server error thread for hints: http://wakaba.c3.cx/sup/kareha.pl/1109033191/ - especially post 4. Try to get the test program working first. Only when that works should you start installing Kareha.
Ok, I know that to install wakaba i need either a server or a host. Only problem is I have a server and i dont know how to go about installing wakaba. Im new to this and need some help.
wakaba.zip
.config.pl
(The SQL_
options and ADMIN_PASS
at the very least).wakaba.pl
(and maybe captcha.pl
) to 755, and the permissions on the directories to 777.i need an over all better description on how to do this exactly. Very precise cuz i have no idea what im doing but i want this to work its causing me to lose sleep.
Then I think you'll be better off looking for a general tutorial on how to run CGI scripts. When you've got that down, the rest is easy.
Ok, I'm having a problem in my wakaba. I have uploaded it to my host but whenever I post anything I have to hit F5 to refresh to see my post. I tried uploading and renaming example.htaccess to .htaccess but it still doesnt works, any ideas?
Forgot to say, Im using Firefox
Im sure it has to be something about Firefox keeping info on its cache, because when I delete all the info thats there I see all the messages I posted without problems...
Well, it caused an 500 Internal Server Error... I guess i'll have to change my host or ask them to install that mod...
Anyways, thanks for your help!!
>>144 is already in example.htaccess, but wrapped in <IfModule> so it won't 500 when the module isn't installed. And yes, what you need to do is ask the host to enable mod_headers.
Why can't you just use "Cache-Control: must-revalidate"? The rest are just repetition of that and won't even use If-Modified-Since.
likely just backups to make sure it works on all browsers?
>>149 is close to the truth. It's there to ensure it works on all browsers and all proxies.
RFC2616 is nice, but we're dealing with numerous different products here.
any good sources related on learning cgi scripts?
I'm having an odd problem with Kareha 3.1.0's captcha system: I keep getting the same captcha image repeated, but after the first time, entering it returns "wrong verification code entered". Reloading the image, clearing the browser cache, or disabling caching does not solve this--but deleting the captcha cookie does. Any ideas?
That is very strange. I really don't have any idea what's going on. After deleting the cookie, does it work once, or several times?
I had wakaba running on one server and worked perfect, but now i'm migrating to another server and when execute the wakaba.pl in the server log I get errors like:
ModPerl::Registry: Bareword "SQL_TABLE" not allowed while "strict subs" in use at
And the output of the code, the page, says that can't connect to the sql database (I'm using sqlite).
Any clues of what can be happening? Thanks.
You're using mod_perl, which isn't supported yet.
So what i must use in the server for handle this perl scripts?
I can change the configuration of the server.
Just the usual Options +ExecCGI
and AddHandler cgi-script pl
. Somebody correct me if I misremembered those lines as usual.
Thanks :)
Now the board, the execution of wakaba.pl, works fine, but when i try to upload a new picture i get this error :S
Constant subroutine main::S_HOME redefined at /usr/lib/perl5/5.8.3/constant.pm line 108, <FILE> line 5.,
I need to change something more?
Sorry for double posting but i can't edit the anterior message, and the end of this types of error also say:
wakaba.pl: CGI.pm: Server closed socket during multipart read (client aborted?)
>>154
Just once.
I don't get it either. As I understand how the captcha script works, it sounds like the cookie for a new image is being set, but the old image is still being cached and displayed. But that doesn't explain why clearing the cache does nothing, nor why clearing the cookie allows a new image to load.
Maybe my ISP or webhost is doing some sort of stealth caching. I'll look into that.
You have a wonky Apache setup, it sounds like, but I'm not enough of an Apache hacker to say what's wrong.