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