Difference between revisions of "ORARINux: Replikasi Database dan Image SpeedyWiki"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: Ambil Image dan isi database [http://opensource.telkomspeedy.com/wiki SpeedyWiki] dari http://opensource.telkomspeedy.com/speedyorari/ di folder datawiki Buka dan extract seluruh data, me...) |
Onnowpurbo (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | Copy & siapkan semua gambar & [[database]] [[Wiki]] | |
− | |||
− | |||
− | |||
cd /usr/local/src | cd /usr/local/src | ||
tar zxvf images.tar.gz | tar zxvf images.tar.gz | ||
gunzip wikidb.sql.gz | gunzip wikidb.sql.gz | ||
− | |||
− | |||
− | |||
− | |||
cd /usr/local/src | cd /usr/local/src | ||
cp -Rf /usr/local/src/var/www/html/wiki/images /var/www/wiki/ | cp -Rf /usr/local/src/var/www/html/wiki/images /var/www/wiki/ | ||
chown -Rf www-data.www-data /var/www/wiki | chown -Rf www-data.www-data /var/www/wiki | ||
rm -Rf /usr/local/src/var | rm -Rf /usr/local/src/var | ||
− | |||
− | |||
− | |||
mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql | mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql | ||
− | |||
− | |||
− | |||
− | |||
/etc/init.d/mysql restart | /etc/init.d/mysql restart | ||
− | |||
rm /usr/local/src/images.tar.gz | rm /usr/local/src/images.tar.gz | ||
rm /usr/local/src/wikidb.sql | rm /usr/local/src/wikidb.sql | ||
Line 43: | Line 28: | ||
cd /var/www/wiki/maintenance | cd /var/www/wiki/maintenance | ||
php update.php | php update.php | ||
− | + | /etc/init.d/mysql restart | |
− | |||
− | |||
− | |||
− | |||
==Siapkan Wiki== | ==Siapkan Wiki== |
Revision as of 09:29, 13 December 2009
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://localhost/wiki/index.php/Halaman_Utama
Copy isi Main Page ke Halaman Utama
http://localhost/wiki/index.php/Main_Page
Klik Simpan Halaman