The Wakaba and Kareha support thread, part 2 (1000)

1 Name: !WAHa.06x36 : 2007-10-11 06:19 ID:K4vOYfq0 [Del]

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/

773 Post deleted by moderator.

774 Name: Anonymous : 2010-02-01 14:12 ID:yiyOAvk4 [Del]

>>771
uhm, where's that at? fuck I don't even know if I can edit that on this host.

775 Post deleted by user.

776 Name: Anonymous : 2010-02-02 17:06 ID:GTRuts9c [Del]

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

777 Name: !WAHa.06x36 : 2010-02-02 17:34 ID:Heaven [Del]

>>776

That's what you get. You do any customizing like that by hand. Install multiple copies, edit templates and includes, and so on.

778 Post deleted by moderator.

779 Name: Anonymous : 2010-02-04 00:42 ID:GTRuts9c [Del]

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?

780 Post deleted by moderator.

781 Post deleted by moderator.

782 Post deleted by moderator.

783 Post deleted by moderator.

784 Post deleted by moderator.

785 Post deleted by user.

786 Name: Anonymous : 2010-02-21 15:47 ID:Heaven [Del]

787 Name: Anonymous : 2010-02-21 15:48 ID:hgp/h576 [Del]

>>786
i meant to bump this...

788 Post deleted by moderator.

789 Name: Anonymous : 2010-03-12 05:31 ID:RMghOGCf [Del]

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.

790 Name: Anon : 2010-03-25 15:08 ID:VqC5r0op [Del]

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?

791 Post deleted by user.

792 Name: Pedohater : 2010-03-26 05:24 ID:vaNfkHyY [Del]

How about removing the CP from guns category?!?!?!

793 Name: weetabix : 2010-03-28 08:21 ID:3dQO8A+A [Del]

Hi guys! Just wanna ask a noob's question:
What kind of SQL database and in what collation should I make for Wakaba/Kareha?

794 Name: Anonymous : 2010-03-28 13:05 ID:Heaven [Del]

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

795 Name: Anonymous : 2010-03-31 18:17 ID:mnrbeJWf [Del]

How can I disable auto-linking in Kareha...?

796 Name: Anonymous : 2010-04-01 00:50 ID:mnrbeJWf [Del]

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

797 Name: Anonymous : 2010-04-01 19:41 ID:XcBctTa3 [Del]

hey

798 Name: Anonymous : 2010-04-04 05:39 ID:Heaven [Del]

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

799 Name: Anonymous : 2010-04-04 13:04 ID:mnrbeJWf [Del]

>>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 Name: Anonymous : 2010-04-04 19:19 ID:Heaven [Del]

>>799

<a target="_top" ...>

801 Name: Anonymous : 2010-04-04 20:35 ID:mnrbeJWf [Del]

>>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;

802 Name: Anonymous : 2010-04-05 03:55 ID:Heaven [Del]

>>801
Yes, edit the source. Should be obvious enough, find where it writes links and change it.

803 Name: Codecub : 2010-04-06 13:23 ID:6xVj0PVP (Image: 942x703 png, 337 kb) [Del]

src/1270585400974.png: 942x703, 337 kb

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

804 Name: Anonymous : 2010-04-08 23:58 ID:Heaven [Del]

>>803
Can't you idiots come up with something new and interesting instead of blatantly copying 4chan and its frontpage all the damn time?

805 Name: Anonymous : 2010-04-10 19:02 ID:9NZ+PXOK [Del]

I am having trouble running kareha.pl from my web browser. It only displays the source code. All folders and files are CHMOD to 755. I verified that I can run perl scripts with this simple code the user >>141 offered before:

#!/usr/bin/perl
print "Content-Type: text/plain\n\n";
print "it works";

Please someone help me create the HTML pages!

806 Name: Anonymous : 2010-04-14 08:52 ID:cVlpsD0U [Del]

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

807 Name: !WAHa.06x36 : 2010-04-14 09:13 ID:Heaven [Del]

>>806

That sounds mostly like some kind of horribly broken server.

808 Post deleted by user.

