Support » Networking WordPress » How to install multisite at home?

  • Resolved colegota

    (@colegota)


    Hi!
    I’m planning to move some multi-blog installations to 3.0 and before, I’d like to test it at home.

    Used official Spanish version downloaded from http://es.wordpress.org

    I’ve installed WP 3.0 having apache, mysql, etc. As it’s a local site on my computer just at http://localhost I prepared for a subdirectory installation, while later at my Internet sites it will be a subdomain installation.

    After normal installation process, I follow instructions at
    http://codex.wordpress.org/Create_A_Network
    Go to Tools->Network and follow instructions:

    – Created …/wp-content/blogs.dir directory.

    – Updated wp-config.php above the “tha’s all” line with:

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'localhost' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    – updated (created) .htaccess with:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Then login again, but no Super Admin menu appears!

    If I click again in Network it said that there is an existing network detected.

    As I saw in other thread, I tried
    http://localhost/wp-admin/ms-sites.php
    And I get the message

    Multisite support is not enabled.

    It’s possible to install a multisite wp at home? What I mistake?

    Thanks!
    Colegota

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yes, it works on localhost.

    Check to make sure the quotes (these things -> ‘ ) are straight up and down and not curly.

    … and it seems there’s no reason why you can’t make your test system a subdomain install, as long as you add an appropriate subdomain entry in your hosts file for each blog. Just found an example.

    Thanks! But all the quotes at wp-config.php seems to be right.

    Also took a look to multi-domain example and I’ll try later. While I don’t know how to deal with “*” subdomain. I have not cpanel at home.

    Regards,
    Colegota

    While I don’t know how to deal with “*” subdomain. I have not cpanel at home.

    Doesn’t matter, it’s a limitation of localhost. It doesn’t support wildcards (the *).

    see dgilmour’s post above for the subdomains.

    Hi!

    Not sure if understood… I’m trying to make a subdomain install now.

    – created new entries at /etc/hosts:

    127.0.0.1 alforjas
    192.168.1.2 mapamundi.villanos.net mapamundi
    127.0.0.1 localhost
    #--- new ones ---
    127.0.0.1 localhost.fotolibre
    127.0.0.1 colegota.localhost.fotolibre
    127.0.0.1 prueba.localhost.fotolibre

    – changed site and WP url at wp settings to localhost.fotolibre

    – logged again, now to http://localhost.fotolibre

    – go to tools->network several times changing at wp-config.php with just the define(‘WP_ALLOW_MULTISITE’, true); line or including the others

    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', false );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'localhost' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );

    changing also to define( ‘SUBDOMAIN_INSTALL’, true ); and define( ‘DOMAIN_CURRENT_SITE’, ‘localhost.fotolibre’ ); or just the first line.

    But still no Super Admin menu, and Tools->Network said there is an existing network and the same instructions to edit .htaccess and wp-config.php

    Maybe previous not finished install with sub-directories still there, because tools->network said that I must put define( ‘SUBDOMAIN_INSTALL’, false ); in wp-config.php

    Any ideas?
    Colegota

    Just a little update. I finally did the sub-domain installation at localhost configuration. I just needed to make a clean new installation after remove tables at database and start complete installation again.
    Seems to “remember” my first sub-directories installation until cleaned.

    Now it’s working with sub-domains.

    Regards,
    Colegota

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to install multisite at home?’ is closed to new replies.