Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
AWS Matomo Setup

Setting up Matomo on AWS

  • Installed PHP 7.x
    • sudo apt-get install php7.0 php7.0-curl php7.0-gd php7.0-cli mysql-server php7.0-mysql php-xml php7.0-mbstring
  • Installed MariaDB
    • Create File
      • sudo vi /etc/yum.repos.d/maria.repo
      • Add the following contents to the file and save:
          name = MariaDB
          baseurl =
    • Then run the following commands:
      • sudo yum install -y MariaDB-server MariaDB-client
      • sudo /etc/init.d/mysql start
    • Secured mariadb install:
      • sudo mysql_secure_installation
  • Downloaded Latest Matomo:
  • Copy download up to AWS with SFTP
  • Install httpd
  • Configure Matomo settings in /var/www/html/
  • Configure httpd settings in /etc/httpd/conf.d/


  • Update PHP to newer version
  • Add root user password
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.