plugin:statistics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:statistics [2016-08-30 11:47] – [Report Images not rendering] 194.73.108.104 | plugin:statistics [2024-02-09 22:20] (current) – Aleksandr | ||
---|---|---|---|
Line 6: | Line 6: | ||
email : andi@splitbrain.org | email : andi@splitbrain.org | ||
type : admin, action | type : admin, action | ||
- | lastupdate : 2016-08-17 | + | lastupdate : 2024-01-30 |
- | compatible : Hrun, Ponder Stibbons, Binky, Weatherwax | + | compatible : Hrun, Ponder Stibbons, Binky, Weatherwax, Elenor of Tsort, Detritus |
depends | depends | ||
conflicts | conflicts | ||
Line 68: | Line 68: | ||
===== Installing ===== | ===== Installing ===== | ||
- | | + | ==== Requirements ==== |
- | - Install php5 mysqli ((for Debian/ | + | |
- | - Create the MySQL database. | + | * A MySQL datatabase |
+ | * mysqli extension for PHP | ||
+ | * libgd extension for PHP | ||
+ | |||
+ | ==== Installation ==== | ||
+ | |||
+ | | ||
+ | - Create the MySQL database | ||
- Create the needed MySQL tables with the provided '' | - Create the needed MySQL tables with the provided '' | ||
- Configure the database access through the [[plugin: | - Configure the database access through the [[plugin: | ||
+ | |||
+ | ==== DB creation ==== | ||
+ | |||
+ | On the shell run the following commands: | ||
+ | < | ||
+ | # mysql -u root -p | ||
+ | MariaDB [(none)]> | ||
+ | MariaDB [(none)]> | ||
+ | </ | ||
To create the needed MySQL tables you can | To create the needed MySQL tables you can | ||
Line 78: | Line 94: | ||
- either use phpmyadmin' | - either use phpmyadmin' | ||
* Select the database that is used by your DokuWiki and chose " | * Select the database that is used by your DokuWiki and chose " | ||
- | - import manually using MySQL in your shell | + | - import manually using MySQL in your shell < |
- | + | ||
- | **Method 1** | + | |
- | < | + | |
# mysql -u db_user -p your_dokuwiki_database < / | # mysql -u db_user -p your_dokuwiki_database < / | ||
- | </ | ||
- | |||
- | **Method 2** | ||
- | < | ||
- | # mysql -u db_user -p your_dokuwiki_database | ||
- | Enter password: | ||
- | [...] | ||
- | Type ' | ||
- | |||
- | mysql> \. / | ||
</ | </ | ||
Line 112: | Line 115: | ||
* when fixed, stats about search bots could be added | * when fixed, stats about search bots could be added | ||
* the search word parsing is a bit flaky (" | * the search word parsing is a bit flaky (" | ||
- | |||
- | ===== Known Issues ===== | ||
- | ==== Wiki becomes inaccessible ==== | ||
- | |||
- | |||
- | **Symptoms: ** Wiki becomes completely inaccessible after install and Databse setup | ||
- | |||
- | **Cause: ** There is a missing MySQL Component not included in the standard installation of MySQL for the Linux distribution. | ||
- | |||
- | With MySQL components missing the whole wiki is rendered inaccessible due to MySQL transactions failing prior to logins or any user actions being logged or at least being attempted to log. Reviewing the apache logs revealed my particular issue and exposed the missing components. | ||
- | |||
- | <code bash> | ||
- | # find all the recent logs being generated on the server in the last 5 minutes only | ||
- | |||
- | find / -name ' | ||
- | |||
- | # the results on my Ubuntu server: | ||
- | |||
- | / | ||
- | / | ||
- | / | ||
- | |||
- | # reviewing the apache error log showed: | ||
- | # command: | ||
- | | ||
- | tail / | ||
- | |||
- | # result: | ||
- | |||
- | [Tue Aug 30 07: | ||
- | |||
- | </ | ||
- | |||
- | The fix was to install the missing component either php-mysqli((RedHat/ | ||
- | |||
- | ==== Report Images not rendering ==== | ||
- | |||
- | **Error:** from the apache log again: PHP Fatal error: | ||
- | |||
- | **Solution: | ||
- | |||
- | |||
plugin/statistics.1472550433.txt.gz · Last modified: 2016-08-30 11:47 by 194.73.108.104