因此,当我尝试运行更新脚本时,收到以下消息:
A copy of your installation's LocalSettings.php must exist and be readable in the source directory. Use --conf to specify it.
我执行的命令是:php maintenance/update.php
答案1
您需要向维护脚本指定 LocalSettings.php 文件的路径。例如:
php maintenance/importImages.php --conf /var/wwwdata/website.org/wiki/LocalSettings.php /tmp/wikiimages .jpg .png .svg