Manual:Installing MediaWiki/es

MediaWiki se instala utilizando un script de instalación interactiva basada en la web. Antes de poder ejecutar este script, es necesario hacer un par de cosas. En primer lugar, asegúrese de que ha instalado los requisitos previos (Apache/IIS, MySQL4 o posterior (5 o posterior desde la versión 1.19) y PHP5). A continuación, debe adquirir el paquete del software de MediaWiki y cargar el software MediaWiki en su servidor. Usted también pueda que tenga que crear una nueva base de datos para su wiki. Si es necesario, cree una cuenta en el servidor web, siguiendo las instrucciones en Manual:Installation/Creating system accounts.

MediaWiki puede ser difícil de instalar para un usuario promedio que no tiene experiencia con Apache, PHP y MySQL. La mayoría de los usuarios que deseen utilizar el software wiki pueden beneficiarse del uso de una serie wiki libre (ver la lista de hosts wiki en Wikibooks) oa través de un dispositivo de software.

Para obtener información de solución de problemas, consulte el Errores de instalación.

Descargar software MediaWiki
Descarga MediaWiki desde la página de descarga oficial o de Git.

To download MediaWiki, which is the latest stable release version, to a *nix machine you can use the following command: wget https://releases.wikimedia.org/mediawiki//mediawiki-.tar.gz Alternatively, using cURL: curl -O https://releases.wikimedia.org/mediawiki//mediawiki-.tar.gz

The downloaded files are in  format, so will need to be uncompressed before use. This can be done locally (and then uploaded via FTP) or directly on your server. This is usually done with software such as 7-Zip (free), WinZip, WinRAR or IZArc (free) on Windows. On Linux and Mac OS X, you can untar the file using this command:

tar xvzf mediawiki-*.tar.gz

NOTE: If you untar the archive as root, you should probably change the ownership afterwards with chown, otherwise the files will end up owned as user # 1000, which may or may not be what you want.

For developers
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.

Archivos cargados
Si usted no ha subido los archivos a su servidor web, hágalo ahora.

Asegúrese de que los nombres de archivo "Cambiar a minúsculas" opción de subida esta deshabilitado.

Cargue los archivos en el directorio web de su servidor web por:
 * 1) Copiar directamente la carpeta descomprimida o
 * 2) Mediante un cliente FTP como FileZilla (Software de código abierto, Windows, OSX y Linux) o Cyberduck (OSX).

Si ha instalado Apache, el directorio correcto se especifica en el archivo  (que es normalmente /htdocs). Note: This changes in Ubuntu 14.04 with Apache 2.4.7 where the primary config file for Apache server settings and directories is.

Si está utilizando un servidor Linux o Unix en su lugar puede copiar los archivos a cualquier directorio de su servidor y luego hacer un enlace simbólico a la carpeta de directorio web de su servidor web.

Cambiar el nombre de la carpeta de subida a lo que usted desea tener en el URL. Si el servidor web se ejecuta como  por ejemplo, el cambio de nombre del directorio   significa que usted podrá acceder a su wiki en. No utilice  si desea utilizarlo como URL corta. (And don't set up short URLs until you have run the installation script.)

Esta carpeta (rebautizada) ahora se conoce como.

Create a database
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, MySQL or PostgreSQL to store the actual contents of your wiki.

SQLite
MediaWiki supports SQLite since version 1.13, however at least 1.16 is highly recommended. SQLite is a stand-alone database library that stores the database contents in a single file. If PHP has the pdo-sqlite 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.

Unix/Linux installation

 * 1) Download and install MariaDB/MySQL. Depending on how MariaDB/MySQL was installed on your system the commands ,   and   may need to be amended to include the installation directory of MariaDB/MySQL (for example, by adding   in front of them).
 * 2) Check and see if the database server is running; for example, run  .  If it is not, run mysqld_safe to start it:.
 * 3) * Another way to initially start the MariaDB/MySQL server is to run the configure script available at the root of the installation. It creates the initial tables and automatically starts the MariaDB/MySQL daemon.
 * 4) * Alternatively you can start the MariaDB/MySQL daemon with systemd using: . You may also wish to enable the   service with , so that the MySQL service is started automatically on startup.
 * 5) Set a password for the "root" account on your database server.
 * 6) Run the MariaDB/MySQL command-line client:
 * 7) This will prompt for the "root" database password you just set, then connect to the MariaDB/MySQL server. Now, continue with the SQL commands below.

Windows installation

 * 1) Download MySQL msi (mysql-5.5.22-winx64.msi for example)
 * 2) Run msi file and accept all defaults. When creating the root account, use a password that you will remember.
 * 3) Run Start->All Programs->MySQL->MySQL Server->MySQL Command Line Client
 * 4) Enter the root password you just created
 * 5) Now continue with the instructions below

Installation continued
create database wikidb; grant index, create, select, insert, update, delete, drop, alter, lock tables on wikidb.* to 'wikiuser'@'localhost' identified by 'password';



If your database is not running on the same server as your web server, you need to give the appropriate web server hostname -- mediawiki.example.com in my example -- as follows: grant index, create, select, insert, update, delete, drop, alter, lock tables on wikidb.* to 'wikiuser'@'mediawiki.example.com' identified by 'password';

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.

Run the installation script
Once all of the above steps are complete, you can complete the installation through a web browser by going to the index.php URI in your browser -- check the instructions mentioned in Special:MyLanguage/Manual:Config script.

If needed, you can run the command-line installer or CLI:.

MediaWiki 1.16 and earlier needed to be able to write to the  directory when it ran its installation script. This is no longer required.

Keep up to date!
Subscribe to our release announcements mailing list.

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

Installation assistance

 * FAQ: FAQ
 * mediawiki-l (Mailing List) is the high-traffic mailing list to ask for support