Difference between revisions of "Script Re-Install SpeedyWiki"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) (New page: Asumsi username root password 123456 database mediawiki Script mysqladmin --user=root --password=123456 drop mediawiki ==Pranala Menarik== * [[Replikasi Database dan Image Media...) |
Onnowpurbo (talk | contribs) |
||
Line 4: | Line 4: | ||
password 123456 | password 123456 | ||
database mediawiki | database mediawiki | ||
+ | Lokasi file images.tar.gz dan wikidb.sql.gz di /usr/local/src | ||
− | Script | + | Buat Script misalnya |
− | + | vi /root/reinstall-wiki.sh | |
+ | cd /usr/local/src | ||
+ | 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 | ||
+ | # mysqladmin --user=root --password=123456 drop mediawiki | ||
+ | # mysqladmin --user=root --password=123456 create mediawiki | ||
+ | mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql | ||
+ | /etc/init.d/mysql restart | ||
+ | cd /var/www/wiki/maintenance | ||
+ | php update.php | ||
+ | chmod -Rf 777 /root/reinstall-wiki.sh | ||
+ | |||
+ | ==Jalankan script== | ||
+ | |||
+ | /root/reinstall-wiki.sh | ||
+ | |||
+ | ==Referensi== | ||
+ | |||
+ | * http://dev.mysql.com/doc/refman/5.1/en/mysqladmin.html | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[Replikasi Database dan Image MediaWiki]] | * [[Replikasi Database dan Image MediaWiki]] |
Revision as of 17:44, 28 December 2009
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 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 # mysqladmin --user=root --password=123456 drop mediawiki # mysqladmin --user=root --password=123456 create mediawiki mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql /etc/init.d/mysql restart cd /var/www/wiki/maintenance php update.php
chmod -Rf 777 /root/reinstall-wiki.sh
Jalankan script
/root/reinstall-wiki.sh