Open Web Analytics is an open-source web analytics software that allows you to track and analyze the activity on your website. In this tutorial, we will guide you through the process of installing Open Web Analytics on OpenSUSE.
First, open the official website of Open Web Analytics https://www.openwebanalytics.com/ to download the Open Web Analytics package.
Once the file is downloaded, navigate to the directory where the file is saved and extract the files.
$ tar -zxvf openwebanalytics-1.7.4.tar.gz
$ cd openwebanalytics-1.7.4
$ sudo zypper install apache2 mysql-server php7 php7-mysql php-ZendFramework php7-pear php7-mbstring php7-gd php7-session php7-xmlwriter
$ mysql -u root –p
$ CREATE USER ‘owa’@‘localhost’ IDENTIFIED BY 'password';
$ CREATE DATABASE owa;
$ GRANT ALL PRIVILEGES ON owa . * TO ‘owa’@‘localhost’;
$ FLUSH PRIVILEGES;
$ cd openwebanalytics-1.7.4
$ sudo php index.php
Provide the required details for the installation wizard such as the database username, password, and database name created earlier. Also provide the admin data, there will be username, password and email fields.
Open the Apache default configuration file using the terminal command below.
$ sudo nano /etc/apache2/httpd.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/owa/
ServerName openwebanalytics.local
<Directory /var/www/html/owa>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog /var/log/apache2/owa-error.log
CustomLog /var/log/apache2/owa-access.log combined
</VirtualHost>
Save the file and exit the editor.
Start the Apache service to apply the new configurations.
$ sudo systemctl start apache2
Open a browser and go to the URL http://localhost/owa
.
Once the installation wizard is completely finished, you can start using Open Web Analytics.
Congratulations! You have successfully installed Open Web Analytics on your OpenSUSE machine.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!