Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless install / command line piwik remote install #1586

Closed
robocoder opened this issue Aug 14, 2010 · 11 comments
Closed

Headless install / command line piwik remote install #1586

robocoder opened this issue Aug 14, 2010 · 11 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@robocoder
Copy link
Contributor

Use cases:

  • 3rd party apps seeking deeper integration
  • hosting providers (or script providers) offering more seamless installs
  • puppet installation

As we've seen (eg Typo3, Dreamhost, SimpleScript) bypass (in various degrees) the native installer which increasingly does more system checks and initialization (eg salt, .htaccess, robots.txt, favicon.ico, web.config). This sometimes results in misplaced support requests.

A headless install would accept the configuration via get/post parameters, run thru the installation steps, and then either return success (200 Ok and any warnings) or (4xx/5xx and the warnings+error messages).

We would also have to publish an integration guide to all the configuration parameters, defaults, and required/mandatory vs optional (eg overwrite existing tables).

@mattab
Copy link
Member

mattab commented Aug 14, 2010

Ideally, there would be an API.php in the Installation plugin that would trigger all these tasks. This won't 'just work' as the API requires plugin to be initialized, which requires the installation to be done, but this could probably be changed.

@anonymous-matomo-user
Copy link

i'm working on a solution for TYPO3. (works with 0.9)
Which also downloads newest piwik. So it's not the best to integrate it so deeply in piwik, but to have some classes whick check the install an download and configure piwik.

I great option would be to have config file, which loads options/variables directly from an included php file.

If you work with TYPO3 - feedback is welcome ;)
http://typo3.org/extensions/repository/view/piwikintegration/current/

I'm working on refactoring the classes to make it usable for other systems as well.
My current ideas:

Part 1:

  • Bootstrap seperated from Piwik (small API for downloading and checking the install)

Part 2:

  • sth. like Piwik plugin, to configure / install / update piwik

Both together make a headless install.
All options are passed through the installer class. This options the ability to easily use different sources for the options (cms config / forms / SOAP / REST ...).

Hope that's interesting for you.

@mattab
Copy link
Member

mattab commented Aug 16, 2010

kaystrobach, I haven't looked at the code, but having code to install Piwik automatically is definitely something we are interested in. Would you be interested to work on this and have your code integrated into Piwik core? what is your vision for this?

@anonymous-matomo-user
Copy link

my vision is to make it public available. - and yes am working active on that project.

The first step is the refactoring of the code, to make other options easy to implement.
Currently i would like to coordinate the development via forge.typo3.org, as my complete development environment is based on TYPO3 ;)

I will take a look on the hooks, if i'm right there was a hook to catch if piwik is not installed...
I'll post some information in the next week.

@robocoder
Copy link
Contributor Author

I've had a chance to look at various remixes, and I think we should adapt Kay's idea from #781, i.e., a config file with an install section. If "preconfig.ini.php" exists, the installer reads it. There would also be a headless setting (defaults to 0 if not set).

We would add a well-documented preconfig.ini.sample.php for vendors/integrators.

@mattab
Copy link
Member

mattab commented Nov 24, 2010

as simplescripts, fantastico, MS web installer, etc. are all compatible with Piwik already, this would have less impact. Of course, still a nice to have :)

@anonymous-matomo-user
Copy link

there is a stable release of piwikintegration rolled out for a while with some classes for fully automated installation:

http://typo3.org/extensions/repository/view/piwikintegration/current/

@robocoder
Copy link
Contributor Author

Wow, Kay, that's some serious integration. This ticket has a narrower scope. We assume Piwik has already been downloaded and extracted. We just want to provide a way to bypass the Installation UI.

Looking at http://typo3.org/extensions/repository/view/piwikintegration/current/info/lib%252Fclass.tx_piwikintegration_config.php/ I see you have more requirements than what the re-packagers are doing, e.g., disabling the site selector.

@anonymous-matomo-user
Copy link

jepp, the idea of the integration was to make it as headless as possible ;)
This way many users can use piwik with ease and without knowing what they have to setup.

In the class.tx_update.php there are possibilities to set even more options directly (e.g. to fullfill the german personal data protection act).

My dream was the integration of something similar directly into piwik, so that other cms systems may integrate piwik similar ;) - But as far as i know TYPO3 much better than piwik (from the programmers point of view), i added some TYPO3 related depencies (they should be easily removeable ...)

Thanks for the "WOW" ;)
Kay

@mattab
Copy link
Member

mattab commented Jan 13, 2014

We have implemented this plugin please get in touch if you are interested.

@robocoder robocoder added this to the Future releases milestone Jul 8, 2014
@robocoder robocoder self-assigned this Jul 8, 2014
@mattab mattab removed the worksforme The issue cannot be reproduced and things work as intended. label Jul 22, 2016
@mattab
Copy link
Member

mattab commented Jul 22, 2016

see duplicate #781

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants