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
Comments
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. |
i'm working on a solution for TYPO3. (works with 0.9) 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 ;) I'm working on refactoring the classes to make it usable for other systems as well. Part 1:
Part 2:
Both together make a headless install. Hope that's interesting for you. |
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? |
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. I will take a look on the hooks, if i'm right there was a hook to catch if piwik is not installed... |
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. |
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 :) |
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/ |
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. |
jepp, the idea of the integration was to make it as headless as possible ;) 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" ;) |
We have implemented this plugin please get in touch if you are interested. |
see duplicate #781 |
Use cases:
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).
The text was updated successfully, but these errors were encountered: