Ubuntu 安装 | |
在这里,我们有一些在带有 Apache2、MySQL/MARIADB 和 PHP5/PHP7/PHP8 的 Ubuntu Server 上安装 Tiki 的分步说明。. |
安装 Ubuntu 服务器 | |
我建议在初始安装时仅安装SSH服务器。 |
Patch it up | |
Copy to clipboard
|
Install Lamp | |
您可以在 Ubuntu 下使用以下命令安装 LAMP(Linux、Apache、Mariadb、PHP)服务器: Copy to clipboard
Use these commands to integrate the PPA in the system: Copy to clipboard
Copy to clipboard
Copy to clipboard
Set php 7.4 as defaultIn case you have other php versions newer than 7.4 (such as php 8.0.x), you may set the default php version at 7.4 with these commands: Copy to clipboard
Extra steps neededIf it's a brand new server, you might be asked a few questions to configure some server programs.
To configure postfix (program to mange email sending and receiving from the server), you can answer, for instance (unless you know what you are doing):
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
|
1.2. Create for tiki a mysql db and a mysql user with local perms for that db | |
Option 1 - using console | |
We can create a database and user for tiki. We can do so through a terminal windows converting ourselves in root in a first step with
Copy to clipboard
|
Option 2 - use phpmyadmin or adminer | |
Alternatively, you can use your PhpMyAdmin install:
or a small php script to manage your mysql server, called Adminer, that you can download to your server with an instruction like this one in a terminal: Copy to clipboard
|
1.3. Install Tiki 24 through git | |
(url's taken from http://dev.tiki.org/Get+code )
We will fetch tiki24 through git shallow clone. This option is best to checkout on production servers. It uses about 214M of disk space.
Change directory to /var/www and get that tiki24 clone:
Copy to clipboard
Copy to clipboard
Copy to clipboard
This script manages all Tiki dependencies through a program called "Composer" (it downloads and updated them when needed)
You need to make this tiki24 folder available through the webserver.
Copy to clipboard
and this will take us to tiki-install.php:
Once installed, you may need to manually create a synbolic link to .htaccess file in the tiki root folder, since it's needed for tiki to work properly and it might not get automatically created under some circumstances/setups, apparently. You can do so with the command: Copy to clipboard
At the new installation, the first user is admin, with password admin. We replace the password and continue to log in for the first time.
|
1.4. Get a free SSL Certificate from Let's Encrypt | |
Install a repository to get updated version of packages that will just work: Copy to clipboard
Copy to clipboard
Copy to clipboard
Then create the SSL Certificate with this command: Copy to clipboard
|
1.4.1. Add some composer packages through console | |
If you want, you can add some packages through console Copy to clipboard
|
Tiki 26+ | |
For Tiki26 or higher, you need php8.1. If you want to install this tiki, you will need to tweak the previous git commands to clone branch 26.x.
You should then be able to install the required PHP 8.1 packages with this command: Copy to clipboard
Copy to clipboard
|
Install Manticore search | |
Since Tiki26, you can start using Manticore search for production as your unified search index. You will need to install some extra packages for manticore search:
Copy to clipboard
Copy to clipboard
|
Related links | |
|
1.1. Install Lamp | |
You can install Linux, Apache, Mysql and PHP (plus a few other helper utils such as git or subversion, etc) with: Copy to clipboard
Note
If you need to install Tiki22 or newer, you don't need to add any extra repository, since you already have php 7.4 using the default ubuntu 20.04 repositories.
Need extra repos for php 7.4+ ?+In case you need to add the extra repositories for some other reason, these are the extra commands you would need: Copy to clipboard
Add php 7.4 packagesCopy to clipboard
Set php 7.4 as defaultIn case you have other php versions newer than 7.4 (such as php 8.0.x), you may set the default php version at 7.4 with these commands: Copy to clipboard
Extra steps neededIf it's a brand new server, you might be asked a few questions to configure some server programs.
To configure postfix (program to mange email sending and receiving from the server), you can answer, for instance (unless you know what you are doing):
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
|
1.2. Create for tiki a mysql db and a mysql user with local perms for that db | |
Option 1 - using console | |
We can create a database and user for tiki. We can do so through a terminal windows converting ourselves in root in a first step with
Copy to clipboard
|
Option 2 - use phpmyadmin or adminer | |
Alternatively, you can use your PhpMyAdmin install:
or a small php script to manage your mysql server, called Adminer, that you can download to your server with an instruction like this one in a terminal: Copy to clipboard
|
1.3. Use bash instead of dash | |
Ubuntu 20.04 comes with dash as the default shell interpreter. And Tiki shell scripts expect bash instead of dash. Therefore, one easy solution is to setup bash for your user with sudo perms in the server to use bash by default. You can do so with the command (for user username):
Copy to clipboard
|
1.4. Install Tiki 21 through git | |
(url's taken from http://dev.tiki.org/Get+code )
We will fetch tiki21 through git shallow clone. This option is best to checkout on production servers. It uses about 187M of disk space.
Change directory to /var/www and get that tiki21 clone:
Copy to clipboard
Copy to clipboard
Copy to clipboard
This script manages all Tiki dependencies through a program called "Composer" (it downloads and updated them when needed)
You need to make this tiki21 folder available through the webserver.
Copy to clipboard
and this will take us to tiki-install.php:
Tip for Spanish speakers: see the video from a course on Tiki:
At the new installation, the first user is admin, with password admin. We replace the password and continue to log in for the first time.
|
1.5. Get a free SSL Certificate from Let's Encrypt | |
Install a repository to get updated version of packages that will just work: Copy to clipboard
Copy to clipboard
Copy to clipboard
Then create the SSL Certificate with this command: Copy to clipboard
|
1.5.1. Add some composer packages through console | |
If you want, you can add some packages through console Copy to clipboard
|
Related links | |
|
1.1. Install Lamp | |
You can install Linux, Apache, Mysql and PHP (plus a few other helper utils such as git or subversion, etc) with: Copy to clipboard
Note
If you need to install Tiki22 or newer, since they require php 7.4, you will need to add a couple of extra repository to the server, in order to be able to install the php 7.4 packages. Copy to clipboard
Copy to clipboard
To configure postfix (program to mange email sending and receiving from the server), you can answer, for instance (unless you know what you are doing):
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
Copy to clipboard
|
1.2. Create for tiki a mysql db and a mysql user with local perms for that db | |
Option 1 - using console | |
We can create a database and user for tiki. We can do so through a terminal windows converting ourselves in root in a first step with
Copy to clipboard
|
Option 2 - use phpmyadmin or adminer | |
Alternatively, you can use your PhpMyAdmin install:
or a small php script to manage your mysql server, called Adminer, that you can download to your server with an instruction like this one in a terminal: Copy to clipboard
|
1.3. Use bash instead of dash | |
Ubuntu 18.04 comes with dash as the default shell interpreter. And Tiki shell scripts expect bash instead of dash. Therefore, one easy solution is to setup bash for your user with sudo perms in the server to use bash by default. You can do so with the command (for user username):
Copy to clipboard
|
1.4. Install Tiki 21 through git | |
(url's taken from http://dev.tiki.org/Get+code )
We will fetch tiki21 through git shallow clone. This option is best to checkout on production servers. It uses about 187M of disk space.
Change directory to /var/www and get that tiki21 clone:
Copy to clipboard
Copy to clipboard
Copy to clipboard
This script manages all Tiki dependencies through a program called "Composer" (it downloads and updated them when needed)
You need to make this tiki21 folder available through the webserver.
Copy to clipboard
and this will take us to tiki-install.php:
Tip for Spanish speakers: see the video from a course on Tiki:
At the new installation, the first user is admin, with password admin. We replace the password and continue to log in for the first time.
|
1.4.1. Additional step for H5P | |
It seems that you need to create a folder for h5p to work as expected (in case you have H5P enabled in your site); otherwise, when you attempt to upload a file to a file gallery, you get an error message saying that Tiki cannot write to the corresponding folder from h5p.
You can run these commands, from the tiki root folder in the server: Copy to clipboard
|
1.5. Get a free SSL Certificate from Let's Encrypt | |
Install a repository to get updated version of packages that will just work: Copy to clipboard
Copy to clipboard
Copy to clipboard
Then create the SSL Certificate with this command: Copy to clipboard
|
1.5.1. Add some composer packages through console | |
If you want, you can add some packages through console Copy to clipboard
|