Apache configuration/pt-br

O Apache é o servidor de web mais recomendado para ser usado com o MediaWiki. Outros servidores como IIS podem funcionar também.

PHP como módulo do Apache
O MediaWiki foi escrito para usar como um módulo do Apache. Seu PHP provavelmente é configurado como um módulo se você começar com URLs assim: example.com/index.php/Main_Page Você pode conferir qual configuração e versão de PHP você tem, visualizando sua página wiki Special:Version, ou com phpinfo.

Linux baseado em RedHat/Fedora
Instalar o PHP: Recarregar o servidor httpd:
 * 1) yum install php php-xml
 * 1) service httpd reload

Linux baseado em Debian
Instalar o módulo php5 em apache2: Habilitar o módulo php5 no apache2: Restart Apache: (Debian também tem um pacote de mediawiki.)
 * 1) apt-get install apache2 libapache2-mod-php5 php5-cli php-apc php5-mcrypt
 * 1) a2enmod php5
 * 1) apache2ctl restart

PHP e CGI
Se PHP estiver rodando como um CGI, você terá " URLs feios " por padrão, mas você ainda pode implementar.

CGIWrap
If you have your own server running Apache and are running, you can install CGIWrap. This tool enables you to run the Apache server as a different user for CGIs.

That way, you can create a new user for your MediaWiki pages. Installing CGIWrap is beyond the scope of this document, especially since you must compile it accordingly to your own server. However, as a quick guideline, you can follow these rules:

useradd -M -s /sbin/nologin wikiuser chown apache:apache cgiwrap chmod 500 cgiwrap ln -s /home/myuser/public_html/wiki /home/myuser/cgi-bin/wikilink AddHandler php-wrapper .php Action php-wrapper /cgi-bin/cgiwrap/wikiuser/wikilink chown -R wikiuser:wikiuser *.php chmod -R 500 *.php The files will be accessible as usual. You do not need to specify in your path any cgi-bin, as this is transparently taken care for you.
 * Create a Wikimedia user
 * Have a cgi-bin folder, containing CGIWrap (example in /home/myuser/cgi-bin). Once everything is configured, keep only cgiwrap, move the debug versions to another folder if you ever need it. Your cgiwrap file should be accessible only to Apache (chown and chmod accordingly).
 * Inside the cgi-bin folder, create a symbolic link to the Wikimedia root.
 * In your wiki's .htaccess file, add the following definitions:
 * Finally, chown and chmod all the .php files of your Wikimedia folder to be accessible solely by wikiuser.

I strongly suggest you start out with /cgi-bin/cgiwrapd/... as your php-wrapper, as it will precisely show what is currently working. I also strongly suggest you do not delete your CGIWrap source folder until everything works perfectly as this is a real trial and error process, taking a long time. However, it's all worth your time as your MediaWiki will be run in its own separate process, in its own uid, without being able to interfere any other uid. Inverse is also true, except for root, that can read anything anywhere.

mod_alias e mod_rewrite
O métodos recomendao de envolve  mod_alias. Outros métodos usados mod_rewrite ao invés.

mod_security
foi conhecido para causar problemas com MediaWiki. Se você receber erros aparentemente ao acaso, confira seu Log de erro para ver o que está causando problemas.

Thread stack size
The stack size for for each Apache thread is configurable and the default varies on different operating systems. To run MediaWiki on Windows environments it may be necessary to increase the stack size (if there are problems), as the 1MB default is small and can cause stack overflows during PHP script execution. The following httpd.conf setting will set the stack size to about 8MB (about a typical Linux default):

Aranhas e bots
You really should use a file to tell well-behaved spiders not to download dynamically generated pages (edit pages, for instance). This can reduce the load on your webserver, preserve your bandwidth, and prevent duplicate content issues with search engines. However, malicious bots could tie up your webserver and waste your bandwidth by downloading a large volume of pages extremely quickly. Request throttling can help protect against this.