MediaWiki: Difference between revisions
From FlowerHouseWiki
No edit summary |
No edit summary |
||
Line 9: | Line 9: | ||
}} | }} | ||
<p> | <p>MediaWiki is reachable under <syntaxhighlight lang="Bash" inline>192.168.88.14</syntaxhighlight> which is located in the ServerVLAN.</p> | ||
<p>The subdomain is [https://wiki.flowerhouse.at wiki.flowerhouse.at] which is handled by the [[ReverseProxy]].</p> | <p>The subdomain is [https://wiki.flowerhouse.at wiki.flowerhouse.at] which is handled by the [[ReverseProxy]].</p> | ||
Line 16: | Line 16: | ||
<p>Bash script to update phpMyAdmin:</p> | <p>Bash script to update phpMyAdmin:</p> | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
GNU nano 5.4 UpdateMediaWiki.sh | |||
#!/bin/bash | |||
echo -e "-------------------------------------------------------------------------------------------" | |||
echo -e "- Which version do you want to update to?" | |||
echo -e "-------------------------------------------------------------------------------------------" | |||
read version | |||
echo -e "-------------------------------------------------------------------------------------------" | |||
echo -e "- Update p4d to version ${version}?" | |||
echo -e "-------------------------------------------------------------------------------------------" | |||
echo -e -n "Continue? [y/N]" | |||
echo "" | |||
read -n 1 c | |||
if [ "${c}" != "y" ]; then | |||
exit 0 | |||
fi | |||
wget https://releases.wikimedia.org/mediawiki/1.37/mediawiki-${version}.tar.gz || exit 1 | |||
tar -xvf mediawiki-${version}.tar.gz || exit 1 | |||
rm mediawiki-${version}.tar.gz || exit 1 | |||
cp mediawiki-${version}/* /var/www/html/w/ -R || exit 1 | |||
rm -r mediawiki-${version} || exit 1 | |||
chown -R www-data:www-data /var/www/html/w || exit 1 | |||
chmod -R 775 /var/www/html/w || exit 1 | |||
systemctl restart apache2 | |||
echo -e "-------------------------------------------------------------------------------------------" | |||
echo -e "- Update to version ${version} completed!" | |||
echo -e "-------------------------------------------------------------------------------------------" | |||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 00:18, 22 February 2022
IP: | 192.168.88.14 |
---|---|
MAC: | 5E:3E:A5:3C:B4:80 |
Domain: | wiki.flowerhouse.at |
OS: | Debian Bullseye |
---|---|
RAM: | 512MB |
Cores: | 1 |
MediaWiki is reachable under 192.168.88.14
which is located in the ServerVLAN.
The subdomain is wiki.flowerhouse.at which is handled by the ReverseProxy.
Basic Setup
Update Script
Bash script to update phpMyAdmin:
GNU nano 5.4 UpdateMediaWiki.sh
#!/bin/bash
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Which version do you want to update to?"
echo -e "-------------------------------------------------------------------------------------------"
read version
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update p4d to version ${version}?"
echo -e "-------------------------------------------------------------------------------------------"
echo -e -n "Continue? [y/N]"
echo ""
read -n 1 c
if [ "${c}" != "y" ]; then
exit 0
fi
wget https://releases.wikimedia.org/mediawiki/1.37/mediawiki-${version}.tar.gz || exit 1
tar -xvf mediawiki-${version}.tar.gz || exit 1
rm mediawiki-${version}.tar.gz || exit 1
cp mediawiki-${version}/* /var/www/html/w/ -R || exit 1
rm -r mediawiki-${version} || exit 1
chown -R www-data:www-data /var/www/html/w || exit 1
chmod -R 775 /var/www/html/w || exit 1
systemctl restart apache2
echo -e "-------------------------------------------------------------------------------------------"
echo -e "- Update to version ${version} completed!"
echo -e "-------------------------------------------------------------------------------------------"