What's new? | Help | Directory | Sign in
Google
kusaba
Site-wide Imageboard, text board, oekaki board, and upload board software
  
  
  
    
Search
for
Updated Aug 23, 2007 by tslocum
Labels: Featured, Phase-Deploy
InstallationGuide  
Guide to a successful installation of kusaba

kusaba Requirements

To run kusaba, you should have a webserver with at least the following:

Extracting kusaba

  1. Download the most recent kusaba release from www.kusaba.org
  2. Extract it to a directory that your apache installation has access to
  3. Make sure the permissions for everything are readable and writable by your web server
  4. Edit config.php

Editing config.php

To enable a feature, change the value to true:

define('TC_INSTANTREDIRECT', true);
To disable a feature, change the value to false:
define('TC_INSTANTREDIRECT', false);

To change the text value of a configuration, edit the text in the single quotes:

define('TC_NAME', 'kusaba');
Becomes:
define('TC_NAME', 'Mychan');
Warning: Do not insert single quotes in the value yourself, or else you will cause problems. To overcome this, you use what is called escaping, which is the process of adding a backslash before the single quote, to show it is part of the string:
define('TC_NAME', 'Jason\'s chan');

The postbox is where you mix dynamic values with your own text. The text from what you enter is then parsed and will be displayed under the postbox on each board page and thread page:

define('TC_POSTBOX', '<ul><li>Supported file types are: <!tc_filetypes /></li><li>Maximum file size allowed is <!tc_maximagekb /> KB.</li><li>Images greater than <!tc_maxthumbwidth />x<!tc_maxthumbheight /> pixels will be thumbnailed.</li><li>Currently <!tc_uniqueposts /> unique user posts.</li></ul>');
Will become (if you had my settings):

Possible values you may use:

Setting kusaba Up

  1. Move the files install.php, install-mysql.php, and kusaba_freshinstall.sql from .OTHER to your kusaba root directory
  2. Visit http://yoursite/yourkusabadir/install-mysql.php
  3. Visit http://yoursite/yourkusabadir/install.php
  4. Log into http://yoursite/yourkusabadir/manage.php and make a new administrator account. From your new administrator account, delete the old administrator account.
  5. Remove .OTHER, install.php, install-mysql.php, and kusaba_freshinstall.sql from your kusaba root directory

Comment by mor...@trulynothing.com, Sep 26, 2007

Umm... how do I log into the administrator account? What's the name and password?

Comment by mor...@trulynothing.com, Sep 26, 2007

Umm... how do I log into the administrator account? What's the name and password?

Comment by tehmoat, Sep 27, 2007

User: admin Password: admin

Comment by andrihfj, Oct 02, 2007

All the images come from localhost, so when someone tries to check out my page, their browser tries to get all the stuff from localhost, posting, pictures etc

Any ideas?

Comment by tslocum, Oct 02, 2007

You're going to need to find your external IP and change your paths accordingly to use that instead.

Comment by andrihfj, Oct 02, 2007

I know my external IP, but what paths do I need to change?

Comment by tslocum, Oct 02, 2007

KU_WEBPATH and KU_DOMAIN

Comment by andrihfj, Oct 02, 2007

Gawd.. Do you have aim or msn? This really isn't working for me lol

Comment by andrihfj, Oct 02, 2007

Aww cmon, please answer me i'm dying! T_T

Comment by tslocum, Oct 02, 2007

I have MSN and gTalk. See the support board for my information.

Comment by waynegui...@yahoo.com, Oct 29, 2007

MySQL database connection error: Access denied for user 'root'@'localhost' (using password: NO)

I don't get it.

Comment by stelbaums, Nov 01, 2007

win

Comment by andrey.mir, Nov 24, 2007

Q: All the images come from localhost, so when someone tries to check out my page, their browser tries to get all the stuff from localhost, posting, pictures etc

Any ideas?

A:

Change KU_WEBPATH and KU_DOMAIN accordingly your domain or ip and rebuild all htmp pages from admin menu.

Comment by hjaalmar, Nov 30, 2007

What is table prefix in config? How to get that? ;;

Comment by anibaldeboni, Dec 23, 2007

You forgot to put the passcheck table scrutcture in the sql schema file.

Comment by tslocum, Dec 23, 2007

>You forgot to put the passcheck table scrutcture in the sql schema file.

Actually that was a problem which I fixed a few days ago. You have the old zip file, and re-downloading will fix this problem. This was noted in the support board.

Comment by TheParadiseLast, Jan 28, 2008

I set up this wonderful system quick and painlessly, but I can't find any way to change the max file size manually. I've looked all over the documentation and wiki, but still no luck. Am I just missing something?

Comment by TheParadiseLast, Jan 28, 2008

Actually, now I see the "max image size" value. I guess that applies to other file types as well and it corresponds to each board? I'm still wondering if there's a way to change the global size though. Any help would be appreciated. :D

