Manual:Installing MediaWiki/cs

MediaWiki se instaluje pomocí interaktivního webového instalačního skriptu. Předtím než spustíte tento skript, potřebujete udělat pár věcí: koukněte se na [Special:MyLanguage/Manual:Installation requirements |požadavky pro instalaci]] nebo nakrátkou instalační příručku pro experty.

MediaWiki může být náročná na instalaci pro každého, kdo nemá zkušenosti s Apache, PHP a MySQL/MariaDB. Většina uživatelů, kteří chtějí používat wiki software, může mít prospěch z použití free MediaWiki host nebo z software bundles.

Stažení MediaWiki
You can download a release version of MediaWiki from the official download page: generally, if you're using a production environment, you want to be running the stable release.

Chcete-li stahovat MediaWiki, což je nejnovější stabilní verze, můžete použít následující příkaz: wget https://releases.wikimedia.org/mediawiki//mediawiki-.tar.gz Jinak použitím cURL:

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

Stažené soubory jsou ve formátu, takže musí být extrahovány před použitím. Toto může být dokončeno lokálně (a potom nahráno použitím FTP) či přímo na váš server. Toto je obvykle děláno se softwarem 7-Zip (zdarma), WinZip, WinRAR or IZArc (zdarma) na Windows. Na operačních softwarech Linux a Mac OS X můžete soubor extrahovat použitím tohoto příkazu:

tar xvzf mediawiki-*.tar.gz

Pro vývojáře
Developers on the other hand should probably download from Git to set up a local repository with the latest code in development. They will also need to manually install dependencies via Composer.

Nahrání souborů na váš server
Pokud ještě nemáte soubory nahrané na server, udělejte to nyní.

Nahrajte soubory do úložiště serveru buď:

použitím FTP klienta jako FileZilla (Open Source Software, Windows, OSX and Linux) nebo Cyberduck (OSX).
 * 1) přímo zkopírováním extrahované složky nebo

Pokud má váš nahrávací nástroj možnost "změnit názvy souborů na malá písmena", musíte ji zakázat.

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.

Přejmenujte nahranou složku na cokoliv co chcete mít v 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.

Vytvořit databázi
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.

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.

Spusťte instalační skript
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.

Aktualizovat
Subscribe to our release announcements mailing list.

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

Pomoc s instalací

 * Přečtěte si FAQ o instalaci a konfiguraci
 * Chatujte s vývojáři MediaWiki, administrátory systému a uživateli:
 * The mediawiki-l mailing List is the high-traffic list on which to ask for support

Související články

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