ORARINux: Replikasi Database dan Image SpeedyWiki

From OnnoWiki
Revision as of 11:47, 14 December 2009 by Onnowpurbo (talk | contribs) (→‎Siapkan Wiki)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Copy & siapkan semua gambar & database Wiki

cd /usr/local/src
tar zxvf images.tar.gz
gunzip wikidb.sql.gz
cd /usr/local/src
cp -Rf /usr/local/src/var/www/html/wiki/images /var/www/wiki/
chown -Rf www-data.www-data /var/www/wiki
rm -Rf /usr/local/src/var
mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql
/etc/init.d/mysql restart
rm /usr/local/src/images.tar.gz
rm /usr/local/src/wikidb.sql

Penyesuaian Struktur Database untuk MediaWiki 1.11 ke atas

cd /var/www/wiki/
cp AdminSettings.sample AdminSettings.php
vi AdminSettings.php

Pastikan ada isi

   $wgDBadminuser      = 'mediawiki';
   $wgDBadminpassword  = 'mediawiki';

lakukan dari shell perintah berikuta

cd /var/www/wiki/maintenance
php update.php
/etc/init.d/mysql restart

Siapkan Wiki

Buat Halaman Utama

http://127.0.0.1/wiki/index.php/Halaman_Utama

Copy isi Main Page ke Halaman Utama

http://127.0.0.1/wiki/index.php/Main_Page

Klik Simpan Halaman

Pranala Menarik