Add section buildout
, include some required components and stacks, The specific environment where matomo runs can be found on matomo github. We need Php, Mysql, and a web server like Apache, that means all we need is a LAMP, which means Linux, Apache, Mysql, Php.
Fortunately, among the existing stacks, we have already LAMP. It has already made the configuration of Mariadb and Apache-php for us so we can directly use it to download and configure Matomo, instead of writing Apache-php and Mariadb buildout from scratch. So in the section buildout, add a new keyword extends
to include the stack Lamp so that we can use it. And then we need to add slapos stack, which includes some basic things in slapos, it is needed for 99% of software in slapos.
Then in the keyword parts, add two lines, one is slapos-cookbook and another is the instance. Slapos-cookbook is a library that includes some useful function that can help us deploy matomo more easily and for those functions, If you're not sure what this is, don't worry, we'll explain it in more detail when we use it later. The purpose of instance is to make sure all instances of matomo will be created.
[buildout]
extends =
# LAMP stands for Linux, Apache, MySQL, PHP
../../stack/lamp/buildout.cfg
# "slapos" stack describes basic things needed for 99.9% of SlapOS Software
../../stack/slapos.cfg
parts =
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
# in 99,9% of Slapos Software Releases)
slapos-cookbook
# to create file instance.cfg of all instances
instance