Install Debian 10 (stable)
Remove your Debian install volume (CD or USB disk) and reboot
Most of what you need is installed with the Web server package. There is a little to complete the installation and have a server and a Tiki online.
Complete the installation
Update your Debian server
Check everything is up to date
sudo apt update sudo apt upgrade
sudo apt install mariadb-server sudo mysql_secure_installation sudo systemctl status mariadb
While you will be able to run and complete the server setup and publish a website (a Tiki you need a lot more to assure your data protection and create the necessary services to manage easily your server, users, mailboxes, ect. There are control panel and addition that really help and set for you all the needed tools to administrate a server with several websites (virtual servers).
Install Webmin and Virtualmin
Download Virtualmin using the below script. It is basically a shell script that will handle rest of the installation once executed.
wget https://software.virtualmin.com/gpl/scripts/install.sh sudo /bin/sh ./install.sh
sudo /usr/share/webmin/changepass.pl /etc/webmin root yourpassword
sudo systemctl restart webmin
Use https://your_server_domain:10000 (you can use your server IP too)
Install several versions of PHP
Debian 10 come by default with 7.0 and installing MariaDB will add PHP7.4. You may want to use in parallel other PHP versions (you can select for each of your virtual server the PHP version).
Enable the sury.org repository and update the package list:
# assuming you are not root do: sudo apt-get -y install apt-transport-https lsb-release ca-certificates curl sudo curl -sSL -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' sudo apt-get update
From here you can install any PHP package (change version number for what you need) and it will be accessible for your PHP version configuration in Virtualmin
sudo apt-get install php7.2 php7.2-cgi php7.2-cli php7.2-fpm php7.2-mysql php7.2-xml php7.2-gd php7.2-intl php7.2-xsl php7.2-curl php7.2-zip php7.2-mbstring
Another side-note: when I used this php package list to install php 7.4 (see below) it was missing
Once I completed the installation of the second PHP recheck the Virtualmin configuration it by logging into Virtualmin, and clicking System Settings -> Re-Check Config
You can configure which one is the default PHP version used on new Virtual Servers. The default is to use the newest available. You can change that default in System Settings -> Server Templates -> Default -> PHP Options. To set your host or domain PHP version go to Virtualmin -> Server configuration -> PHP version and on that screen you can set the PHP version to useversion.
To add php 7.4 i used the virtualmin System -> Software Packages page and pasted this into the "Package from APT" box:
php7.4 php7.4-cgi php7.4-cli php7.4-fpm php7.4-mysql php7.4-xml php7.4-gd php7.4-intl php7.4-xsl php7.4-curl php7.4-zip php7.4-mbstring php7.4-mysql php7.4-bcmath
Install and check git is running
sudo apt install git git --version
Installing Tiki from Git
Navigate into your html directory. If you don’t know where it is located on your new server on Virtualmin check the Virtual Server Summary.
git clone --depth=1 --branch=21.x https://gitlab.com/tikiwiki/tiki.git .
Additional notes to install composer and the dependencies
The composer installation from setup.sh check and requires some packages and libraries
Sarge (stable) or Etch (testing)