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/
>>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?