Hi, following the path of integrating piwik into anther control panel (i-mscp) I am getting stuck at this point when creating the database.
Basically I accomplished so far:
[li] Crafted config.ini.php with user, password, db connections
[/li][li] Create specific user for this database
[/li][li] Grant the proper privileges for this user to the database
[/li][li] Create the database
What I would like to know is what would the appropiate process to create the database enries required, since I am getting stuck in:
I can’t see neither the source for simplescripts script neither scriptaculous without registering into their sites, and simplescripts requires me to set a hosting provider. Softaculous requires me to create an acount in control system I don’t have.
Could you point me to the source code of those scripts?
Sorry I don’t know if we can actually find the source codes, maybe they are private. But I know it’s possible to bypass the Installer. Maybe we need to patchPiwik to make it easier though?[/quote]
That would be great, I don’t considerer myself as a programmer, so I don’t know how would be the best way to deal with it, what I would need (I think) would be to call:
That’s the code that seems to create/upgrade the databases when needed, I tried to create a script that would handle that, but I didn’t succed
This is what I got so far.
I’m developer at IMSCP. What we want do exactly it’s to allow our customers to use your software instead of awstats for their statistics. I’ve looked a lot at your code and I must say that it’s really hard to dump any database update from it since many of them are generated on the fly according current database state. Well, I would recommend to propose a kind of CLI api for both install/update db tasks. For integration, we are using incremental process and so, it’s more easy for us to trigger a CLI command to either install or update Piwik database than ask our users to connect to piwik to do the needed job after i-MSCP install/update.
You are providing a great alternative to the awstats dinosaur and it’s always a pleasure for us to integrate such software.
Thanks for your interest and integrating piwik in your software! Maybe we could improve the script, currently you can run the DB update from the CLI though, maybe that’s enough? see: Update Piwik - Analytics Platform - Matomo