MediaWiki files
#!/bin/bash
DBname=strela_wiki
DBuser=wikiuser
MWSQL=$DBname-dump_`date +%F`.sql
MWDIR=/opt/mediawiki
MWBCP=wiki-strela-backup_`date +%F`.tar.gz
echo "mysqldump --user=$DBuser --password $DBname"
mysqldump --user=$DBuser --password $DBname -c > $MWSQL
tar -czf $MWBCP $MWSQL -C $MWDIR LocalSettings.php images \
-P /etc/httpd/conf.d/mediawiki.conf /etc/httpd/conf.d/welcome.conf \
/var/www/html/robots.txt /var/www/html/google*.html
rm $MWSQL
chmod 400 $MWBCP
Alias /mediawiki /opt/mediawiki
Alias /files /opt/web_files
# Short URL
Alias /wiki /opt/mediawiki/index.php
Alias /index.php /opt/mediawiki/index.php
<Directory /opt/mediawiki>
AllowOverride None
Require all granted
</Directory>
<Directory /opt/web_files>
AllowOverride None
Require all granted
</Directory>