WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 500 Internal Server Error For WordPress Multisite (15 posts)

  1. stackaruk
    Member
    Posted 1 year ago #

    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

  2. How did you set up your subdomains on your server?

  3. stackaruk
    Member
    Posted 1 year ago #

    I used the cPanel subdomains to set it up.

  4. stackaruk
    Member
    Posted 1 year ago #

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

  5. stackaruk
    Member
    Posted 1 year ago #

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

  6. 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/ ...?

  7. stackaruk
    Member
    Posted 1 year ago #

    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.

  8. stackaruk
    Member
    Posted 1 year ago #

    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

  9. 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?

  10. stackaruk
    Member
    Posted 1 year ago #

    members.goldentechnologies.ca

  11. stackaruk
    Member
    Posted 1 year ago #

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

  12. It's correct, just not for what you want ;)

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

  13. stackaruk
    Member
    Posted 1 year ago #

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

  14. stackaruk
    Member
    Posted 1 year ago #

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

  15. Ameet Agarwal
    Member
    Posted 1 year ago #

    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);

Topic Closed

This topic has been closed to new replies.

About this Topic