809 Name: Anon : 2010-04-16 12:45 ID:8GEBsYSr [Del]

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

810 Name: Anonymous : 2010-04-16 20:07 ID:Heaven [Del]

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

811 Name: Anonymous : 2010-04-17 06:27 ID:AXmtZR5h [Del]

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

812 Name: : 2010-04-25 05:47 ID:Heaven [Del]

You really should catch those right to left-overrides.

813 Name: Anonymous : 2010-04-27 06:57 ID:Heaven [Del]

>>812
Awwww, why? It's entertaining.

814 Name: Anonymous : 2010-05-08 18:08 ID:5uAS5BhN [Del]

There a way to post as an admin?

It's a nub question, but if there's a way, I'd like to know.

815 Name: Anonymous : 2010-05-09 03:46 ID:Jf9eB6qB [Del]

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

816 Name: Anonymous : 2010-05-10 11:02 ID:3Ggr/qz0 [Del]

i dont have any thumbnails, why is that?

817 Name: Anonymous : 2010-05-11 04:05 ID:KOqayyLq [Del]

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?

818 Name: Anonymous : 2010-05-11 05:16 ID:Heaven [Del]

>>817
Edit your templates.pl. The html files are of course generated by wakaba.

819 Name: Anonymous : 2010-05-11 15:34 ID:2rP76EC+ [Del]

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.

820 Name: Anonymous : 2010-05-11 15:37 ID:2rP76EC+ [Del]

>>819
I mean, the threads must always remain in order of they're creation.

821 Name: Anonymous : 2010-05-13 07:57 ID:Heaven [Del]

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

822 Name: Anonymous : 2010-05-13 11:29 ID:vNmlQBsR (Image: 705x769 jpg, 69 kb) [Del]

src/1273775394252.jpg: 705x769, 69 kb

>>821
Thanks man.

823 Name: !WAHa.06x36 : 2010-05-13 11:47 ID:Heaven [Del]

>>821-822

Why not just read the config and/or the code you commented out, and set MAX_RES to 0?

824 Name: Anonymous : 2010-05-13 12:24 ID:Heaven [Del]

>>823
why bother checking $parent and $email=~/sage/i if you're not going to bump the thread anyway?

825 Name: Anonymous : 2010-05-13 13:43 ID:vNmlQBsR [Del]

How to disable Email field?

826 Name: Anonymous : 2010-05-13 14:39 ID:Heaven [Del]

>>825
FORCED_ANONYMOUS

827 Name: Anonymous : 2010-05-13 15:28 ID:vNmlQBsR [Del]

>>826
This also removes the Name field.
I only want to remove Email.

828 Post deleted by moderator.

829 Name: Anonymous : 2010-05-24 12:23 ID:e1RtSeQL [Del]

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.

830 Name: !WAHa.06x36 : 2010-05-24 15:20 ID:Heaven [Del]

> Ran perl wakaba.pl in commandline

Don't do that. It breaks things.

831 Name: Anonymous : 2010-05-25 13:15 ID:gby7m83e [Del]

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

832 Name: Anonymous : 2010-05-25 17:12 ID:Heaven [Del]

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

833 Name: Anonymous : 2010-05-25 17:15 ID:Heaven [Del]

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

834 Name: Anonymous : 2010-05-26 14:28 ID:HYTi3n6n [Del]

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

835 Name: Anonymous : 2010-05-26 14:47 ID:HYTi3n6n [Del]

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.

836 Name: !WAHa.06x36 : 2010-05-26 16:27 ID:Heaven [Del]

>>834

One more time: Do not use mod_perl.

837 Name: Anonymous : 2010-05-27 00:23 ID:hnFKrfXq [Del]

>>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 :(

838 Name: Anonymous : 2010-05-27 08:59 ID:Heaven [Del]

839 Name: Anonymous : 2010-06-15 14:28 ID:oDRdPdM6 [Del]

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)

840 Name: Anonymous : 2010-06-15 19:31 ID:Heaven [Del]

>>839

  • by installing it more than once.
  • you would have to write code for that. it is possible, and that's an easy task if you know how to program.

