「Install MediaWiki on Debian Bullseye」修訂間的差異
跳至導覽
跳至搜尋
(建立內容為「 apt update apt upgrade --yes apt install --yes mediawiki apt install --yes imagemagick apt install --yes git apt install --yes php-sqlite3 nano /etc/mediawi…」的新頁面) |
|||
行 6: | 行 6: | ||
apt install --yes php-sqlite3 |
apt install --yes php-sqlite3 |
||
nano /etc/mediawiki/1/LocalSettings.php |
nano /etc/mediawiki/1/LocalSettings.php |
||
+ | ## The URL base path to the directory containing the wiki; |
||
+ | ## defaults for all runtime URL paths are based off of this. |
||
+ | ## For more information on customizing the URLs |
||
+ | ## (like /w/index.php/Page_title to /wiki/Page_title) please see: |
||
+ | ## https://www.mediawiki.org/wiki/Manual:Short_URL |
||
+ | $wgScriptPath = "/w"; |
||
+ | $wgScriptExtension = ".php"; |
||
+ | $wgArticlePath = "/wiki/$1"; |
||
+ | $wgUsePathInfo = true; |
||
+ | |||
+ | ## The protocol and server name to use in fully-qualified URLs |
||
+ | $wgServer = "https://wiki.domain"; |
於 2022年2月8日 (二) 18:18 的修訂
apt update apt upgrade --yes apt install --yes mediawiki apt install --yes imagemagick apt install --yes git apt install --yes php-sqlite3
nano /etc/mediawiki/1/LocalSettings.php
## The URL base path to the directory containing the wiki; ## defaults for all runtime URL paths are based off of this. ## For more information on customizing the URLs ## (like /w/index.php/Page_title to /wiki/Page_title) please see: ## https://www.mediawiki.org/wiki/Manual:Short_URL $wgScriptPath = "/w"; $wgScriptExtension = ".php"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;
## The protocol and server name to use in fully-qualified URLs $wgServer = "https://wiki.domain";