User:David Fichtmueller/Neues Wiki
From Biowikifarm Metawiki
phpMyAdmin: http://biowikifarm.net/phpmyadmin_v3-3-7/
z_en_template -> copy 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 XXX YYY -dr
duplicate folder w: for short name
remove content of cache/ directory
remove images from media/ directory
change owner of cache/ and media/
sudo chown www-data:www-data -R cache/ sudo chown www-data:www-data -R media/
Local Settings: adjust:
- secret key (!), db, paths, name ...
Common Settings file for SMW: dbname as switch to
run updated script
php maintenance/update.php --conf /var/www/v-<wikiname>/w/LocalSettings.php
adjust nginx config: copy an existing config file /etc/nginx/sites-availalbe/, rename it and adjust it
link to the new config file
cd /etc/nginx/sites-enabled/ sudo ln -s ../sites-available/<wikiname>.biowikifarm.net <wikiname>.biowikifarm.net
restart apace, nginx, php5-fpm
sudo /usr/sbin/apache2ctl -k graceful && sudo service nginx restart && sudo service php5-fpm restart