Tiki Wiki is a powerful open-source web-based wiki and content management system (CMS) that is highly configurable and extensible. This guide will walk you through the steps required to install Tiki Wiki on an Ubuntu 22.04 server using root privileges. The installation process is designed to be straightforward and easy to follow, making it accessible for newcomers.

Step 1: Initiating Instance Creation

  • Creating a New Instance
    • To create a new instance, click on the blue “Create” button located in the top-right corner of the page.
    • Select “Add New Instance” to begin setting up a new virtual machine.
Shape.host instance form with Amsterdam selected as the data center location.

Step 2: Choosing a Location

  • Select a Data Center
    • On the “Create New Instance” page, choose your preferred data center location. For example, you might select “Amsterdam, Netherlands”.
Shape.host instance form with Amsterdam selected as the data center location.

Step 3: Selecting a Plan

  • Choose a Plan
    • Pick a plan that meets your requirements. Options vary in specifications and price, from $3.5 to $22 per month, offering different CPU, memory, storage, and bandwidth.
  • Choose an Operating System
    • Scroll to the “Choose an image” section and select Ubuntu 22.04 from the list of available distributions.
Shape.host instance form with the $22 monthly plan and Ubuntu image selected.

Step 4: Authentication Method

  • Select an Authentication Method
    • Choose between SSH keys (recommended for better security) or a password for root access. In this guide, we’ll proceed with the password option.
  • Complete Instance Creation
    • Click the “Create Instance” button at the bottom of the page to finalize the setup.
Shape.host instance form showing authentication, hostname and instance creation options.

Step 5: Connecting to Your Instance

  • Retrieve SSH Credentials
    • Note the IP address of your newly created instance from the Shape.host dashboard.
  • Connect via SSH
  • Open a terminal on your local machine and use the following command to connect to your instance:
ssh root@your_instance_ip
  • Replace your_instance_ip with the actual IP address of your instance.
  • A server running Ubuntu 22.04
  • Root access to the server
  • Basic knowledge of terminal commands

Step 6: Update Your System

Before starting the installation, ensure that your system packages are up-to-date:

apt update && apt upgrade -y
Terminal showing APT package management commands and output.

Step 7: Install Required Dependencies

Tiki Wiki requires several dependencies, including a web server, a database server, and PHP. We’ll start by installing these necessary packages.

  1. Install Apache Web Server:
apt-get install apache2 unzip git gnupg -y
Terminal showing APT package management commands and output.
  1. Install MySQL Database Server:
   apt install -y mysql-server
Terminal showing APT package management commands and output.
  1. Install PHP and Required Extensions:
apt install php8.1 php8.1-tidy php8.1-gd php8.1-xmlrpc php8.1-mbstring libapache2-mod-php8.1 php8.1-mysql php-apcu php8.1-curl php8.1-intl php8.1-sqlite3 php8.1-zip php-memcache php8.1-pspell php8.1-zip php8.1-memcached php-pear php8.1-common php8.1-opcache php8.1-xml php8.1-zip -y
Terminal showing APT package management commands and output.

Step 8: Create a MySQL Database and User for Tiki Wiki

Next, we’ll set up a MySQL database and user for Tiki Wiki.

  1. Log in to the MySQL shell:
   mysql -u root -p
Terminal showing mysql commands or output during Create a MySQL Database and User for Tiki Wiki.
  1. Create a new database for Tiki Wiki:
   CREATE DATABASE tikidb;
  1. Create a new MySQL user and grant privileges:
   CREATE USER 'tikiuser'@'localhost' IDENTIFIED BY 'yourpassword';
   GRANT ALL PRIVILEGES ON tikidb.* TO 'tikiuser'@'localhost';
   FLUSH PRIVILEGES;
   EXIT;

Replace yourpassword with a strong password.

Step 9: Download and Extract Tiki Wiki

Download the latest stable release of Tiki Wiki from the official website and extract it to the web server root directory.

  1. Navigate to the /tmp directory:
   cd /tmp
Terminal showing file and directory setup commands.
  1. Download Tiki Wiki:
   wget https://sourceforge.net/projects/tikiwiki/files/latest/download -O tikiwiki.zip
Terminal showing file download commands and transfer output.
  1. Extract the downloaded archive:
   unzip tikiwiki.zip -d /tmp/tikiwiki
Terminal showing unzip commands or output during Download and Extract Tiki Wiki.
  1. Move the extracted files to the web server root directory:
   mv /tmp/tikiwiki/* /var/www/html/tikiwiki
Terminal showing file and directory setup commands.

Step 10: Configure Apache for Tiki Wiki

Set up an Apache virtual host for Tiki Wiki to make it accessible via your domain name or IP address.

  1. Create a new Apache configuration file:
   nano /etc/apache2/sites-available/tikiwiki.conf
Terminal showing nano commands or output during Configure Apache for Tiki Wiki.
  1. Add the following configuration:
   <VirtualHost *:80>
       ServerAdmin admin@example.com
       DocumentRoot /var/www/html/tikiwiki
       ServerName your_domain_or_IP

       <Directory /var/www/html/tikiwiki>
           Options FollowSymLinks
           AllowOverride All
           Require all granted
       </Directory>

       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
   </VirtualHost>
Terminal showing web server configuration text.

Replace your_domain_or_IP with your actual domain name or IP address.

  1. Enable the new virtual host and the rewrite module:
   a2ensite tikiwiki.conf
   a2enmod rewrite
Terminal showing Apache configuration enablement commands.
  1. Restart Apache to apply the changes:
   systemctl restart apache2
Terminal showing systemd service management commands or output.

Step 11: Set Permissions

Ensure that the web server has the correct permissions to write to the Tiki Wiki directory.

chown -R www-data:www-data /var/www/html/tikiwiki
chmod -R 755 /var/www/html/tikiwiki
Terminal showing file ownership or permission commands.

Step 12: Complete the Installation via Web Browser

  1. Open your web browser and navigate to your Tiki Wiki instance:
   http://your_domain_or_IP/tikiwiki
Tiki Wiki installer welcome and language selection screen.
  1. Follow the on-screen instructions to complete the installation. You will need to enter the database details (database name, user, and password) you created in Step 3.
Tiki Wiki installer welcome and language selection screen.
Tiki Wiki installer license agreement.
Tiki Wiki installer mail and image processing checks.
Tiki Wiki installer database connection settings.
Tiki Wiki database installation screen.
Tiki Wiki installation review with completion status.
Tiki Wiki installer general settings form.
Tiki Wiki security, logging and administrator settings.
Tiki Wiki installer final notes and configuration guidance.
Tiki Wiki installation completion screen with site access options.
Tiki Wiki administrator password form after account validation.

For hosting your Tiki Wiki, consider using Shape.host’s Linux SSD VPS services. Shape.host provides robust and scalable cloud solutions tailored to various needs, ensuring high performance and reliability for your Tiki Wiki instance. With their Cloud VPS, you can easily scale resources as your application grows, providing an optimal user experience.