Piwik is an open source Web site statistics software,
The Piwik installation process is also very simple,
You need to install the lamp or LNMP Web run environment first.
Installation diagram
Piwik software Download: http://builds.piwik.org/piwik.zip
Installation screenshot
The following error was reported when installing Piwik on the server:
In_array () expects parameter 2 to is array, null given in '/alidata/www/piwik/plugins/installation/controller.php ' at the Line 742 #0 piwik_errorhandler (...) called at [:] #1 in_array (...) called at [/alidata/www/piwik/plugins/installation/con TROLLER.PHP:742] #2 piwik_installation_controller::getsysteminformation (...) called at [/alidata/www/piwik/plugins/ installation/controller.php:945] #3 piwik_installation_controller->setupsystemcheckview (...) called at [/alidata /WWW/PIWIK/PLUGINS/INSTALLATION/CONTROLLER.PHP:106] #4 piwik_installation_controller->systemcheck (...) called at [/alidata/www/piwik/plugins/installation/installation.php:76] #5 piwik_installation->dispatch (...) called at [ :] #6 call_user_func_array (...) called at [/alidata/www/piwik/libs/event/dispatcher.php:213] #7 event_dispatcher-> Addobserver (...) called at [/alidata/www/piwik/core/pluginsmanager.php:544] #8 piwik_pluginsmanager-> Addpluginobservers (...) called at [/alidata/www/piwik/core/pluginsmanager.php: 406] #9 piwik_pluginsmanager->reloadplugins (...) called at [/alidata/www/piwik/core/pluginsmanager.php:289] #10 Piwik_pluginsmanager->loadplugins (...) called at [/alidata/www/piwik/core/frontcontroller.php:265] #11 Piwik_ Frontcontroller->init (...) called at [/alidata/www/piwik/index.php:51]
According to experience that is the number of function parameters, look at the code is the wrong 2 parameters Ah, look up one of the variables using the Get_loaded_extensions function to get the PHP environment installed all the extensions, from this can be guessed that the server may be disabled by the function. Analysis of php.ini files can be found as we think. Remove this function from the list of disabled functions, and restart the PHP service (Apache directly restarts the Apache service). This will not be reported as a mistake.