• I installed Multisite on localhost with subdomains and domain mapping.
    I created virtual hosts, changed the hosts file.

    When I add a new site and click on Dashboard, it gives 500 Internal Server Error. The Visit Site is working fine.

    My wp-config.php is:

    define('WP_ALLOW_MULTISITE', true);
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'wp.localhost.localadmin' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    
    define( 'SUNRISE', 'on' );

    My .htaccess is:

    <IfModule mod_rewrite.c>
    
    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).*) $1 [L]
    RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
    
    </IfModule>

    What am I missing???

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter macskazs

    (@macskazs)

    I discoverd another odd thing.
    I added the first site, the visit site is working.
    I added a second site with virtual host configured, but the visit site brings up the first site’s index.html. Why is it pointing to that directory, when I told it to look in its own directory?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    When I did that, I pulled it back to basics.

    1. Install MAMP (I’m lazy, they perfected it)
    2. Setup ipstenu.loc in my hosts file
    3. Install WP in ipstenu.loc
    4. Activate Multisite with Subdomains (ignoring the error)
    5. make second.ipstenu.loc within WP
    6. setup secondly.loc in hosts, pointing just like I did ipstenu.lo
    7. Domain Mapping Plugin stuff

    There was no need to mess with vhosts, since I’m not actually trying to make a second domain, but instead actually use Multisite as it’s intended.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘New Site Dashboard Internal Server Error’ is closed to new replies.