Mediawiki - как поменять пароль пользователя через ssh

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск

Mediawiki - как поменять пароль пользователя через ssh

Команда для изменения пароля пользователя для Mediawiki:

$ cd maintenance/ 
$ php changePassword.php --userid=1 --password="new_password"


Все опции скрипта changePassword.php:

Usage: php changePassword.php [--conf|--dbgroupdefault|--dbpass|--dbuser|--globals|--help|--memory-limit|--password|--profiler|--quiet|--server|--user|--userid|--wiki]

Generic maintenance parameters:
    --help (-h): Display this help message
    --quiet (-q): Whether to suppress non-error output
    --conf: Location of LocalSettings.php, if not default
    --wiki: For specifying the wiki ID
    --globals: Output globals at the end of processing for debugging
    --memory-limit: Set a specific memory limit for the script, "max"
        for no limit or "default" to avoid changing it
    --server: The protocol and server name to use in URLs, e.g.
        http://en.wikipedia.org. This is sometimes necessary because server name
        detection may fail in command line scripts.
    --profiler: Profiler output format (usually "text")

Script dependant parameters:
    --dbuser: The DB user to use for this script
    --dbpass: The password to use for this script
    --dbgroupdefault: The default DB group to use.

Script specific parameters:
    --password: The password to use
    --user: The username to operate on
    --userid: The user id to operate on
Индекс цитирования