Setting up the Piwik software for web analytics purposes on our Alpine Linux virtual machine
Welcome back to another tutorial from our Alpine Linux explorations tutorial series.
This time we are going to run the Piwik software on our Alpine Linux virtual machine for web analytics purposes.
?
?We need to complete several steps to get it working correctly.
1. We need to power on our Alpine Linux virtual machine from the Oracle Virtual Box Manager.
2. Once our Alpine Linux virtual machine execution environment has fully booted we are ready to begin the process – system ready.
3. We need to open the Linux Terminal.
4. We need to switch to the root user to run the necessary commands to install the Piwik software correctly.
5. We first need to update our Alpine Linux virtual machine execution environment. First, run the command ‘apk update’.
6. We then need to run the command ‘apk upgrade’.
7. Now the Alpine Linux virtual machine execution environment is fully updated.
8. We need to run the command ‘reboot’.
9. Now we need to log back in, open the Linux Terminal again and switch to the root account.
10. Now we can install the Lighttpd web server.
11. The Lighttpd web server is now installed on our Alpine Linux Virtual Machine execution environment.
12. Now we can install the PHP packages.
13. Installing the PHP packages.
14. We must enable the option to include fast_cgi.
15. This is very important.
领英推荐
16. We need to create the homepage in order to test the web server functionality and we need to start the web server and add it to the autostart of the Alpine Linux virtual machine bootup.
17. Our Lighttpd webserver is active and running on our Alpine Linux Virtual machine execution environment.
18. We need to finish up by adding a few more important packages like MySQL.
19. Now we add a few more support packages.
20. Now we need to create the folder for the new Piwik software.
21. We must change the directory and enter the new one we created for the Piwik software.
22. Now we can install Piwik using the command line tool git.
23. Now we have it on our local disk.
24. Now we can change the directory permissions.
25. Now we need to create a symlink.
26. Now we can start using MySQL and create the MariaDB and MySQL user.
27. We can start to prepare our MySQL environment.
?28. MySQL is running on our Alpine Linux Virtual Machine execution environment.
29. We can now add MySQL to autostart on virtual machine bootup.
30. The Piwik/Matomo software is now installed, active, and running on our Alpine Linux virtual machine execution environment and is ready to be configured to our needs.
31. Now we can run the poweroff command to shut down our Alpine Linux Virtual Machine execution environment.
Well, that was most enjoyable. See you in the next one!