Difference between revisions of "Script Re-Install SpeedyWiki"

From OnnoWiki
Jump to navigation Jump to search
Line 43: Line 43:
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 +
* [[Script Re-Install SpeedyWiki]]
 +
* [[Update SpeedyWiki lokal secara automatis]]
 
* [[Replikasi Database dan Image MediaWiki]]
 
* [[Replikasi Database dan Image MediaWiki]]
 +
* [[Instalasi MediaWiki]] Cara menginstalasi [[MediaWiki]]
 +
* [[Linux Howto]]

Revision as of 08:36, 1 January 2010

Asumsi

username root
password 123456
database mediawiki
Lokasi file images.tar.gz dan wikidb.sql.gz di /usr/local/src

Buat Script misalnya

vi /root/reinstall-wiki.sh
cd /usr/local/src
rm -Rf var
rm wikidb.sql
tar zxvf images.tar.gz
gunzip wikidb.sql.gz
cp -Rf /usr/local/src/var/www/html/wiki/images /var/www/wiki/
chown -Rf www-data.www-data /var/www/wiki
rm -Rf /var/lib/mysql/mediawiki
mysqladmin --user=root --password=123456 create mediawiki
mysql -u mediawiki -pmediawiki mediawiki < /var/www/wiki/maintenance/tables.sql
mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql 
/etc/init.d/mysql restart
cd /var/www/wiki/maintenance
php update.php
/etc/init.d/mysql restart
chmod -Rf 777 /root/reinstall-wiki.sh

Jalankan script

/root/reinstall-wiki.sh

Pastikan ke dua (2) halaman muka ini sama ..

http://localhost/wiki/index.php/Halaman_Utama
http://localhost/wiki/index.php/Main_Page

Referensi

Pranala Menarik