WordPress.org

Ready to get started?Download WordPress

Codex

Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

pt-br:Ativando o Multisite

Artigo ou Seção com explicações avançadas
A seguir, estão explicações ou instruções para usuários avançados, o que pode exigir o conhecimento de termos e ferramentas não comuns a todas as pessoas.
Adicione {{Avançado}} para usar esta caixa.

Se você já sabe como sua rede de sites vai funcionar, o passo seguinte pe ativar o modo de Multisite do WordPress.

Contents

Passo 1: Permitir o Multisite

Para ativar o item de menu de rede, primeiro você deve definir em vários locais no arquivo wp-config.php.

Abra o arquivo wp-config.php e adicione o seguinte acima da linha /* Isto é tudo, pode parar de editar! :) */:

define('WP_ALLOW_MULTISITE', true);

Passo 2: Instalando a Rede

Isso permitirá que o item do menu Rede para aparecer no menu Ferramentas. Visite Administration > Tools > Network para ver a tela onde você irá configurar certos aspectos da sua rede.

Tools Network SubPanel
Endereços dos sites da sua rede
You are given the choice between sub-domains or sub-directories (if none of the above applies). This means each additional site in your network will be created as a new virtual subdomain or subdirectory. you have to pick one or the other, and you cannot change this unless you reconfigure your install. See also Before You Begin.
  • Sub-domains -- like site1.example.com and site2.example.com
  • Sub-directories -- like example.com/site1 and example.com/site2
Network Details
There are filled in automatically.
Server Address
The Internet address of your network will be example.com.
Network Title
What would you like to call your network?
Admin E-mail Address
Your email address.

Double-check they are correct and click the botão Instalar.

You may receive a warning about wildcard subdomains. Check Setting Wildcard Subdomains.

Warning! Wildcard DNS may not be configured correctly!

The installer attempted to contact a random hostname (13cc09.example.com) on your domain.

To use a subdomain configuration, you must have a wildcard entry in your DNS. This usually means adding a * hostname record pointing at your web server in your DNS configuration tool.

You can still use your site but any subdomain you create may not be accessible. If you know your DNS is correct, ignore this message.

Passo 3: Ativando a Rede

The rest of the steps are ones you must complete in order to finish.

Tools Network Created


0. First, back up your existing wp-config.php and .htaccess files.
1. Create a blogs.dir directory under /wp-content/
This directory is used to stored uploaded media for your additional sites and must be writable by the web server. They should be CHOWNed and CHMODed the same as your wp-content directory.
2. Add the extra lines your WordPress installation generates into your wp-config.php file.
These lines are dynamically generated for you based on your configuration.
Edit the wp-config.php file while you are logged in to your sites admin panel.
Then just paste the generated lines immediately above /* That's all, stop editing! Happy blogging. */.


3. Add the generated mod_rewrite rules to your .htaccess file, replacing other WordPress rules.
(If there isn't one, then create it.)
These lines are dynamically generated for you based on your configuration.
4. Log in again.
Once the above steps are completed and the new wp-config.php & .htaccess files are saved, your network is enabled and configured. You will have to log in again. click "Log In" to refresh your Adminstration Panel. If you have problems logging back in, please clear your browser's cache and cookies.

Passo 4: Configurações de Rede do Admin

In 3.0, you had a new menu for Super Admin, but as of 3.1 you have an entire sub-section for Network Admin. The link can be found on the upper-right of all admin screens, by your name.

Go to the Settings panel to configure network options, and the Sites panel to manage your sites.


A documentação do WordPress em Português do Brasil.
Todas as comunidades lusófonas também são bem-vindas! Adicione {{Codex-pt}} em seus artigos.