Difference between revisions of "User:Pierre"

From ArchWiki
Jump to: navigation, search
(FluxBB 1.4 Upgrade)
(FluxBB 1.4 Upgrade)
Line 7: Line 7:
  
 
==FluxBB 1.4 Upgrade==
 
==FluxBB 1.4 Upgrade==
 +
* merge bbs.archlinux.de into git repo
 +
* create empty fluxbb db
 +
* adjust permissions of fluxbb user
 +
* Password-protect access to bbs
 
* <s>Remove or Rename duplicate accounts: http://bbs.archlinux.org/viewtopic.php?id=101085</s>
 
* <s>Remove or Rename duplicate accounts: http://bbs.archlinux.org/viewtopic.php?id=101085</s>
 
** Test:
 
** Test:
Line 16: Line 20:
 
) DEFAULT CHARSET=utf8;
 
) DEFAULT CHARSET=utf8;
 
INSERT INTO tusers SELECT id, username FROM fluxbb_users;</pre>
 
INSERT INTO tusers SELECT id, username FROM fluxbb_users;</pre>
* Password-protect access to bbs
 
 
* Backup database phpbb
 
* Backup database phpbb
 
* Backup complete directory
 
* Backup complete directory
* move current bbs.archlinux.org dir and clone new git repo
+
* import backup db into fluxbb
* copy avatars to new dir
+
 
* adjust config.php
 
* adjust config.php
<pre>$cookie_secure = 1;
+
<pre>$db_name = 'fluxbb';
 +
$db_type = 'mysql_innodb';
 +
$cookie_secure = 1;
 
$arch_home ='http://www.archlinux.org/';
 
$arch_home ='http://www.archlinux.org/';
 
$arch_navbar = array('Home' => 'http://www.archlinux.org/',
 
$arch_navbar = array('Home' => 'http://www.archlinux.org/',
Line 61: Line 65:
 
<pre>UPDATE users SET style='ArchLinux';</pre>
 
<pre>UPDATE users SET style='ArchLinux';</pre>
 
* re-enable public access
 
* re-enable public access
 +
* if everything is fine remove phpbb db

Revision as of 11:54, 29 July 2010

https://users.archlinux.de/~pierre/

L10n-de Todo

FluxBB 1.4 Upgrade

CREATE TEMPORARY TABLE tusers (
	id int(10) unsigned NOT NULL,
	username varchar(200) NOT NULL,
	PRIMARY KEY (id),
	UNIQUE KEY users_username_idx (username(25))
) DEFAULT CHARSET=utf8;
INSERT INTO tusers SELECT id, username FROM fluxbb_users;
  • Backup database phpbb
  • Backup complete directory
  • import backup db into fluxbb
  • adjust config.php
$db_name = 'fluxbb';
$db_type = 'mysql_innodb';
$cookie_secure = 1;
$arch_home ='http://www.archlinux.org/';
$arch_navbar = array('Home' => 'http://www.archlinux.org/',
                      'Packages' => 'http://www.archlinux.org/packages/',
                      'Forums' => 'http://bbs.archlinux.org/',
                      'Wiki' => 'http://wiki.archlinux.org/',
                      'Bugs' => 'http://bugs.archlinux.org/',
                      'AUR' => 'http://aur.archlinux.org/',
                      'Download' => 'http://www.archlinux.org/download/');
$arch_navbar_selected = 'Forums';
  • remove fluxbb_ prefix from tables (adjust config.php)
RENAME TABLE fluxbb_bans TO bans;
RENAME TABLE fluxbb_categories TO categories;
RENAME TABLE fluxbb_censoring TO censoring;
RENAME TABLE fluxbb_config TO config;
RENAME TABLE fluxbb_forum_perms TO forum_perms;
RENAME TABLE fluxbb_forums TO forums;
RENAME TABLE fluxbb_groups TO groups;
RENAME TABLE fluxbb_online TO online;
RENAME TABLE fluxbb_posts TO posts;
RENAME TABLE fluxbb_ranks TO ranks;
RENAME TABLE fluxbb_reports TO reports;
RENAME TABLE fluxbb_search_cache TO search_cache;
RENAME TABLE fluxbb_search_matches TO search_matches;
RENAME TABLE fluxbb_search_words TO search_words;
RENAME TABLE fluxbb_subscriptions TO subscriptions;
RENAME TABLE fluxbb_topics TO topics;
RENAME TABLE fluxbb_users TO users;
  • Deny access to cache, include, lang, plugins, config.php, header.php, footer.php
  • Add password-protected access to db_update.php, install.php
  • rm -f cache/*.php
  • temporary disable apc stat cache
  • temporaray increase maximum php execution time and memory usage
  • killall php-cgi
  • run update script
  • check for wrong or duplicate mysql indexes
  • set default style to ArchLinux
UPDATE users SET style='ArchLinux';
  • re-enable public access
  • if everything is fine remove phpbb db