Manual:Installing MediaWiki/it

MediaWiki si installa con uno script di installazione interattivo web-based. Prima di poter eseguire questo script, è necessario fare un paio di cose: vedere i prerequisiti oppure la breve guida all'installatione per esperti.

Per l'utente medio che non ha esperienza con Apache, PHP e MySQL l'installazione di MediaWiki può presentare delle difficoltà. Using a software bundle or a hosting service might be easier. (See the .)

Download del software MediaWiki
Scaricare il file tar MediaWiki dalla pagina ufficiale di download.

Generalmente, se si utilizza un ambiente di produzione, si vuole eseguire l'ultima versione stabile, che è MediaWiki.

Extract the MediaWiki software
I file scaricati sono nel formato  o. You need to uncompress this archive file before use. È possibile decomprimere il file localmente (e poi caricarlo via FTP sul server) o direttamente sul server. In Windows puoi farlo con programmi come 7-Zip (libero), WinZip, WinRAR o IZArc (libero). Su Linux e Mac OS X, puoi decomprimere il file utilizzando questo comando:

tar -xf mediawiki-*.tar.gz

Caricare i file sul server
Se non avete ancora caricato i file sul vostro server web (o copiato, se il software del server web gira localmente sul vostro ), fatelo ora.

Caricare i file nella directory web del server web tramite:


 * 1) Copiando direttamente la cartella decompressa oppure
 * 2) Mediante un client FTP come FileZilla (Windows, OSX e Linux) o Cyberduck (Windows e OSX).
 * 3) utilizzando il software già fornito dal tuo servizio di hosting, come cPanel File Manager

Se il tuo strumento per il caricamento ha un'opzione "modifica i nomi file in minuscolo", lo devi disabilitare.

Se stai utilizzando il web server Apache HTTPD, la directory corretta è specificate nel tuo file  nella direttiva. Per impostazione predefinita questa è in  oppure.

The exact location of the Apache server settings and directories file  depends on your operating system. In Debian e Ubuntu, il file per le impostazioni e le directory del server Apache è. In Red Hat and Fedora, the file is.

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.

Creare un database
MediaWiki's installation script will ask you for a database name and database username, so MediaWiki can store the content of the wiki.

If you already have a database server and know the password for the "root" (admin) user, skip to the #Run the installation script section below.

If you don't know the password for the root user, for example if you are on a hosted server, you will have to create a new database before running MediaWiki's installation script.

Currently, you must use SQLite, MariaDB/MySQL or PostgreSQL. If you're unsure which database to choose, use MariaDB.

After finishing the database setup, continue with below.

SQLite
No further setup is required for SQLite if the  module for PHP is installed on the system.

On the SQLite installation page, 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
Create the MariaDB/MySQL database and database user. There are several ways:


 * Use a control panel software offered by your Hosting service (example: PhpMyAdmin)
 * Use ssh to log into your host and type the commands below into a MySQL prompt. See the corresponding documentation of your hosting provider. Alternatively, contact your hosting provider to have them create an account for you.

The following commands create a database named, a user named  , and set permissions for the user on that database.

Only if your database is not running on the same server as your web server, you need to give the appropriate web server hostname ( in the example below):

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

The following commands on a Linux command-line, as the postgres user, create a database user named, and a database named   owned by the user named.

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

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

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

Run the installation script
Next, complete the installation of MediaWiki by going to the URL of your MediaWiki installation in your web browser: Follow the instructions in.

Further steps
See.

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

 * Read the FAQ about installation and configuration
 * MediaWiki installation errors
 * Ask questions and receive help about installing MediaWiki