安裝debian 上的mediawiki
發表於 : 2026-04-01, 20:58
為了避免安裝套件版本相依性失敗
直接在Debian裝mediawiki
先安裝
再來
其他mediawiki所需套件會自動一併安裝完成
請參考
https://www.mediawiki.org/wiki/Manual:R ... _or_Ubuntu
如此也把資料庫程式也一併裝好
Log in to MariaDB.
If you can log in as root (e.g., using sudo mysql -u root if unix_socket authentication is configured on MariaDB 10.4+), do so.
If you have a current password:
Once logged into the MariaDB [(none)]> prompt, execute the following command, replacing 'MyN3wP4ssw0rd' with your strong password:
接下來安裝phpmyadmin
apt install phpmyadmin
建立資料錄使用者phpmyadmin帳號及密碼
將 phpmyadmin 設為只能本地存取(還不是ssl加密連線)
nano /etc/phpmyadmin/apache.conf
接下來安裝webmin
apt install curl
sudo apt-get install webmin --install-recommends
nano /etc/webmin/miniserv.conf
設定開機打開webmin
sudo systemctl enable webmin
sudo systemctl restart webmin
打開firefox browser
https://127.0.0.1:10000
接下來要設定awstats
viewtopic.php?t=3812&sid=22639dc0a9e8f8 ... 9df2c0e876
如果awstats中/var/log/apache2的chown 跟chmod設定正確
那麼webmin日誌旋轉 log rotate應該如下圖 Debian 安全性更新
請參考
https://www.debian.org/security/
sudo apt install unattended-upgrades
這時登入webmin更新
https://127.0.0.1:10000
直接在Debian裝mediawiki
先安裝
代碼: 選擇全部
apt install composer代碼: 選擇全部
apt install mediawiki請參考
https://www.mediawiki.org/wiki/Manual:R ... _or_Ubuntu
如此也把資料庫程式也一併裝好
Log in to MariaDB.
If you can log in as root (e.g., using sudo mysql -u root if unix_socket authentication is configured on MariaDB 10.4+), do so.
If you have a current password:
代碼: 選擇全部
mysql -u root -p代碼: 選擇全部
ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyN3wP4ssw0rd';
apt install phpmyadmin
建立資料錄使用者phpmyadmin帳號及密碼
將 phpmyadmin 設為只能本地存取(還不是ssl加密連線)
nano /etc/phpmyadmin/apache.conf
代碼: 選擇全部
# line 8 : set access permission
Require ip 127.0.0.1 123.240.180.243apt install curl
代碼: 選擇全部
curl -o webmin-setup-repo.sh https://raw.githubusercontent.com/webmin/webmin/master/webmin-setup-repo.sh
sudo sh webmin-setup-repo.sh
nano /etc/webmin/miniserv.conf
代碼: 選擇全部
# add to last line : add access permission
allow=127.0.0.1 123.240.180.243sudo systemctl enable webmin
sudo systemctl restart webmin
打開firefox browser
https://127.0.0.1:10000
接下來要設定awstats
viewtopic.php?t=3812&sid=22639dc0a9e8f8 ... 9df2c0e876
如果awstats中/var/log/apache2的chown 跟chmod設定正確
那麼webmin日誌旋轉 log rotate應該如下圖 Debian 安全性更新
請參考
https://www.debian.org/security/
sudo apt install unattended-upgrades
這時登入webmin更新
https://127.0.0.1:10000