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.
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.
I've searching and seems to be that the GCI module has a bug since the version 3.15, someone can say me what verion of the module you're using.
The bug report is this http://rt.cpan.org/Public/Bug/Display.html?id=18677
You should rebuild caches.
Note the use encoding "shift-jis";
at the top of strings_jp.pl
. You should change that to whatever encoding you used for that file, which may be different from what you use on the actual board!
Oh, and also note the no encoding;
at the end.
Hi, getting a problem with installation; I get a 'forbidden' error, and when checking logs get this:
[Thu Jun 15 18:37:01 2006] [error] [Thu Jun 15 18:37:01 2006] kareha.pl: [Thu Jun 15 18:37:01 2006] templates.pl: [Thu Jun 15 18:37:01 2006] templates.pl: [Thu Jun 15 18:37:01 2006] wakautils.pl: [Thu Jun 15 18:37:01 2006] wakautils.pl: [Thu Jun 15 18:37:01 2006] INET.pm: Can't locate IO/Socket/INET.pm in @INC (@INC contains: . /usr/home/builder/pb_work_dir/plesk7.5.4_hotfix4_7.5.4/psa/release/dist/usr/local/psa/apache//site_perl/5.00503/i386-freebsd /usr/local/psa/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/psa/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach /usr/libdata/perl/5.00503 /usr/local/psa/apache/ /usr/local/psa/apache/lib/perl) at wakautils.pl line 461.\n[Thu Jun 15 18:37:01 2006] kareha.pl: [Thu Jun 15 18:37:01 2006] templates.pl: [Thu Jun 15 18:37:01 2006] templates.pl: [Thu Jun 15 18:37:01 2006] wakautils.pl: [Thu Jun 15 18:37:01 2006] wakautils.pl: BEGIN failed--compilation aborted at wakautils.pl line 461.\n[Thu Jun 15 18:37:01 2006] kareha.pl: [Thu Jun 15 18:37:01 2006] templates.pl: [Thu Jun 15 18:37:01 2006] templates.pl: BEGIN failed--compilation aborted at templates.pl line 3.\n[Thu Jun 15 18:37:01 2006] kareha.pl: BEGIN failed--compilation aborted at /usr/local/psa/home/vhosts/xxxx.net/httpdocs/kareha/kareha.pl line 14.\n
(host edited out).
I have no access to /kareha/ as it says it's "blocked by rule." unsure as to how to change this :x.
:( ty
That's very strange. I have no idea what would cause that. For rules.html, hmm... That might actually be slightly broken. I'd have to investigate that too. If you have a program to convert a file to use HTML entities instead, that should work, though.
Your Perl version is ancient. Wakaba used to work on 5.005, but recent developments have apparently broken it (I don't have anywhere to test it on old versions any longer).
Either upgrade your Perl, comment out the function that uses Socket::INET (it's not important), or wait until I fix it. That might take a while, though, as I'm pretty busy with several things.
Nobody else have problems with CGI.pm?
Can't locate Encode/ConfigLocal.pm in @INC (@INC contains: . /usr/local/lib/perl5/site_perl/5.8.6/mach /usr/local/lib/perl5/site_perl/5.8.6 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.6/BSDPAN /usr/local/lib/perl5/5.8.6/mach /usr/local/lib/perl5/5.8.6) at /usr/local/lib/perl5/5.8.6/mach/Encode.pm line 52.
Please send mail to this site's webmaster for help. Content-Type: application/xhtml+xml; charset=utf-8
Is the error I get whenever I create a new post or a new topic.
Thanks in advance. :)
looks like your perl installation is broken.
What >>177 said.
I have a bit of a baffling problem: I've used Wakaba successfully with oekaki, but now I need to move it to a different directory. Upon doing this, I receive "File does not exist" errors in the error log, and the paint applet refuses to load. Is there a path somewhere in the configuration files I'm forgetting to set? Nothing of relevance seems to be in the oekaki config files.
Moving the folder back to where it was fixes the problem. The simplest "move" - renaming the directory and rebuilding caches doesn't work either. Thanks for reading.
You probably just need to rebuild caches. The Manage link will point to the wrong place too, so fix it manually.
I'm sorry I wasn't clear - rebuilding caches fixes everything but the applet loading. The error log looks for the jar file in the right place, but reports as not being able to find it.
Most mysterious. Link?
hi, i am running wakaba from the last version under lighttpd 1.4.4 perl 5.8.8.
when i'm trying to post a new thread via the wakaba.html form, it forwards me back to the wakaba.html page, without including the new thread.
tried to delete the wakaba.html to see if the wakaba.pl will create a new one, no success.
thx :]
You need to get lighttpd to tell the browser not to cache the pages. Also, a reload should show the new thread.
ok, i have switched to apache 2.2, and still the post i tried to submit refuses to appear in the wakaba.html page. maybe i should change the wakaba.html permissions to 777 so the webserver could write the new topic into that page?
Did you try just reloading the page? If the script can't write to the file, it will complain.
i tried, no change. it seems like the HTML page sends the POST details to / (or /wakaba.html) instead of /wakaba.pl.
another thing I've paid attention to (a bug?), is the need to write your admin password in the url bar (the form sends a rhandom password)... not so secure imo :S
you can see the problem at http://69chan.ath.cx ...
thanks again :]
The page isn't built right - did you run wakaba.pl from the command line? That will break the page. Also, going to http://69chan.ath.cx/wakaba.pl gets you an SQL connection failure so it wouldn't work anyway. First, fix your SQL settings, then go to http://69chan.ath.cx/wakaba.pl?task=admin and log in and rebuild caches. Also, the admin password is encrypted in the URL bar. This is normal.
okay, i changed the permissions so the webserver can create the wakaba.html and i have fixed the sql settings... everything works now, thanks alot! ^_^
I tried to rebuild cash but I got the message like this.
Untile today it did not happen to us.
Out of memory during "large" request for 1052672 bytes, total sbrk() is 28467200 bytes at wakautils.cgi line 973.
I am using kareha 3.1.0 at http://www.no1game.net/bbs/index.html
Is this something to do with setting ?or do I have to try other
method to cope with ?