• Resolved bastringue

    (@bastringue)


    Hello all.
    I have started by installing WP (single site) on a local linux/apach2, on localhost, and it works fine (I have put WP in /var/www/html/mysite as my webroot is /var/www/html and I connect with https://localhost/mysite)…
    And then I tried to switch to a multisite installation…
    I checked that mod_rewrite of apache2 was on (ok) and then started to follow the process: adding the define( ‘WP_ALLOW_MULTISITE’, true ) in wp-config.php, and next, adding the other lines in .htaccess and in wp-config when asked, etc..
    After this, I could create a subsite (with the name “mma”) in the sites administration (ok), but when I click on the subsite administration, I get
    The requested URL /mysite/mma/wp-admin/ was not found on this server.
    I have done it several times…carefully…but it fails…

    My only clue so far : I understand that in my case, my multi-site installation is obligatorily a “ sub-directory” one (and not a sub-domain one) because the index.php is not directly in the webroot but in the directory /var/www/html/mysiste/ and consequently, the sub-sites will be accessed by directory naming like https://localhost/mysite/subsite (right ?)…I have read in the codex (“Restrictions”) that multi-site with “sub-directory” mode was not working on a local server named “localhost” and that it would be necessary to use an alias (set up in /etc/hosts): I have also tried this but it failed…
    Some help would be greatly appreciated…Thank you in advance.
    Pierre

    • This topic was modified 7 years, 4 months ago by bastringue.
    • This topic was modified 7 years, 4 months ago by bastringue.
    • This topic was modified 7 years, 4 months ago by bastringue.
    • This topic was modified 7 years, 4 months ago by bastringue.
    • This topic was modified 7 years, 4 months ago by bastringue.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bastringue

    (@bastringue)

    …precision : It is the version 2.4 of apache2 and I have the bad feeling that it comes from the configuration of this new version but I have no idea of how configure it for WP multisite…

    Thread Starter bastringue

    (@bastringue)

    I got it and it was rather simple finally: in the default configuration file of apache2 (/etc/apache2/sites-available/000-default.conf) it was necessary to add;
    <Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>
    and to reload apache2 of course…
    Alternatively, it is possible, and probably better, to create a specific configuration file for a specific virtual host (rather than modifying the default one)
    Hope that will help…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘cannot find the URL of a secondary site (sub directory multisite installation)’ is closed to new replies.