Difference between revisions of "IPv6 Web: Mediawiki"
Jump to navigation
Jump to search
Onnowpurbo (talk | contribs) |
Onnowpurbo (talk | contribs) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Berikut adalah contoh instalasi Mediawiki pada saat menggunakan IPv6 di jaringan. | ||
+ | |||
+ | |||
==/etc/apt/source.list /etc/hosts IPv6 interface== | ==/etc/apt/source.list /etc/hosts IPv6 interface== | ||
Line 68: | Line 71: | ||
/etc/init.d/apache2 restart | /etc/init.d/apache2 restart | ||
+ | |||
+ | |||
+ | ==Selesaikan Konfigurasi== | ||
+ | |||
+ | Akses ke | ||
+ | |||
+ | http://[ipv6address]/wiki | ||
+ | |||
+ | Selesaikan semua pertanyaan, yang perlu di perhatikan | ||
+ | |||
+ | Database Type -> mysql | ||
+ | Database name -> mediawiki | ||
+ | DB username -> mediawiki | ||
+ | DB password -> mediawiki | ||
+ | DB pass Confirm -> mediawiki | ||
+ | |||
+ | Superuser -> root | ||
+ | Password -> | ||
+ | |||
+ | Database Prefix -> '''wiki_''' | ||
+ | |||
+ | Selanjutnya, copy LocalSettings.php agar ada di | ||
+ | |||
+ | /var/www/html/wiki/LocalSettings.php | ||
==Pranala Menarik== | ==Pranala Menarik== | ||
* [[IPv6]] | * [[IPv6]] |
Latest revision as of 07:08, 31 May 2020
Berikut adalah contoh instalasi Mediawiki pada saat menggunakan IPv6 di jaringan.
/etc/apt/source.list /etc/hosts IPv6 interface
Edit /etc/apt/sources.list pastikan
deb http://archive.ubuntu.com/ubuntu bionic main universe multiverse deb http://archive.ubuntu.com/ubuntu bionic-security main universe multiverse deb http://archive.ubuntu.com/ubuntu bionic-updates main universe multiverse
Edit /etc/hosts pastikan
::1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6
Set IPv6 di interface, misalnya,
ip addr add <ipv6addr>/<ipv6prefix> dev enp3s0 ip route add ::/0 via <ipv6gayeway> dev enp2s0 ip addr add 2345::3/64 dev enp3s0
Instalasi
wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb sudo apt update sudo apt install percona-server-server-5.7
Masukan root password percona jika di tanya. Asumsi password root = 123456.
apt -y install apache2 php php-xmlrpc php-mysql php-gd php-cli php-curl \ mysql-client mysql-server libphp-adodb libgd-dev php-pear \ php-common libapache2-mod-php php-fpm \ php-bz2 php-xml imagemagick git php-mbstring
Restart apache2
service apache2 stop service apache2 start
Database
Untuk operasional, jangan menggunakan username & password seperti contoh di bawah ini. Ini hanya contoh untuk memudahkan saja.
mysql -u root -h ::1 -p123456
create database mediawiki; grant ALL on root.* to mediawiki@localhost; grant ALL on mediawiki.* to mediawiki@localhost identified by 'mediawiki'; grant ALL on mediawiki.* to mediawiki@'::1' identified by 'mediawiki'; grant ALL on mediawiki.* to mediawiki identified by 'mediawiki'; exit
Copy Source
cd /usr/local/src wget https://releases.wikimedia.org/mediawiki/1.32/mediawiki-1.32.0.tar.gz cp mediawiki-1.32.0.tar.gz /var/www/html/ cd /var/www/html/ tar zxvf mediawiki-1.32.0.tar.gz mv mediawiki-1.32.0 wiki cp -Rf /var/www/html/wiki/mw-config/ /var/www/html/wiki/config chmod a+w /var/www/html/wiki/mw-config chmod a+w /var/www/html/wiki/config chmod -Rf 777 wiki chown -Rf www-data.www-data wiki
Restart
/etc/init.d/apache2 restart
Selesaikan Konfigurasi
Akses ke
http://[ipv6address]/wiki
Selesaikan semua pertanyaan, yang perlu di perhatikan
Database Type -> mysql Database name -> mediawiki DB username -> mediawiki DB password -> mediawiki DB pass Confirm -> mediawiki Superuser -> root Password -> Database Prefix -> wiki_
Selanjutnya, copy LocalSettings.php agar ada di
/var/www/html/wiki/LocalSettings.php