I’ve gone through the installation guide on the website but I’m still facing problems on installing piwik.
I am using a raspberry pi (Debian stretch). I have all the piwik requirements, I try installing using the 5-minute method and I’ve placed and extracted piwik in a proper directory but when I visit my localhost, the website page is blank, the piwik web installer is not loaded.
My DocumentRoot in my virtual host points to /home/pi/testingsite and I placed and extracted piwik to /home/pi/testingsite, this should work, but doesn’t for some reason. There aren’t many piwik installation guides on the internet, so I must ask here.
I want someone here in this forums to give me a step-by-step, I’m willing to start everything from scratch and follow your instructions.
for php, I did sudo 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 this is what the instructions page says…
So, I think it might be something else? Where is the php error log, I’ll post it here to let you check
EDIT: right click and view page source has the following:
right click, view page source, the page itself is blank
I’m only showing the page source to see if something is being loaded and yes, piwik is showing up, but the page itself is blank
I’ve installed the required LAMP stack. I have linux, a working apache2, installed mysql but not sure if it’s working, and installed php.
EDIT: my steps are:
For apache2: sudo apt-get install apache2 -y
For mysql: sudo apt-get install mysql-server -y
For php: 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
Is this right so far? I also tried placing piwik in the default /var/www/html directory, delete the default index.html then restart by sudo /etc/init.d/apache2 restart refresh the page and still blank
oddly enough, all the tutorials I’ve read have the mysql prompt them to enter root password during installation, but I never got that prompt? Has it been removed in debian stretch or maybe the latest version of mysql doesn’t do that anymore?
I mean the command sudo apt-get install mysql-server -y is supposed to ask you to enter your password during installation, I never got it, which I think is odd
EDIT: ok, I’ve followed the link you posted, and I can confirm that php is not working with apache2, not even a simple php code. I’ll purge my system and install everything from scratch, not sure if I messed up somewhere.
You Onlinemedien to run this if you want to compile the geoip php module from scratch. But thankfully you don’t need to as the „php-geoip“ package already includes the module. (This is also mentioned in the linked guide)
Were you able to get php to work (e.g. running phpmyadmin)?
I can’t think of any solution, apart from checking the PHP error logs.
But if you aren’t getting thousands of visitors (which I doubt if you are using a Raspberry Pi), you could try GeoIP (PHP).
Tip from someone who used to host his websites on a Raspberry Pi: Make regular backups of your data outside of the Raspberry Pi. I can’t count how often the data on the SD-card got corrupted.
It is working on my server, but I have installed the geoip-database-contrib debian-package, which automatically fetches the latest database files. In addition I haven’t changed the php.ini
I don’t know where Apache puts the PHP logs, but var/log/php or var/log/apache are possible.