インストールガイド · 5 min read · Oct 31, 2025

Ubuntu 22.04にTiki Wikiをインストールする方法

Tiki、またはTikiWikiとしても知られるものは、オープンソースのウィキベースのコンテンツ管理システムです。初心者ユーザーが1分以内にウィキサイトをホストするのを助けます。PHPに基づいており、コンテンツを保存するためにMariaDB/MySQLを使用します。Tikiは、堅牢なナレッジベース、コラボレーションおよびプロジェクト管理、ウェブサイトおよびブログの公開、CRMヘルプデスク、eラーニングなどを作成するためのツールを提供します。ウィキページ、ブログ、フォーラム、ファイル、多言語、緊密に統合された画像ギャラリーなどの豊富な機能を提供しています。

このチュートリアルでは、Ubuntu 22.04サーバーにTiki Wikiをインストールする方法を示します。

前提条件

  • Ubuntu 22.04を実行しているサーバー。
  • サーバーIPにポイントされたドメイン名。
  • サーバーに設定されたルートパスワード。

システムの更新

まず、システムパッケージを最新バージョンに更新することをお勧めします。次のコマンドで更新できます:

apt-get update -y

すべてのパッケージが更新されたら、次のステップに進むことができます。

LAMPサーバーのインストール

まず、次のコマンドでApacheウェブサーバーとMariaDBサーバーをインストールします:

apt-get install apache2 mariadb-server unzip git gnupg -y

上記のパッケージをインストールした後、PHPと必要な拡張機能をシステムにインストールする必要があります。Tiki WikiはPHPバージョン7.4のみをサポートしています。デフォルトでは、Ubuntu 22.04にはPHP 8.1バージョンが付属しています。したがって、Ondrej PHPリポジトリをサーバーに追加する必要があります。

次のコマンドで追加できます:

apt-get install software-properties-common -y  
add-apt-repository ppa:ondrej/php

リポジトリが追加されたら、リポジトリを更新し、次のコマンドを実行して必要な拡張機能を持つPHPをインストールします:

apt-get install php7.4 php7.4-tidy php7.4-gd php7.4-xmlrpc php7.4-mbstring libapache2-mod-php7.4 php7.4-mysql php-apcu php7.4-curl php7.4-intl php7.4-sqlite3 php7.4-zip php-memcache php7.4-pspell php7.4-zip php7.4-memcached php-pear php7.4-common php7.4-opcache php7.4-xml php7.4-zip -y

すべてのパッケージがインストールされたら、php.iniファイルを編集していくつかの変更を加えます:

nano /etc/php/7.4/apache2/php.ini

次の行を変更します:

memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 300
date.timezone = UTC

この時点で、LAMPサーバーはサーバーにインストールされています。

Tiki Wiki用のデータベースを作成

次に、Tiki Wiki用のデータベースとユーザーを作成する必要があります。まず、次のコマンドでMariaDBコンソールにログインします:

mysql

ログインしたら、次のコマンドでデータベースとユーザーを作成します:

CREATE DATABASE tiki CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;  
CREATE USER 'tiki'@'localhost' IDENTIFIED BY 'yourpassword';

次に、次のコマンドでtikiデータベースにすべての権限を付与します:

GRANT ALL ON tiki.* TO 'tiki'@'localhost' WITH GRANT OPTION;

次に、権限をフラッシュし、次のコマンドでMariaDBシェルから退出します:

FLUSH PRIVILEGES;  
EXIT;

Tiki Wikiをダウンロード

次に、SourceforgeウェブサイトからTiki Wikiの最新バージョンをダウンロードする必要があります。次のコマンドでダウンロードできます:

wget https://sourceforge.net/projects/tikiwiki/files/latest/download --no-check-certificate

ダウンロードが完了したら、次のコマンドでダウンロードしたファイルを抽出します:

unzip download

次に、抽出したディレクトリをApacheのルートディレクトリに移動します:

mv tiki-24.2 /var/www/html/tikiwiki

次に、tikiwikiディレクトリの所有権と権限を変更します:

chown -R www-data:www-data /var/www/html/tikiwiki/  
chmod -R 755 /var/www/html/tikiwiki/

この時点で、Tiki Wikiはダウンロードされ、設定されています。

Tiki Wiki用のApacheの設定

次に、次のコマンドでTiki Wiki用のApache仮想ホスト設定ファイルを作成します:

nano /etc/apache2/sites-available/tikiwiki.conf

