Difference between revisions of "Moving the SF wiki"

From stgo
Jump to: navigation, search
(Created page with ">> return to Cedeus IDE ---- copy existing backup: * copy from SF the zip of the image folder * copy from SF the tar of the MySQL DB dump then: * install mediawiki (now...")
 
 
(7 intermediate revisions by one user not shown)
Line 7: Line 7:
  
 
then:
 
then:
* install mediawiki (now under var/www/html/)
+
* install mediawiki  
 +
** download mediawiki:
 +
**: <code>wget http://releases.wikimedia.org/mediawiki/1.23/mediawiki-1.23.0.tar.gz</code>
 +
**<code>tar xvzf mediawiki-*.tar.gz</code>
 +
** copy to ''/var/www/html/'' and rename, perhaps
 +
** install supporting applications:
 +
**: <code>sudo apt-get install php-apc php5-intl imagemagick phpmyadmin vsftpd</code>
 +
**: when installing one has to create passwords for mysql (2014..)
 +
** start install process by calling <code>http://http://146.155.17.19:21080/mediawiki-1.22.7/mw-config/index.php</code>
 +
*: => Guide under: http://www.mediawiki.org/wiki/Manual:Running_MediaWiki_on_Ubuntu
 +
*: => Note, if there is a already a MediaWiki installation, one needs to use a different DB, see:
 
* copy the images to the image folder
 
* copy the images to the image folder
 
* apply the sql dump file to mediawiki db using the "import" option
 
* apply the sql dump file to mediawiki db using the "import" option
Line 20: Line 30:
 
* create another account for editing (e.g. stefanS)
 
* create another account for editing (e.g. stefanS)
 
* close the wiki - so no one else can sign up
 
* close the wiki - so no one else can sign up
 +
* perhaps fix file upload rights so that Apache (= www-data) can write: e.g. with <code>sudo chown -R www-data: /var/www/html/wiki</code>

Latest revision as of 13:37, 28 October 2014

>> return to Cedeus IDE


copy existing backup:

  • copy from SF the zip of the image folder
  • copy from SF the tar of the MySQL DB dump

then:

UPDATE user SET user_password = MD5( CONCAT( user_id, ‘-’, MD5( ‘NEWPASS‘ ) ) ) WHERE user_id =1
(the ID is the user id) or use
php changePassword.php --user=example --password=newpassword
  • open up the wiki (create account + edit rights)
  • create a new (admin) user
  • change this user rights to be a sysop:
    • first find the users ID:
      select user_id from user where user_name = 'Whatever';
    • If the user id is found (admin has usually '1') do:
      INSERT INTO user_groups (ug_user, ug_group) VALUES ('1', 'bureaucrat');
       INSERT INTO user_groups (ug_user, ug_group) VALUES ('1', 'sysop')
  • create another account for editing (e.g. stefanS)
  • close the wiki - so no one else can sign up
  • perhaps fix file upload rights so that Apache (= www-data) can write: e.g. with sudo chown -R www-data: /var/www/html/wiki