手冊:維護腳本
Appearance
From mediawiki.org
This page is a translated version of the page Manual:Maintenance scripts and the translation is 100% complete.
Languages:
| 查 · 論 · 編 |
維護腳本用於進行各種管理、導入、維護、匯報與升級任務。
這些腳本用PHP編寫,位於MediaWiki安裝目錄下的maintenance子目錄。
MediaWiki含有超過200個 維護腳本,它們的通用性和質量各不相同。 在使用腳本前,您應當仔細閱讀其的文檔;如果它沒有附帶文檔,使用時請多加小心。
自MediaWiki 1.40起,維護腳本應間接通過
php ./maintenance/run.php 調用。直接調用維護腳本會觸發警告。In order to run most scripts, you will need access to the command line of the server or shell access through an SSH client like ssh or PuTTY. For details, see our information about running scripts .
If a script needs to modify the structure of a database (as does Update.php, for example), special configuration variables may need to be set in LocalSettings.php to allow this. See the relevant configuration information for details.
For an extensive list of scripts that may be run, see our list of scripts broken down by type.