Fullscreen
[Show/Hide Right Column]

Ubuntu Install


Here we have some step-by-step instructions for installing Tiki on Ubuntu Server with Apache2, MySQL5, and PHP5.

This how-to has been tested on
Ubuntu server 9.04

but should work fine also with more recent Ubuntu GNU/Linux distributions.

Install Ubuntu Server

I would recommend installing only SSH Server as part of the initial install.

Patch it up

sudo apt-get update
sudo apt-get upgrade


Install LAMP

sudo apt-get install tasksel
sudo tasksel install lamp-server


Alternatively to a tasksel-based installation of lamp, you can install the required packages by hand (and their dependencies automagically) as usual:
sudo apt-get install mysql-server mysql-client apache2 php5 php5-tidy php-pear memcached php5-xcache php5-xmlrpc php5-gd php5-xmlrpc php-xml-parser php-pear phpmyadmin sendmail


Install stuff for Image Galleries

sudo apt-get install imagemagick php5-imagick php5-gd graphviz


Download latest stable Tiki version

These are hosted on SourceForge, if you want to grab the most current stable version directly:
Tiki 6.x (LTS) or Tiki 8.x

http://info.tiki.org/Download

Alternatively, you can also Get code from SVN.

sudo apt-get install subversion


Move the Tiki tarball to where you need it

sudo mv tikiwiki-7.1.tar.gz /var/www/


Extract Tiki

cd /var/www
sudo tar -xvzf tikiwiki-7.1.tar.gz


Install Tiki

cd /var/www/tikiwiki-7.1
sudo sh setup.sh

User [www-data]:
Group [www-data]:
Multi []:
Checking dirs :
  backups ...  ok.
  db ...  ok.
  dump ...  ok.
  img/wiki ...  ok.
  img/wiki_up ...  ok.
  img/trackers ...  ok.
  modules/cache ...  ok.
  temp ...  ok.
  temp/cache ...  ok.
  templates_c ...  ok.
  templates ...  ok.
  styles ...  ok.
  maps ...  ok.
  whelp ...  ok.
  mods ...  ok.
  files ...  ok.
  tiki_tests/tests ...  ok.
  lib/Galaxia/processes ...  ok.
Fix global perms ... chowned ... done.
Fix special dirs ... done.


Setup MySQL for the Tiki database.

We'll create the database and create a user with rights to the Tiki database. In the following example, the database name is tiki, the username is tiki, and the password for tiki is tikipassword. You'll need this information later when we configure Tiki, so make sure you write this stuff down. Replace names as you see fit.
mysql -u root -p

You'll be prompted for your mysql root password you entered earlier, then are met with the mysql prompt. Type the following commands exactly as shown.
mysql>CREATE DATABASE tikiwiki default character set 'UTF8';
mysql>GRANT ALL ON tikiwiki.* TO 'tiki'@'localhost' IDENTIFIED BY 'tikipassword';
mysql>QUIT


Update your default directory for Apache. Use vim or nano to edit.

sudo nano -w /etc/apache2/sites-available/default

Add the following line to the end of the <Directory /var/www> section (just above the ending </Directory>)
RedirectMatch ^/$ /tikiwiki-7.1/


Give yourself some more memory for PHP

sudo nano -w /etc/php5/apache2/php.ini

change
memory_limit = 16M      ; Maximum amount of memory a script may consume (16MB)

to memory_limit = 32M

PHP sendmail Ubuntu

To get it working in the end I had to:
sudo apt-get install sendmail

Check its working
ps -aux | grep sendmail

Edit your php.ini to uncomment sendmail:
located in
sudo nano -w /etc/php5/apache2/php.ini

;sendmail_path =

to
sendmail_path =  /usr/sbin/sendmail -t -i

[mail function]
; For Win32 only.
;SMTP = localhost
;smtp_port = 25

; For Win32 only.
;sendmail_from = me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail -t -i 


; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =


Or use Postfix instead of Sendmail


sudo apt-get install postfix


No extra configuration is of either Postfix or PHP is required, beyond choosing which sort of mail system you're setting up, which is explained during Postfix installation. It just works, at least in my virgin 6.x Tiki install on a virgin Ubuntu Lucid. Tiki can send mail.

Restart Apache

sudo /etc/init.d/apache2 restart


Configure Tiki

Point a browser to http://hostname/tikiwiki-7.1/tiki-install.php
Replace "hostname" above with actual hostname or IP address
Database type is MySQL Improved
Database name is tiki
Database User is tiki
Password is tikipassword

You can also see the standard documentation about the installation
http://doc.tiki.org/Installation

and see how to apply a configuration profile to adapt your tiki to your own use ase with just a few clicks:

Applying Profiles

Starting in Tiki4, the interface has been improved and streamlined. No more profiles at install time, but a nicer profile manager anytime :-)



Profiles can also be applied at any time after Tiki is installed by following these steps:
  1. Log into Tiki as an administrator
  2. Open the Administration page (click the "Admin Home" link in the menu)
  3. Click on the Profiles link
  4. Show profiles available in the registered repositories by clicking List. You can filter the list of profiles by name, type and repository if you like.
  5. Click on the name of the profile you want to apply. Details about that profile will be obtained from the repository and displayed for your review.
  6. Click the Apply Now button

Enjoy!


Note: sendmail still needs some work. I suspect the email is being send to the server but is going no where. I suspect that if you setting up Tiki with professional hosting you won't need to worry about sendmail?



Contributors to this page: Marc Laporte9146 points  , carsten.aevermann1138 points  , Bernard Sfez1133 points  , xavi67984 points  , lkjoel14 points  , lindon137 points  , ispyisail101 points  and JamieR11 points  .
Page last modified on Thursday 15 March, 2012 02:14:52 UTC by Marc Laporte9146 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki