Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

exp:expviewcountupdate

Zählt die Seitenaufrufe aus den Zugriffsprotokollen des Webservers in den Aufrufzähler (ezview_counter), für einen Siteaccess oder mehrere.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/examples/commands/expviewcountupdate.md

On this page

This page is a translation. Read the English original

exp:expviewcountupdate

Zählt die Seitenaufrufe aus den Zugriffsprotokollen des Webservers in den Aufrufzähler (ezview_counter), für einen Siteaccess oder mehrere.

Skript bin/php/expviewcountupdate.php, Code in kernel/private/classes/commands/expviewcountupdate.php. Führen Sie es im Wurzelverzeichnis der Installation aus, als der Benutzer, unter dem der Webserver läuft:

./console exp:expviewcountupdate --help
./console exp:viewcount:update --help
php bin/php/expviewcountupdate.php --help

Hilfetext

Was --help ausgibt, so wie der Befehl es schreibt:

Count the page views of the web server's access logs into the view counter (ezview_counter)
Reads each siteaccess's access log (logfile.ini [AccessLogFileSettings]) from where the last run
stopped, keeps the page views (logfile.ini [ViewCountSettings]) and adds them to the nodes they
showed. Several siteaccesses sharing one log are told apart by the kernel's siteaccess matching.

./console exp:viewcount:update --dry-run --top=20          what a run would count, nothing written
./console exp:viewcount:update                              count (as the cronjob updateviewcount.php)
./console exp:viewcount:update --all-siteaccesses           every siteaccess with a log, not the administrations
./console exp:viewcount:update --siteaccess-list=site,bold  these siteaccesses
./console exp:viewcount:update --dry-run --from-start       the whole log again, as a preview only
./console exp:viewcount:update --skip-to-end                start counting from now: mark the logs as read
./console exp:viewcount:update --reset-state                forget where the runs stopped (the next run reads
                                                            the logs from their first line)
./console exp:viewcount:update --dry-run --format=json      the report as JSON (exp-viewcount/1)
./console exp:viewcount:update --all-siteaccesses --dry-run --log-file=/var/log/httpd/access_log.1 \
      --state-dir=var/tmp/viewcount-trial                    a trial on another log, with a state of its own

Exit code: 0 fine, 1 an error (a log missing, the database refused the counts), 2 usage error,
3 another run held the lock of a log.

Optionen

OptionWertHilfe
--dry-runLesen und berichten, weder die Zahlen noch den Zustand schreiben
--all-siteaccessesJeder Siteaccess aus AvailableSiteAccessList mit einem Zugriffsprotokoll, außer den Administrationen
--siteaccess-listerforderlichDiese Siteaccesses, durch Kommas getrennt (Standard: logfile.ini [ViewCountSettings] SiteAccessList[], sonst der Siteaccess von -s)
--log-fileerforderlichDieses Zugriffsprotokoll für jeden gezählten Siteaccess lesen, statt logfile.ini [AccessLogFileSettings]
--state-direrforderlichDen Zustand hier ablegen, statt in logfile.ini [ViewCountSettings] StateDir
--from-startMit --dry-run: die Protokolle ab ihrer ersten Zeile lesen, ohne den Zustand zu beachten
--skip-to-endNichts zählen; den Zustand auf das Ende der Protokolle setzen, damit der nächste Lauf nur neuere Zeilen zählt
--reset-stateNichts zählen; den Zustand der Siteaccesses entfernen, damit der nächste Lauf die Protokolle ab ihrer ersten Zeile liest
--toperforderlichDie meistbesuchten Knoten des Laufs auflisten (Standard 0, keine)
--formaterforderlichtext (Standard) oder json

Aus den Optionsdefinitionen im Code gelesen (startup(), getOptions(), options() oder ezcConsoleOption). Jedes Skript nimmt außerdem die Standardoptionen des Skript-Frameworks (--help, --siteaccess, --debug, --quiet, --allow-root-user ...).

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/expviewcountupdate.php, kernel/private/classes/commands/expviewcountupdate.php. Bearbeiten Sie diese Seite nicht: Ändern Sie die Quelle oder die deutsche Übersetzung und erzeugen Sie sie neu (wie). Freie Dokumentation: GFDL 1.3 oder später.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x