• Resolved stackaruk

    (@stackaruk)


    I just installed wordpress multisite however when I try to navigate to the dashboard for my subdomain I receive this error:

    500 Internal Server Error

    A tech from my host service had a look and this is what he said:
    I have tried to resolve the problem, unfortunately to no avail. I created a new site for the sub domain test.goldentechnologies.ca to perform tests with. I noticed in the server error log that when the dashboard for the sub domain sites is accessed too many internal redirects are made, which is causing the error. I tried to use the suggested .htaccess directives in this article:

    http://codex.wordpress.org/Multisite_Network_Administration

    however that did not resolve the problem.

    I carefully checked WordPress’ documentation on the multisite feature, and searched on the Internet for similar problems, and although I found quite a few similar issues reported none of the proposed solutions resolved the problem.

    Here is my htaccess code and wp-config:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    * Change this to true to enable the display of notices during development.
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
     * in their development environments.
     */
    define('WP_DEBUG', false);
    define('MULTISITE', true);
    define('SUBDOMAIN_INSTALL', true);
    $base = '/';
    define('DOMAIN_CURRENT_SITE', 'goldentechnologies.ca');
    define('PATH_CURRENT_SITE', '/');
    define('SITE_ID_CURRENT_SITE', 1);
    define('BLOG_ID_CURRENT_SITE', 1);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    if ( !defined('ABSPATH') )
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    define('WP_ALLOW_MULTISITE', true);
    require_once(ABSPATH . 'wp-settings.php');

    Hope someone can help with this:)

    Cheers

Viewing 14 replies - 1 through 14 (of 14 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    How did you set up your subdomains on your server?

    Thread Starter stackaruk

    (@stackaruk)

    I used the cPanel subdomains to set it up.

    Thread Starter stackaruk

    (@stackaruk)

    Funny Ipstenu, I was just going to try some htaccess code you provided to another member with a similar problem.

    Thread Starter stackaruk

    (@stackaruk)

    Didn’t work, any ideas Mika?
    Cheers, Blair

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    I used the cPanel subdomains to set it up.

    And how did we do that? πŸ™‚

    Did you make wildcards, did you make them one at a time and point them to /public_html/ …?

    Thread Starter stackaruk

    (@stackaruk)

    In my cPanel you just type in the name for the subdomain and it creates and points to the public_html automatically.
    I did not make a wildcard.

    Thread Starter stackaruk

    (@stackaruk)

    Here is the php errorlog:

    [11-Sep-2012 22:51:38 UTC] PHP Fatal error: require() [function.require]: Failed opening required ‘./wp-blog-header.php’ (include_path=’.:/usr/local/php53/pear’) in /home/golden60/public_html/members/index.php on line 17

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    In my cPanel you just type in the name for the subdomain and it creates and points to the public_html automatically.

    That’s odd. By default it points to /public_html/subdomainname for every cPanel install I’ve ever seen.

    Go back and double check.

    Now I know goldentechnologies.ca is your main domain. What sub are we testing?

    Thread Starter stackaruk

    (@stackaruk)

    members.goldentechnologies.ca

    Thread Starter stackaruk

    (@stackaruk)

    You are correct about the cPanel default path, is that incorrect?

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    πŸ³οΈβ€πŸŒˆ Advisor and Activist

    It’s correct, just not for what you want πŸ˜‰

    Change the cPanel path from /public_html/members/ to just /public_html/

    Thread Starter stackaruk

    (@stackaruk)

    Within the subdomain creation tool I get a message saying:
    There was a problem creating the sub-domain.
    Details: dealers.goldentechnologies.ca domainadmin-domainexistsglobal

    Thread Starter stackaruk

    (@stackaruk)

    Mika, you rock!
    It worked:)))
    Now on to the next phase of the project, the installation of WP eCommerce.
    Any advise:)

    Ameet Agarwal

    (@ameetagarwal)

    Had the same problem and this is what i tried –

    In the .htaccess file:

    # BEGIN WordPress
    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]
    
    # Add Expires Header to Static Resources
    ExpiresActive On
    ExpiresByType image/gif A2592000
    ExpiresByType image/png A2592000
    ExpiresByType image/jpg A2592000
    ExpiresByType image/jpeg A2592000
    ExpiresByType image/ico A2592000
    ExpiresByType text/css A2592000
    ExpiresByType text/javascript A2592000
    ExpiresByType text/js A2592000
    ExpiresByType application/x-javascript A2592000
    ExpiresByType text/htm A2592000
    ExpiresByType text/html A2592000
    ExpiresByType application/xhtml A2592000
    ExpiresByType application/xml A2592000
    
    # END WordPress

    Added the following to wp-config.php:

    $base = '/';

    after
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘500 Internal Server Error For WordPress Multisite’ is closed to new replies.