次の行を追加します:


     ServerAdmin [email protected]
     DocumentRoot /var/www/html/tikiwiki
     ServerName tikiwiki.example.com

     
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined


完了したらファイルを保存して閉じます。次に、次のコマンドでApache仮想ホストを有効にします:

a2ensite tikiwiki.conf

次に、Apacheリライトモジュールを有効にし、次のコマンドを使用してApacheサービスを再起動します:

a2enmod rewrite  
systemctl restart apache2

次のコマンドでApacheのステータスを確認することもできます:

systemctl status apache2

次の出力が得られます:

? apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2022-11-20 11:44:46 UTC; 3min 43s ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 122937 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
    Process: 124446 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
   Main PID: 122942 (apache2)
      Tasks: 6 (limit: 2242)
     Memory: 23.7M
        CPU: 247ms
     CGroup: /system.slice/apache2.service
             ??122942 /usr/sbin/apache2 -k start
             ??124450 /usr/sbin/apache2 -k start
             ??124451 /usr/sbin/apache2 -k start
             ??124452 /usr/sbin/apache2 -k start
             ??124453 /usr/sbin/apache2 -k start
             ??124454 /usr/sbin/apache2 -k start

Nov 20 11:44:46 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...

Tiki Wiki Web UIにアクセス

今、ウェブブラウザを開き、URL http://tikiwiki.example.com/tiki-install.phpを使用してTiki Wikiのウェブインターフェースにアクセスします。次のページが表示されるはずです:

言語を選択し、続行ボタンをクリックします。次のページが表示されるはずです:

続行をクリックしてライセンス契約に同意します。次のページが表示されるはずです:

すべてのテストが緑色であることを確認し、続行をクリックします。次のページが表示されるはずです:

データベースの詳細を入力し、続行ボタンをクリックします。次のページが表示されるはずです:

データベースエンジンを選択し、インストールボタンをクリックします。インストールが完了すると、次のページが表示されるはずです:

続行ボタンをクリックします。次のページが表示されるはずです:

サイト情報を提供し、続行ボタンをクリックします。次のページが表示されるはずです:

続行ボタンをクリックします。管理者ユーザー作成ページが表示されます:

「Tikiに入ってインストーラーをロックする」をクリックします。管理者ユーザー作成ページが表示されます:

管理者パスワードを設定し、適用ボタンをクリックします。次のページにTiki Wikiのダッシュボードが表示されるはずです:

Let’s Encrypt SSLでTiki Wikiを保護

ウィキサイトをLet’s Encrypt SSL証明書で保護することは良いアイデアです。そのためには、システムにCertbotクライアントをインストールする必要があります。

次のコマンドでCertbotをインストールできます:

apt-get install certbot python3-certbot-apache -y

Certbotクライアントが正常にインストールされたら、次のコマンドを実行してウェブサイトのLet’s Encrypt SSLをインストールします:

certbot --apache -d tikiwiki.example.com

有効なメールアドレスを提供し、以下のようにサービス利用規約に同意するよう求められます:

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for tikiwiki.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/tikiwiki-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/tikiwiki-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/tikiwiki-le-ssl.conf

次に、HTTPトラフィックをHTTPSにリダイレクトするか、Nginxを構成してすべてのトラフィックを安全なHTTPSアクセスにリダイレクトするかを選択します。以下の出力のように:

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2

2を入力してEnterを押してプロセスを開始します。インストールが完了すると、次の出力が得られます:

Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/tikiwiki.conf to ssl vhost in /etc/apache2/sites-available/tikiwiki-le-ssl.conf

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://tikiwiki.example.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=tikiwiki.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/tikiwiki.example.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/tikiwiki.example.com/privkey.pem
   Your cert will expire on 2023-02-12. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot again
   with the "certonly" option. To non-interactively renew *all*
   of your certificates, run "certbot renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

この時点で、Tiki WikiサイトはLet’s Encrypt SSLで保護されています。HTTPSプロトコルを使用して安全にサイトにアクセスできるようになりました。

結論

おめでとうございます!Ubuntu 22.04サーバーにTiki Wikiを正常にインストールしました。これで、Tiki Wikiを使用して独自のウィキをホストできます。詳細については、Tiki Wikiのドキュメントページを訪問してください。質問があればお気軽にお尋ねください。

Share: X/Twitter LinkedIn

新しい投稿を受信箱で受け取る

スパムはありません。いつでも購読を解除できます。