Comment by gus292, Feb 01, 2008

what is this $cf['KU_DBPREFIX'] = ''; / Database table prefix / and where do i find it

Comment by sirus434, Feb 02, 2008

Warning: Cannot modify header information - headers already sent by (output started at /location/to/the/directory/www/pantsuland.org/chan/config.php:299) in /location/to/the/directory/www/pantsuland.org/chan/inc/classes/manage.class.php on line 114

for some reason i get this error whenever i create a new board or post on that board, i don't know why or how to fix it, any help?

Comment by gus292, Feb 04, 2008

alright i got it to work but the main page is black and white and i cant log in to the manage page gives me a 404

Comment by zomgsako, Feb 10, 2008

>Make sure the permissions for everything are readable and writable by your web server

What is everything? All files and subfolders in the kusaba folder to 777? I'm still getting an internal server error when visiting install-mysql.php :|

Comment by rumourisnews, Feb 21, 2008

Attempting to create table 'testfiletypes'... (mysql): INSERT INTO testfiletypes (filetype, force_thumb) VALUES ('jpg', 0), ('gif', 0), ('png', 0) Error (1364): Field 'mime' doesn't have a default value failed. Enable debugging by setting KU_DEBUG to true to see this error. Table creation failed. Please rerun this script again or attempt to fix the problem if you know how to solve it.

Comment by webmaster.dell, Feb 23, 2008

i get a error: Fatal error: require() [function.require]: Failed opening required 'CHANGEMElib/gettext/gettext.inc.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a44548/public_html/board/config.php on line 222

and...

Warning: require(CHANGEMElib/gettext/gettext.inc.php) [function.require]: failed to open stream: No such file or directory in /home/a4466311/public_html/board/config.php on line 222

Comment by thesmallv, Feb 24, 2008

I get the same thing as webmaster dell.

Comment by WorldKingMedia, Feb 28, 2008

Everything in my folder is set perfectly except, it states that I have a an undefined text function textdomain() on config line 226.

I go to config line 226 and the code that was put there was textdomain('kusaba')

However, right above it, there is a warning not to change these lines.

Any suggestions?

Comment by purity666, Feb 29, 2008

I'm also having the same problem as webmaster.dell.

Comment by downloader, Mar 03, 2008

