Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Matotmo automated setup

$
0
0

Hi,

First of all, Thanks for the wonderful application!. I didnt know analytics was this easy before coming across matomo!!.

I am trying to automate setup of matomo. Access to db is all fine and I can access db from ssh and from matomo.

To test how much of setup can be automated, I created matomo/config/config.ini.php and matomo/config/global.ini.php with proper database configurations in a matomo installation which do not have any database configured. I accessed the matomo page (this page works if configs are not edited) and encountered with an error

Your host may have disabled parse_ini_file()

I faced the same situation as mentioned in the link above. After creating and updating matomo/config/global.ini.php with proper database config, I faced another error

Cannot connect to the database:

**SQLSTATE[HY000] [2002] Connection timed out**

I think this stage can be automated because this is already automated in bitnami imagtes. Any help is much appreciated

Update

I came across this plugin extra-tools I followed read me and executed console matomo:install --install-file=install.json but installation haled with below errror

./console matomo:install --install-file=install.json 
Are you really sure you would like to install Matomo - if you have an installation already, it will be wiped? y
ERROR [2021-06-18 13:13:57] 18721  Uncaught exception: Error: Class 'Symfony\Component\Process\Process' not found in /var/www/html/matomo/plugins/ExtraTools/Lib/Drop.php:32
Stack trace:
#0 /var/www/html/matomo/plugins/ExtraTools/Commands/InstallMatomo.php(233): Piwik\Plugins\ExtraTools\Lib\Drop->execute()
#1 /var/www/html/matomo/vendor/symfony/console/Symfony/Component/Console/Command/Command.php(257): Piwik\Plugins\ExtraTools\Commands\InstallMatomo->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/html/matomo/vendor/symfony/console/Symfony/Component/Console/Application.php(874): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/html/matomo/vendor/symfony/console/Symfony/Component/Console/Application.php(195): Symfony\Component\Console\Application->doRunCommand(Object(Piwik\Plugins\ExtraTools\Commands\InstallMatomo), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 [internal function]: Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#5 /var/www/html/matomo/core/Console.php(130): call_user_func(Array, Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /var/www/html/matomo/core/Access.php(673): Piwik\Console->Piwik\{closure}()
#7 /var/www/html/matomo/core/Console.php(131): Piwik\Access::doAsSuperUser(Object(Closure))
#8 /var/www/html/matomo/core/Console.php(82): Piwik\Console->doRunImpl(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /var/www/html/matomo/vendor/symfony/console/Symfony/Component/Console/Application.php(126): Piwik\Console->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /var/www/html/matomo/console(32): Symfony\Component\Console\Application->run()
#11 {main}
Uncaught exception in /var/www/html/matomo/plugins/ExtraTools/Lib/Drop.php line 32:
Class 'Symfony\Component\Process\Process' not found

5 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles