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:configphp

Listet, liest, setzt und entfernt die define()-Einstellungen der config.php, mit Typ und mit php -l geprüft, beschrieben durch config.php-RECOMMENDED (set und unset: Probelauf ohne --apply).

Download as PDF

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

On this page

This page is a translation. Read the English original

exp:configphp

Listet, liest, setzt und entfernt die define()-Einstellungen der config.php, mit Typ und mit php -l geprüft, beschrieben durch config.php-RECOMMENDED (set und unset: Probelauf ohne --apply).

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

./console exp:configphp --help
./console exp:config:list --help
./console exp:config:get --help
./console exp:config:set --help
./console exp:config:unset --help
php bin/php/configphp.php --help

Hilfetext

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

The define() settings of config.php

  ./console exp:config:list [--only-set] [--format=text|json]     every setting config.php-RECOMMENDED documents, with
                                                                 the value config.php has, the proposed one and the description
  ./console exp:config:get <NAME> [--format=text|json]           the value (exit 1 when it is not set)
  ./console exp:config:set <NAME> <value> [--type=<t>] [--apply] set it: in place, else where the documentation has it, else added
  ./console exp:config:unset <NAME> [--apply]                    comment it out again

config.php is read as PHP tokens, never run; only the value of the one define() changes, comments and
order stay. set and unset show the diff and write nothing without --apply (--dry-run is the default;
both together: exit 2). A write backs config.php up to var/backup/config/<time>/ (mode and owner
kept), checks the new file with php -l and renames it into place. A config.php that does not compile is
refused. Values of names with PASS, SECRET, KEY, TOKEN are shown as ******** unless --show-secrets.
Types (--type): bool, int, octal, float, string, null; without --type the current or the documented
value decides, true/false/null are always the PHP values. A value starting with "-": --value=<value>.

Optionen

OptionWertHilfe
--applyset, unset: die config.php schreiben (ohne die Option wird nur der Diff gezeigt)
--dry-runDer Standard, erhalten für Skripte, die die Option übergeben: den Diff zeigen, nichts ändern
--typeerforderlichset: der Typ des Werts: bool, int, octal, float, string, null
--valueerforderlichset: der Wert (statt des Arguments nach dem Namen), für einen Wert, der mit "-" beginnt
--allow-unknownset: eine Einstellung hinzufügen, die config.php-RECOMMENDED nicht beschreibt
--show-secretsDie Werte von Passwörtern, Geheimnissen, Schlüsseln und Tokens anzeigen
--formaterforderlichlist, get: text (Standard) oder json
--only-setlist: nur die Einstellungen, die config.php setzt
--rooterforderlichDas Wurzelverzeichnis der Installation (Standard: die Installation, zu der der Befehl gehört)
--fileerforderlichDie Konfigurationsdatei (Standard: <root>/config.php)
--recommendederforderlichDie beschriebenen Einstellungen (Standard: <root>/config.php-RECOMMENDED)

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 ...).

Argumente: [verb][name][value].

Siehe auch


Erzeugt von ./console exp:help:examples --language=ger-de aus bin/php/configphp.php, kernel/private/classes/commands/configphp.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