Same problem as webmaster.dell here too : (

Comment by downloader, Mar 03, 2008

OK, to fix the issue webmaster.dell (and others) have, you need to fix your paths. They are what's causing the problem.

It's probably the ROOTDIR that's causing issues as the others are pretty obvious.

For me the solution was in the error message Kusaba threw up.

Warning: require(/test.net/k/lib/gettext/gettext.inc.php) [function.require]: failed to open stream: No such file or directory in /home/.maudred/downloader/test.net/k/config.php on line 222

Fatal error: require() [function.require]: Failed opening required '/test.net/k/lib/gettext/gettext.inc.php' (include_path='.:/usr/local/php5/lib/php:/usr/local/lib/php') in /home/.maudred/downloader/test.net/k/config.php on line 222

The correct root dir for me (assuming my domain is test.net and the script is installed in a sub directory /k/ is /home/.maudred/downloader/test.net/k/

As you can see above, the error message does inform you of your 'homepath' so I'd try using that in your .config files. It worked for me and I hope it helps you too.

Comment by downloader, Mar 06, 2008

The easy way to find your root dir is to just write a info.php file, use the code:

<?php

phpinfo()
?>

Load it to where Kubsba is installed and point your web browser to it. Kill it afterwards as it poses a security risk.

Comment by Simon.Edvinsson, Mar 20, 2008

I Got Warning: Invalid argument supplied for foreach() in D:\wamp\www\i\inc\classes\menu.class.php on line 128

Warning: Invalid argument supplied for foreach() in D:\wamp\www\i\inc\classes\menu.class.php on line 128

what should i do?

Comment by Simon.Edvinsson, Mar 20, 2008

and

Warning: Invalid argument supplied for foreach() in D:\wamp\www\i\news.php on line 101

Comment by downloader, Mar 26, 2008

Simon,

You sure your local server is set-up correctly?

Comment by Simon.Edvinsson, Mar 30, 2008

yes i use Wamp so I got all defualt settings. I have a database named kusaba but do i need to make a table for it to work?

Comment by Simon.Edvinsson, Apr 05, 2008

I got it to work:D

Comment by downloader, Apr 08, 2008

What solved your problem in the end?

Comment by Simon.Edvinsson, Apr 08, 2008

I fellt realy stupid thats wy i dident put up the awnswer.

Anwser = I found Install.php. dident know it existed until know:P

Comment by ahrens.christopher, Apr 10, 2008

rumourisnews,

I had this same problem, remove NOT NULL from the end of lines 123 and 124 in kusaba_freshinstall.sql

Change:

'mime' varchar(255) NOT NULL, 'image' varchar(255) NOT NULL,

TO:

'mime' varchar(255), 'image' varchar(255),
Comment by qiming.zeng, Apr 11, 2008

Everything is fine except for when I try to add a board. When I try to add a board, the board does not show up.

Comment by qiming.zeng, Apr 11, 2008

to be specific, the board.html file is not created when I create a board

Comment by debunker.nietzsche1, Apr 14, 2008

It seems like the following part from /inc/classes/board-post.class.php

'''$dir = KU_BOARDSDIR.$this->board_dir;

$files = glob ("$dir/{.html}", GLOB_BRACE); if (is_array($files)) {
foreach ($files as $htmlfile) {
if (preg_match("/[0-9+].html/", $htmlfile)) {
if (substr(basename($htmlfile), 0, strpos(basename($htmlfile), '.html'))>$boardstooutput) {
unlink($htmlfile);
}
} if (preg_match("/list[0-9+].html/", $htmlfile)) {
if (substr(basename($htmlfile), 4, strpos(basename($htmlfile), '.html'))>$liststooutput) {
unlink($htmlfile);
}
} if (preg_match("/catalog.html/", $htmlfile)) {
if (!($this->board_enablecatalog == 1 && ($this->board_type == 0 || $this->board_type == 2))) {
unlink($htmlfile);
}
}
}
}'''

Has a really nasty habit of deleting the pages when it shouldn't. This should be fixed.

Comment by flugnuts, Apr 16, 2008

I'm trying to create a MySQL database table with phpMyAdmin but I have no idea what values to enter for the table. Here is a screen capture of what I'm talking about.

Do you even need to make a table to install Kusaba?

Comment by leggobo2, Apr 27, 2008

What should I enter for textdomain()?

Comment by leggobo2, Apr 27, 2008

actually, i solved that problem, but now when i try to run install-mysql, it says

MySQL database connection error: Access denied for user 'root'@'localhost' (using password: NO)

where do i logon?

Comment by leggobo2, Apr 27, 2008

also, now it is saying:

MySQL database connection error: Unknown database 'kusaba'

what am i supposed to do?

Comment by leggobo2, May 02, 2008

lol, disregard all my previous questions, I've fixed them. I just have one more problem: when i attempt to login to the manage page, it simply redirects me to the login page without logging me in. What do I do?

Comment by dart...@yahoo.com, May 10, 2008

please help me, I have this problem after installing everything and then when i go to myboard/manage.php says this:

Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /home/teenscha/domains/teenschan.com/public_html/config.php on line 196

what can I do? thanks in advance

Comment by JunkmanXX, May 16, 2008

MySQL database connection error: Access denied for user 'level1'@'localhost' (using password: YES)

Everthing from config.php seems to have been changed correctly, but I still get this error no matter what. Yes, there is a user and it's password is correct.

Comment by rain1776, May 31, 2008

ok, so whenever i run the mysql import script, i get this: Attempting to create table 'filetypes'... failed. Enable debugging by setting KU_DEBUG to true to see this error. this kinda annoying

Comment by randomhero0815, Jun 03, 2008

after i install everything (it's says successfully installed for everything) i attempt to go to manage.php (as said in this installation guide), but when i go to it, it is blank. i enabled debugs, but everything that runs comes back with 0 errors. so i'm wondering what i'm doing wrong. any help would be appreciated.

Comment by pwnforce, Jun 13, 2008

im getting this error:

Warning: main(/kusaba/lib/gettext/gettext.inc.php): failed to open stream: No such file or directory in /home/content/b/b/a/bbarker123/html/kusaba/config.php on line 227

Fatal error: main(): Failed opening required '/kusaba/lib/gettext/gettext.inc.php' (include_path='.:/usr/local/lib/php') in /home/content/b/b/a/bbarker123/html/kusaba/config.php on line 227

whenever i go to install-mysql.php

Comment by sdooott, Jun 27, 2008

i tried to go to install-mysql.php, and install.php, and after i press the button, it says it's working but it does nothing.

Comment by flashdoodle, Jul 04 (4 days ago)

I got this error:

Fatal error: Smarty error: unable to write to $compile_dir '/home/communis/public_html/ME/smarty/templates_c'. Be sure $compile_dir is writable by the web server user. in /home/communis/public_html/ME/lib/smarty/Smarty.class.php on line 1095

on kusaba.php and manage.php (and probably others) after doing all installing. I've checked this smarty.class.php for anything related to $compile_dir, but diddnt find out anything useful.

Comment by tehmicro...@hotmail.com, Jul 04 (4 days ago)

While i am an idiot and misread the error, i now also made sure its writeable, with no result.

Comment by louseman33, Yesterday (30 hours ago)

Hmm, install-mysql.php succeeds, then I progress to install.php where the script appears to freeze on "Inserting default administrator account... Account inserted." If I progress to manage.php and log in, I'm given a blank page.

What's going wrong here?


Sign in to add a comment