841 Name: Anonymous : 2010-06-29 12:42 ID:agHEGDJF [Del]

How to make user remain in thread after replying, not redirected to the main page?

842 Name: Anonymous : 2010-07-01 10:17 ID:Heaven [Del]

>>841
By adding the feature yourself.
Look for where it sends a redirect (search for 303), and change that line.

843 Name: Anonymous : 2010-07-05 06:56 ID:gpkxzm5C [Del]

>test

844 Name: Anonymous : 2010-07-06 05:34 ID:Heaven [Del]

>>841
There are several patches for it posted on this board.

845 Name: Anonymous : 2010-07-06 06:32 ID:DdfYk4Ym [Del]

>>844
where can i find it?

846 Name: Anonymous : 2010-07-06 17:19 ID:Heaven [Del]

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

847 Name: Anonymous : 2010-07-07 20:27 ID:dQf5hF71 [Del]

My host is really stupid and does not allow profanity. How would I go about installing a wordfilter? Thanks :3

848 Post deleted by moderator.

849 Name: Anonymous : 2010-07-08 07:39 ID:Heaven [Del]

>>847
Get a less stupid host.

850 Name: Anonymous : 2010-07-11 00:59 ID:Heaven [Del]

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

851 Name: Anonymous : 2010-07-12 14:08 ID:nQGKjvz/ [Del]

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.

852 Name: !WAHa.06x36 : 2010-07-12 14:30 ID:Heaven [Del]

>>851

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.

853 Name: Anonymous : 2010-07-12 14:55 ID:nQGKjvz/ [Del]

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

854 Name: Enthree : 2010-07-14 09:51 ID:IVaU0LhX [Del]

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.

855 Name: Anonymous : 2010-07-14 21:33 ID:Heaven [Del]

>>854
Write it yourself, it's just an html frame.

856 Name: Enthree : 2010-07-15 12:02 ID:IVaU0LhX [Del]

>>855

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.

857 Name: Anonymous : 2010-07-15 14:49 ID:Heaven [Del]

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

858 Name: !!hClRCwQo : 2010-07-18 00:40 ID:uisBsqfu [Del]

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 !

859 Name: Anonymous : 2010-07-18 07:34 ID:Heaven [Del]

>>858
Edit config.pl. Look for "delete".

860 Name: !!hClRCwQo : 2010-07-18 07:57 ID:uisBsqfu [Del]

>>859

thank you very much for answer the question !
Will wakaba and kareha update future ?

861 Name: Anonymous : 2010-07-24 04:32 ID:Heaven [Del]

>>856
Edit include/header.html. If you don't know how to create HTML links, look it up on w3schools.

And as previously mentioned, Kusaba is shit and a security nightmare.

>>860
I think Waha is pretty much done with Wakaba/Kareha. Updates are normally just various bug fixes.

862 Name: Anonymous : 2010-07-25 02:08 ID:eh+cYn7S [Del]

Just wondering, can this software be uploaded to any free host such as Webs?

863 Name: Anonymous : 2010-07-25 04:11 ID:Heaven [Del]

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

864 Name: hime : 2010-08-01 03:57 ID:/6JlWvZ2 [Del]

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?

865 Name: Anonymous : 2010-08-01 07:11 ID:Heaven [Del]

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

866 Name: Anonymous : 2010-08-02 00:12 ID:fvEOoS9f [Del]

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.

867 Name: Anonymous : 2010-08-02 05:51 ID:Heaven [Del]

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

868 Name: Anonymous : 2010-08-02 13:15 ID:Heaven [Del]

>>866
Get a proper host. If it's your server, configure it properly.

869 Name: hime : 2010-08-04 08:37 ID:/6JlWvZ2 [Del]

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!

870 Name: Anonymous : 2010-08-08 09:25 ID:Heaven [Del]

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?

871 Post deleted by user.

872 Name: Frenzied : 2010-08-10 23:39 ID:IVaU0LhX [Del]

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.

This thread has been closed. You cannot post in this thread any longer.