|
|
InstallationGuide
Guide to a successful installation of kusaba
kusaba Requirements
To run kusaba, you should have a webserver with at least the following:
- An apache or apache2 installation
- mod_php version 4 or better, with GD and MBStrings support
- A mysql server with the MyISAM engine
Extracting kusaba
- Download the most recent kusaba release from www.kusaba.org
- Extract it to a directory that your apache installation has access to
- Make sure the permissions for everything are readable and writable by your web server
- 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):
- Supported file types are: GIF, JPG, PNG
- Maximum file size allowed is 1000 KB.
- Images greater than 200x200 pixels will be thumbnailed.
- Currently 221 unique user posts.
Possible values you may use:
- <!tc_filetypes />
- <!tc_maximagekb />
- <!tc_maxthumbwidth />
- <!tc_maxthumbheight />
- <!tc_uniqueposts />
Setting kusaba Up
- Move the files install.php, install-mysql.php, and kusaba_freshinstall.sql from .OTHER to your kusaba root directory
- Visit http://yoursite/yourkusabadir/install-mysql.php
- Visit http://yoursite/yourkusabadir/install.php
- Log into http://yoursite/yourkusabadir/manage.php and make a new administrator account. From your new administrator account, delete the old administrator account.
- Remove .OTHER, install.php, install-mysql.php, and kusaba_freshinstall.sql from your kusaba root directory
Sign in to add a comment

Umm... how do I log into the administrator account? What's the name and password?
Umm... how do I log into the administrator account? What's the name and password?
User: admin Password: admin
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?
You're going to need to find your external IP and change your paths accordingly to use that instead.
I know my external IP, but what paths do I need to change?
KU_WEBPATH and KU_DOMAIN
Gawd.. Do you have aim or msn? This really isn't working for me lol
Aww cmon, please answer me i'm dying! T_T
I have MSN and gTalk. See the support board for my information.
MySQL database connection error: Access denied for user 'root'@'localhost' (using password: NO)
I don't get it.
win
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.
What is table prefix in config? How to get that? ;;
You forgot to put the passcheck table scrutcture in the sql schema file.
>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.
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?
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
what is this $cf['KU_DBPREFIX'] = ''; / Database table prefix / and where do i find it
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?
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
>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 :|
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.
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
I get the same thing as webmaster dell.
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?
I'm also having the same problem as webmaster.dell.
Same problem as webmaster.dell here too : (
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.
The easy way to find your root dir is to just write a info.php file, use the code:
<?php
?>Load it to where Kubsba is installed and point your web browser to it. Kill it afterwards as it poses a security risk.
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?
and
Warning: Invalid argument supplied for foreach() in D:\wamp\www\i\news.php on line 101
Simon,
You sure your local server is set-up correctly?
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?
I got it to work:D
What solved your problem in the end?
I fellt realy stupid thats wy i dident put up the awnswer.
Anwser = I found Install.php. dident know it existed until know:P
rumourisnews,
I had this same problem, remove NOT NULL from the end of lines 123 and 124 in kusaba_freshinstall.sql
Change:
TO:
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.
to be specific, the board.html file is not created when I create a board
It seems like the following part from /inc/classes/board-post.class.php
'''$dir = KU_BOARDSDIR.$this->board_dir;
Has a really nasty habit of deleting the pages when it shouldn't. This should be fixed.
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?
What should I enter for textdomain()?
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?
also, now it is saying:
MySQL database connection error: Unknown database 'kusaba'
what am i supposed to do?
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?
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
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.
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
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.
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
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.
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.
While i am an idiot and misread the error, i now also made sure its writeable, with no result.
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?