Manual:Installing MediaWiki/id

MediaWiki memasang dirinya sendiri menggunakan sebuah skrip instalasi interaktif dan berbasis web. Sebelum Anda menjalankan skrip ini, Anda perlu melakukan beberapa hal: lihat persyaratan atau panduan instalasi singkat untuk para ahli.

MediaWIki bisa jadi sulit diinstal bagi pengguna komputer rata-rata yang tidak punya pengalaman menggunakan Apache, PHP dan MySQL/MariaDB. Kebanyakan pengguna yang ingin menggunakan perangkat lunak wiki sebaiknya menggunakan hos MediaWiki gratis atau melalui sebuah bundel perangkat lunak.

Mengunduh perangkat lunak MediaWiki
Anda bisa mengunduh versi rilis MediaWiki dari halaman unduhan resmi: pada umumnya, jika Anda menggunakannya dalam lingkungan produksi, Anda sebaiknya menjalankan rilis yang stabil.

Untuk mengunduh MediaWiki, yang merupakan versi rilis stabil terbaru, ke sebuah mesin *nix Anda bisa menggunakan perintah berikut:

wget https://releases.wikimedia.org/mediawiki//mediawiki-.tar.gz

Sebagai alternatif, menggunakan cURL:

curl -O https://releases.wikimedia.org/mediawiki//mediawiki-.tar.gz

Berkas-berkas yang diunduh memiliki format, jadi mereka perlu diekstrak sebelum digunakan. Ini bisa dilakukan secara lokal (dan kemudian diunggah via FTP) atau secara langsung di peladen Anda. Ini biasanya dilakukan dengan perangkat lunak seperti 7-Zip (gratis), WinZip, WinRAR atau IZArc (gratis) di Windows. Di Linux dan Mac OS X, Anda bisa mengekstrak berkasnya menggunakan perintah ini:

tar xvzf mediawiki-*.tar.gz

Untuk pengembang
Sedangkan para pengembang sebaiknya mengunduh dari Git untuk membuat repositori lokal dengan kode terbaru dalam pengembangan. Merka juga perlu menginstal ketergantungan secara manual via Composer.

Mengunggah berkas ke peladen anda
Jika Anda belum mengunggah berkas-berkas ke peladen web Anda, lakukanlah sekarang.

Unggah berkas-berkasnya ke direktori web peladen web Anda dengan cara:


 * 1) menyalin folder yang telah diekstrak secara langsung atau
 * 2) dengan menggunakan sebuah klien FTP seperti FileZilla (Perangkat Lunak Sumber Terbuka, Windows, OSX dan Linux) atau Cyberduck (OSX).

Jika alat pengunggah Anda punya pilihan "ubah nama berkas menjadi huruf kecil", Anda harus menonaktifkannya.

If you installed Apache, the correct directory is specified in your  file (it's the DocumentRoot directive, typically   or  ). Note: This changed in Ubuntu 14.04 with Apache 2.4.7 where the primary configuration file for Apache server settings and directories is.

If you are using a Linux or Unix server you can instead copy the files to any directory on your server and then make a symbolic link to that folder from your web server's web directory.

Rename the uploaded folder to whatever you would like to have in the URL. If your web server is running as  for example, renaming to   directory would mean you would access your wiki at. Do not use  if you want to use it as a Short URL. (And don't set up short URLs until you have run the installation script.)

This (renamed) folder will now be referred as.

Membuat sebuah basis data
If you already have a database server and know the root password for it, the MediaWiki installation script can create a new database for you. If this is the case, you can skip to the Run the installation script section below. If you don't know the root password, for example if you are on a hosted server, you will have to create a new database now. Currently, you must use SQLite, MariaDB/MySQL or PostgreSQL to store the actual contents of your wiki. If you're unsure which database to chose, use MariaDB as it is the one best supported by MediaWiki.

SQLite
SQLite is a stand-alone database library that stores the database contents in a single file. If PHP has the  module, no further setup is required.

On the installation page, you will need to choose a database name (which can be anything) and the SQLite database directory. For the database directory, the installer will attempt to use a subdirectory outside of the document root and create it if needed. If this directory is not safe (for example, web-readable), change it manually to avoid making it accessible to everyone on the web.

MariaDB/MySQL
MediaWiki will ask you for database and user name and will attempt to create them if they don't already exist. If doing so from MediaWiki is impossible, you can do this using various control panels such as PhpMyAdmin, which are often available from shared hosts, or you may be able to use ssh to login to your host and type the commands into a MySQL prompt. See the corresponding documentation. Alternatively, contact your host provider to have them create an account for you.

If your database is not running on the same server as your web server, you need to give the appropriate web server hostname &mdash; mediawiki.example.com in the example below &mdash; as follows:

PostgreSQL
If you are using PostgreSQL, you will need to either have a database and user created for you, or simply supply the name of a PostgreSQL user with "superuser" privileges to the configuration form. Often, this is the database user named postgres.

Here's one way to do most of the setup. This is for a Unix-like system. In this example, we'll create a database named wikidb, owned by a user named wikiuser. From the command-line, as the postgres user, perform the following steps.

createuser -S -D -R -P -E wikiuser (then enter the password) createdb -O wikiuser wikidb

or as superuser (default postgres) execute the following commands at the database prompt:

CREATE USER wikiuser WITH NOCREATEDB NOCREATEROLE NOSUPERUSER ENCRYPTED PASSWORD 'password'; CREATE DATABASE wikidb WITH OWNER wikiuser;

Beware of the list of known issues when running MediaWiki with PostgreSQL.

Menjalankan skrip instalasi
Once all of the above steps are complete, you can complete the installation through a web browser by going to the index.php URL in your browser — check the instructions mentioned in.

The installation tool will prompt you to download the file, and to save this as.

Alternatively, you can run the command-line installer or CLI:  adding the appropriate configuration parameters.

Pastikan muktahir!
Subscribe to our release announcements mailing list.

Once installed, make sure you stay up to date with releases, and keep your server secure!

Bantuan instalasi

 * Read the FAQ about installation and configuration
 * Chat with MediaWiki developers, system administrators, and users:
 * The mediawiki-l mailing List is the high-traffic list on which to ask for support

Lihat pula

 * - lists wiki pages that MediaWiki messages link to, you need to create these pages or edit the messages.
 * - for links to more advanced configuration.
 * - for having more user-friendly URL to article pages.
 * - to set up multiple instances of MediaWiki with single set of MediaWiki files.