Giter Site home page Giter Site logo

Comments (9)

aureq avatar aureq commented on July 2, 2024 1

This will be part of the 3.6.0 onward.
merged #84

from matomo-package.

Dreamsorcerer avatar Dreamsorcerer commented on July 2, 2024

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.

Dreamsorcerer avatar Dreamsorcerer commented on July 2, 2024

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.

aureq avatar aureq commented on July 2, 2024

@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.

Dreamsorcerer avatar Dreamsorcerer commented on July 2, 2024

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.

Findus23 avatar Findus23 commented on July 2, 2024

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.

Dreamsorcerer avatar Dreamsorcerer commented on July 2, 2024

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.

mackuba avatar mackuba commented on July 2, 2024

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.

mackuba avatar mackuba commented on July 2, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.