Difference between revisions of "User:Andreas Plank/new wiki"
From Biowikifarm Metawiki
m |
m |
||
Line 2: | Line 2: | ||
$wgSiteNotice = "Announcing message of upgrade"; | $wgSiteNotice = "Announcing message of upgrade"; | ||
$wgReadOnly = 'Database is in read only mode, because of Upgrading to MediaWiki 1.26.XX'; | $wgReadOnly = 'Database is in read only mode, because of Upgrading to MediaWiki 1.26.XX'; | ||
+ | </syntaxhighlight> | ||
+ | <syntaxhighlight lang="bash"> | ||
+ | cd /var/www | ||
+ | # find an extension | ||
+ | sudo find . -maxdepth 3 -iname '*settings*.php' -type f -exec sudo grep --ignore-case --with-filename --line-number --color=auto "/Arrays" '{}' ';' | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 16:36, 2 December 2015
$wgSiteNotice = "Announcing message of upgrade";
$wgReadOnly = 'Database is in read only mode, because of Upgrading to MediaWiki 1.26.XX';
cd /var/www
# find an extension
sudo find . -maxdepth 3 -iname '*settings*.php' -type f -exec sudo grep --ignore-case --with-filename --line-number --color=auto "/Arrays" '{}' ';'
phpMyAdmin: http://biowikifarm.net/phpmyadmin_v3-3-7/
- copy z_en_template -> as new database, e.g. my_new_wiki
- grant rights to user 'wikiuser' for new database ( SELECT, INSERT, UPDATE, DELETE, DROP, INDEX, CREATE TEMPORARY TABLES )
in shell: copy a recent wiki: v-XXX (virtuel)
sudo cp --recursive --verbose XXX YYY
duplicate folder w:
- for short name
- clear cache directory
- remove images from old wiki
adjaust LocalSettings.php
- secret key (!)
date | sha224sum
- db, paths, logo, contentlanguage
Common Settings file for SMW: dbname as switch to
cd /etc/nginx/sites-available/ # : file: default adjustm nginx config: adjust server names
restart apache, nginx, php5-fpm
sudo /usr/sbin/apache2ctl -k graceful && sudo service nginx restart && sudo service php5-fpm restart
Run maintenance wiki update script