Difference between revisions of "Update SpeedyWiki lokal secara automatis"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
password 123456 | password 123456 | ||
database mediawiki | database mediawiki | ||
+ | Lokasi file images.tar.gz dan wikidb.sql.gz di /var/data/library/datawiki/ | ||
Lokasi file images.tar.gz dan wikidb.sql.gz di /usr/local/src | Lokasi file images.tar.gz dan wikidb.sql.gz di /usr/local/src | ||
Line 23: | Line 24: | ||
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 | ||
− | + | service mysql stop | |
+ | service mysql start | ||
mysqladmin --user=root --password=123456 --force drop mediawiki | mysqladmin --user=root --password=123456 --force drop mediawiki | ||
mysqladmin --user=root --password=123456 create mediawiki | mysqladmin --user=root --password=123456 create mediawiki | ||
mysql -u mediawiki -pmediawiki mediawiki < /var/www/wiki/maintenance/tables.sql | mysql -u mediawiki -pmediawiki mediawiki < /var/www/wiki/maintenance/tables.sql | ||
mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql | mysql -u mediawiki -pmediawiki mediawiki < /usr/local/src/wikidb.sql | ||
− | + | service mysql stop | |
+ | service mysql start | ||
cd /var/www/wiki/maintenance | cd /var/www/wiki/maintenance | ||
php update.php | php update.php | ||
− | / | + | service mysql stop |
+ | service mysql start | ||
+ | chown -Rf nobody.nogroup /var/data & | ||
+ | chmod -Rf 777 /var/data & | ||
+ | |||
Ijinkan untuk di jalankan | Ijinkan untuk di jalankan | ||
− | chmod -Rf 777 /usr/local/bin | + | chmod -Rf 777 /usr/local/bin |
==Set cron== | ==Set cron== | ||
Line 47: | Line 54: | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
− | * [[Script Re-Install SpeedyWiki]] | + | * [[Mediawiki]] |
+ | * [[Instalasi MediaWiki]] | ||
+ | * [[Melihat Aktifitas dan Statistik Mediawiki]] | ||
+ | * [[Dumping Seluruh Database MediaWiki]] | ||
+ | * [[Replikasi Database dan Image MediaWiki]] | ||
+ | * [[Membuka Fasilitas Upload di MediaWiki]] | ||
+ | * [[Mengaktifkan Math di MediaWiki]] | ||
+ | * [[Mengubah Logo di MediaWiki]] | ||
+ | * [[Proteksi agar hanya registered member yang dapat menulis]] | ||
+ | * [[Proteksi Spammer Menggunakan reCAPTHCA]] | ||
+ | * [[MediaWiki - Proteksi Spammer Menggunakan ConfirmEdit]] | ||
+ | * [[MediaWiki - Proteksi Spammer Menggunakan wgSpamRegex]] | ||
+ | * [[Script Re-Install SpeedyWiki]] '''*PENTING*''' | ||
+ | * [[Script Re-Install SpeedyWiki di Ubuntu 10.04]] '''*PENTING*''' | ||
* [[Update SpeedyWiki lokal secara automatis]] | * [[Update SpeedyWiki lokal secara automatis]] | ||
− | * [[ | + | * [[Update database SpeedyWiki lokal secara automatis tanpa update Image]] |
* [[Instalasi MediaWiki]] Cara menginstalasi [[MediaWiki]] | * [[Instalasi MediaWiki]] Cara menginstalasi [[MediaWiki]] | ||
+ | * [[Mediawiki Mereset Isi Database Mediawiki]] | ||
+ | * [[Mediawiki ganti IP address server]] | ||
* [[Linux Howto]] | * [[Linux Howto]] | ||
+ | |||
+ | [[Category: Linux]] | ||
==Pembuatan Distro== | ==Pembuatan Distro== | ||
Line 59: | Line 83: | ||
* [[ORARINux: Desktop Berbasis Ubuntu]] | * [[ORARINux: Desktop Berbasis Ubuntu]] | ||
* [[ORARINux: Desktop Berbasis Xubuntu]] | * [[ORARINux: Desktop Berbasis Xubuntu]] | ||
+ | |||
+ | [[Category: Linux]] | ||
+ | [[Category: Distro Linux]] |
Latest revision as of 11:28, 31 July 2012
Asumsi
username root password 123456 database mediawiki Lokasi file images.tar.gz dan wikidb.sql.gz di /var/data/library/datawiki/ Lokasi file images.tar.gz dan wikidb.sql.gz di /usr/local/src
Buat Script misalnya
vi /usr/local/bin/updatewiki.sh
Isi dengan
rm -Rf /var/data/library/datawiki/* rm -Rf /usr/local/src/var rm -Rf /usr/local/src/wikidb* wget http://125.160.17.21/speedyorari/view.php?file=datawiki/wikidb.sql.gz -O /var/data/library/datawiki/wikidb.sql.gz wget http://125.160.17.21/speedyorari/view.php?file=datawiki/images.tar.gz -O /var/data/library/datawiki/images.tar.gz cp -Rf /var/data/library/datawiki/* /usr/local/src 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 service mysql stop service mysql start mysqladmin --user=root --password=123456 --force drop 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 service mysql stop service mysql start cd /var/www/wiki/maintenance php update.php service mysql stop service mysql start chown -Rf nobody.nogroup /var/data & chmod -Rf 777 /var/data &
Ijinkan untuk di jalankan
chmod -Rf 777 /usr/local/bin
Set cron
crontab -e
isi
0 2 * * * /usr/local/bin/updatewiki.sh
Pranala Menarik
- Mediawiki
- Instalasi MediaWiki
- Melihat Aktifitas dan Statistik Mediawiki
- Dumping Seluruh Database MediaWiki
- Replikasi Database dan Image MediaWiki
- Membuka Fasilitas Upload di MediaWiki
- Mengaktifkan Math di MediaWiki
- Mengubah Logo di MediaWiki
- Proteksi agar hanya registered member yang dapat menulis
- Proteksi Spammer Menggunakan reCAPTHCA
- MediaWiki - Proteksi Spammer Menggunakan ConfirmEdit
- MediaWiki - Proteksi Spammer Menggunakan wgSpamRegex
- Script Re-Install SpeedyWiki *PENTING*
- Script Re-Install SpeedyWiki di Ubuntu 10.04 *PENTING*
- Update SpeedyWiki lokal secara automatis
- Update database SpeedyWiki lokal secara automatis tanpa update Image
- Instalasi MediaWiki Cara menginstalasi MediaWiki
- Mediawiki Mereset Isi Database Mediawiki
- Mediawiki ganti IP address server
- Linux Howto