Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
Copa WPB
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Como ativar a opção de vários sites no WordPress 3.0

Nota editorial: Ganhamos uma comissão de links de parceiros no WPBeginner. As comissões não afetam as opiniões ou avaliações de nossos editores. Saiba mais sobre Processo editorial.

O WordPress 3.0 é o momento em que ocorre a grande fusão. O núcleo do WPMU é incorporado ao WordPress, o que significa que agora é possível executar vários blogs em uma única instalação do WordPress. Esse novo recurso está sendo chamado de opção de rede ou de vários sites. Por padrão, esse recurso está desativado. Se quiser usar essa opção em seu WordPress, será necessário ativá-la.

Para ativar esse recurso, basta abrir o arquivo wp-config.php localizado na pasta raiz do WordPress. Em seguida, adicione a seguinte linha em qualquer lugar do arquivo:

define('WP_ALLOW_MULTISITE', true);

Depois de fazer isso, você poderá acessar a página de rede em Ferramentas ” Rede

WordPress Multi-site Option

Agora, você não precisa mais instalar várias cópias do WordPress porque pode executar vários blogs em uma única instalação. Por padrão, você só tem permissão para executar outros blogs como um subdomínio. Para usar outros domínios para blogs, você pode usar um plugin de mapeamento de domínio.

Divulgação: Nosso conteúdo é apoiado pelo leitor. Isso significa que, se você clicar em alguns de nossos links, poderemos receber uma comissão. Veja como o WPBeginner é financiado, por que isso é importante e como você pode nos apoiar. Aqui está nosso processo editorial.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

O kit de ferramentas definitivo WordPress

Obtenha acesso GRATUITO ao nosso kit de ferramentas - uma coleção de produtos e recursos relacionados ao WordPress que todo profissional deve ter!

Reader Interactions

93 ComentáriosDeixe uma resposta

  1. Syed Balkhi says

    Hey WPBeginner readers,
    Did you know you can win exciting prizes by commenting on WPBeginner?
    Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
    You can get more details about the contest from here.
    Start sharing your thoughts below to stand a chance to win!

  2. mohadese esmaeeli says

    Hello! Is it better to have a WordPress network, or should we use the subdomains and subdirectories feature to launch side websites?
    In a WordPress network, the database is unified, and this may lead to crashes or database heaviness. What is your opinion? Which one is better?

    • WPBeginner Support says

      It would heavily depend on your specific use case for what would be best to use. If you are concerned about your database size then you would want to create individual sub-sites so each has their own database.

      Administrador

  3. Wayne Curran says

    Thanks for this info about enabling multi site.

    I have a problem though. I can’t install or upgrade anything. It keeps asking for ftp details. My wordpress is running on a synology NAS.

    • WPBeginner Support says

      @Wayne this problem usually occurs when WordPress is unable to write files on the server. It happens when PHP is running under mod_php or CGI as the user instead of the user that owns WordPress files. You can ask your hosting provider for support. Meanwhile you can also add your FTP credentials in wp-config.php file so that you don’t have to enter them each time.

      define( 'FTP_USER', 'username' );
      define( 'FTP_PASS', 'password' );
      define( 'FTP_HOST', 'ftp.example.org:21' );

      Administrador

      • Wayne Curran says

        Thanks for the reply.

        I think I need to add some more info.

        I installed wordpress on my Synology NAS via the package installer, so it’s installed locally on my NAS at home. The site isn’t hosted externally at all. Completely local. (it can be accessed from the web via a synology domain name)

        I’m currently only experimenting with building my sites. I need 3 sites hence why I need the multisite option. Without this option, I’m unable to experiment with all my sites. I can only play with one at a time.

        Anyhow, I should have also added initally that when I enter the ftp login details, they don’t work. I’ve racked my brains to try and work out what ftp details it could be after but none of them work.

        Are then specific login details for as you mentioned ‘mod_php or CGI’. I don’t even know what that means :-)

        • Wayne Curran says

          Update!!

          I’ve reinstalled from scratch. All working ok now.

          But, a new question.

          In the general settings, 2 fields are missing. WordPress address and site address.

          Any thoughts?

  4. Nimitz says

    Hi, it is possible that users has a blog on my wpmu then they can have their own domain name? same like on wordpress.com that any blog can upgrade to their own domain name?

  5. Alexander says

    Would you provide a step by step guide for creating a multi-site setup on local machine using Xampp on Windows 8.

  6. Yevgen says

    It seems that Domain Mapping plugin is unsupported anymore. Are there any alternatives? Is it possible to setup domains manually using functions.php?

    Thanks.

Deixe um comentário para admin_keajon Cancelar resposta

Obrigado por deixar um comentário. Lembre-se de que todos os comentários são moderados de acordo com nossos política de comentários, e seu endereço de e-mail NÃO será publicado. NÃO use palavras-chave no campo do nome. Vamos ter uma conversa pessoal e significativa.