Comments (9)
This will be part of the 3.6.0 onward.
merged #84
from matomo-package.
Actually, the URLs are wrong all over the place, the README links are wrong here as well: https://github.com/matomo-org/matomo-package
from matomo-package.
OK, taking a little look into your postinst script, I see you are testing if the apache config dir exists. So, it looks like this is clashing with the php-fpm packgage, which installs /etc/apache2/conf-available/php7.0-fpm.conf regardless of whether Apache is installed or not.
Manually deleting the directory before installing Matomo provides a workaround.
from matomo-package.
@Dreamsorcerer at this point, nginx is not support. Also having more information about your environment would help. Finally, I'd be interested to see your nginx configuration.
from matomo-package.
For this bug, the issue is not setting up nginx, I'm not expecting you to support nginx (and I'd rather customise the server config myself anyway).
But, I expect the package not to error and fail to install just because I don't have Apache installed. As I mentioned in the previous comment, this seems to be a clash with the php-fpm package which installs an Apache config file regardless of whether Apache is installed or not.
Installing this package then checks if the Apache config directory exists (which it does thanks to php-fpm), and installs another config. The error happens when it tries to run a2enconf, which does not exist, because apache2 is not installed.
I'm sure there are a number of possible solutions here, such as checking if a2enconf is available, before running it, or being more conservative and not running a2enconf at all, and just let the user enable the config once they're happy with it, etc.
from matomo-package.
In case you are interested:
I have completely rewritten the official Matomo nginx config:
matomo-org/matomo-nginx#43
If you have feedback, just comment there.
from matomo-package.
But, as per #69 , I don't see how that config can work. If I set the root to /var/www/mysite/ I get 'File not found' (because that directory is empty). While setting it to /usr/share/matomo/ gives me errors about Matomo not being able to write to /usr/share/matomo/. I'm still completely clueless as to how anybody is supposed to configure a server to run Matomo from this Debian package.
from matomo-package.
I had the same problem, I've added a check if a2enconf
exists in the post-install script before it tries to configure Apache: #84
from matomo-package.
A temporary workaround is to create an empty script at /usr/bin/a2enconf
that just includes #!/bin/bash
and nothing else.
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.