Difference between revisions of "User:Andreas Plank/new wiki"

From Biowikifarm Metawiki
Jump to: navigation, search
m
m
Line 6: Line 6:
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
 
sudo cp --recursive --verbose XXX YYY
 
sudo cp --recursive --verbose XXX YYY
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 
duplicate folder w:
 
duplicate folder w:
Line 14: Line 13:
  
 
adjaust LocalSettings.php
 
adjaust LocalSettings.php
* secret key (!), db, paths, logo, contentlanguage
+
* secret key (!) <syntaxhighlight lang="bash">date | sha224sum</syntaxhighlight>
 +
* db, paths, logo, contentlanguage
  
 
Common Settings file for SMW: dbname as switch to
 
Common Settings file for SMW: dbname as switch to

Revision as of 14:09, 28 April 2014

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