Comments (10)
Hi @spacekookie
In order to install piwik correctly, the config.ini.php
must be present. /usr/share/piwik/config
is a symbolic link to /etc/piwik/
so check it's pointing correctly to that folder.
Furthermore, the configuration file config.ini.php
must contain the correct database credentials:
; <?php exit; ?> DO NOT REMOVE THIS LINE
; file automatically generated or modified by Piwik; you can manually override the default values in global.ini.php by redefining them in this file.
[database]
host = "localhost"
username = "piwik"
password = "somesup3rSkretP4ssw0rd!~"
dbname = "piwik"
tables_prefix = "piwik_"
from matomo-package.
Hey there. The symlink from /usr/share/piwik/config
was correct. I got an error because config.ini.php
didn't exist.
Using your example I added a file, installed the mysql-server
package but it then complained to not find a DB. So I went into the mysql console and created a "piwik" database and a "piwik" user to access it.
Now a new error message comes up:
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.piwik_log_visit' doesn't exist
This can't seriously be how one goes about configuring this software. Isn't a package supposed to make it easier to install and configure a piece of software? The fact that the config is missing, it's not installing all dependencies (SQL server) and now having to do manual configuration feels like something has seriously gone wrong.
And I hope that it can be fixed because if I manually wanted to configure piwik I would install it from source.
from matomo-package.
Hi @spacekookie
Have you followed the documentation on how to install piwik? http://piwik.org/docs/installation/
The database schema is created by the web gui and not from the Debian package itself.
To get a better understanding at why the Debian package doesn't provide automated installation, please have a look at #44
from matomo-package.
But the package won't install without the database, so that's a catch-22.
from matomo-package.
I'm also having issues installing piwik. I'm installing on Ubuntu 16.04 LTS (xennial). config.ini.php was not created in /etc/piwik/ The MySQL database was not created. The postinst script looks to install the apache configuration (symlink) in /etc/apache2/conf.d/, by on Ubuntu there is no /etc/apache2/conf.d/. The postinst script therefor assumes Apache is not installed. There are however a conf-available and conf-enabled folders.
I'm trying to put the pieces of this install together manually.
php /usr/share/piwki/console core:update --yes fails with this error message
[Zend_Db_Statement_Exception]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.log_visit' doesn't exist
[PDOException]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.log_visit' doesn't exist
debian.piwik.org files haven't been updated since March 7th.
from matomo-package.
Going to http://myhost/piwik reports this confusing error:
Error: Piwik is already installed.
Original error was "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'piwik.option' doesn't exist".
Go back to Piwik.
from matomo-package.
I'm not 100% sure, but I think Piwik is expecting a passwordless root account in MySQL. After clearing the password, the website installation wizard appeared and I walked through about 6 steps to complete the install. I had also removed the config.ini.php file before doing that.
from matomo-package.
@spacekookie Thank you for your patience on this. I've been rather busy (and depressed) but I'm hoping the patch will address the issue.
from matomo-package.
@aureq Hey there. I'm looking forward to being able to install a piwik more easily again :P Also hope you feel better (been there, done that) hugs
Hoping to hear from you again soon.
from matomo-package.
@spacekookie Thank you for your kind words.
Piwik installs without a failure on a fresh debian and ubuntu server. However, it's the system admin to connect their piwik installation to a mysql/mariadb server whether it is local or remote.
from matomo-package.
Related Issues (20)
- Smaller release file (remove not needed files from release) HOT 2
- Do not prepend autoloader HOT 1
- Package for 3.15.5 HOT 3
- On upgrade "The Matomo JavaScript tracker file "/matomo.js" & "/piwik.js" is not writable" HOT 2
- No debian package since 3.13.6 HOT 17
- Automate the packaging of Matomo beta/rc/stable releases via Github actions HOT 6
- Remove the WAG build from the script
- Releasing Matomo 4.0 for Debian HOT 13
- Don't include JS test files in the release
- Exclude phpcs.xml from release package
- Is the Matomo Debian package dead? HOT 72
- Working on debian package generation: .eslintrc ? HOT 1
- Working on debian package generation: autoload.php HOT 1
- Manifest / Integrity check has issues with symlinks HOT 2
- Changes in website format prevents pulling changelog when generating Debian package HOT 8
- Matomo 3.8.1 update? HOT 9
- libmaxminddb recommendations HOT 22
- matomo.php and matomo.js are missing from debian package HOT 1
- Security / Policy breach /usr/share/matomo/misc/user HOT 6
- Debian stretch (Matomo will stop supporting PHP 7.0 in the next major version.) HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from matomo-package.