History: Manual Installation
Source of version: 51 (current)
Copy to clipboard
!# Manual Installation To install Tiki, you basically point your browser to tiki-install.php and follow the instructions. For the vast majority of setups, this works nicely. But what if it doesn't work out for you? (special server setup, etc). Don't worry, there is an alternate way to install Tiki. This assumes you use mysql and have access to [http://www.phpmyadmin.net/|phpMyAdmin] and know how to use it. Essentially, tiki-install.php does two essential things. It creates your database connection file (db/local.php) and populates the database with tables & data needed by Tiki. !!# Create your db/local.php file ^{VERSIONS(nav=>y,title=>y,default=>8.x)} {img src=images/code.png}%%% {CODE(caption="db/local.php" colors=php)} <?php $db_tiki='mysql'; $dbversion_tiki='8.0'; $host_tiki='localhost'; $user_tiki='my_database_username'; $pass_tiki='my_database_secret_password'; $dbs_tiki='tiki_80'; $client_charset='utf8mb4'; {CODE} ---(5.x)----------------------------- {img src=images/code.png}%%% {CODE(caption="db/local.php" colors=php)} <?php $db_tiki='mysql'; $dbversion_tiki='5.0'; $host_tiki='localhost'; $user_tiki='my_database_username'; $pass_tiki='my_database_secret_password'; $dbs_tiki='my_database_name'; ?> {CODE} ---(4.x)----------------------------- {img src=images/code.png}%%% {CODE(caption="db/local.php" colors=php)} <?php $db_tiki='mysql'; $dbversion_tiki='4.0'; $host_tiki='localhost'; $user_tiki='my_database_username'; $pass_tiki='my_database_secret_password'; $dbs_tiki='my_database_name'; $socket_tiki='/my/database/socket'; // Used for mysql if server is configured for sockets. Overrides hostname method. ?> {CODE} ---(3.x)----------------------------- {img src=images/code.png}%%% {CODE(caption="db/local.php" colors=php)} <?php $db_tiki='mysql'; $dbversion_tiki='3.0'; $host_tiki='localhost'; $user_tiki='my_database_username'; $pass_tiki='my_database_secret_password'; $dbs_tiki='my_database_name'; ?> {CODE} {VERSIONS}^ Make sure there are no spaces or special characters before or after the code. Of course, replace the values with your own. !!# Insert tiki.sql ^From Tiki 12 there is a console command "php console.php database:install" (try php console.php database:install --help) that will also install the database once you have local.php setup.^ ^{VERSIONS(nav=>y,title=>y,default=>5.x)} Import the content of db/tiki.sql into your database use the encoding as described on ((Understanding encoding)) ---(4.x)----------------------------- Import the content of db/tiki-4.x-mysql.sql into your database ---(3.x)----------------------------- Import the content of db/tiki-3.x-mysql.sql into your database {VERSIONS}^ This will populate the database and give you the default ((profile)). !!# Insert secdb (optional) ^{VERSIONS(nav="y" title="y" default="5.x")} Import the content of db/tiki-secdb_5.0_mysql.sql into your database ---(4.x)--- Import the content of db/tiki-secdb_4.0_mysql.sql into your database ---(3.x)--- Import the content of db/tiki-secdb_3.0_mysql.sql into your database {VERSIONS}^ For more information: ((Security Admin)) !!# Rename _htaccess for clean URLs (optional) You can rename _htaccess to .htaccess See ((Apache Clean URLs)) ! MultiTiki The instructions above assume you are installing one Tiki. If you are using ((MultiTiki)), please see ((MultiTiki Manual Installation)) -=alias=- *(alias(Manual Install))