WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] multisite working but wp-admin 500 Internal Server Error (6 posts)

  1. aldoemilio
    Member
    Posted 1 year ago #

    I installed a fresh multisite (sub directory type) and created 3 sub - sites. The sites are accessible, but not the wp-admin of any of them. I got a 500 Server Error.
    The error in the log is:
    syntax error, unexpected '=' in /usr/local/lib/php.ini on line 842
    I checked in the cPanel forums. Corrected the issue but still getting the 500 error.

    The .htaccess reads:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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).*) wp/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wp/$2 [L]
    RewriteRule . index.php [L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
  2. aldoemilio
    Member
    Posted 1 year ago #

    The server error log now reads:
    Request exceeded the limit of 10 internal redirects due to probable configuration error. Use LimitInternalRecursion to increase the limit if necessary. Use LogLevel debug to get a backtrace., referer: http://domain.com/en/

  3. aldoemilio
    Member
    Posted 1 year ago #

    Changing the .htaccess to the following solved the problem:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [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]
  4. aldoemilio
    Member
    Posted 1 year ago #

    Solved!

  5. ameeromar
    Member
    Posted 1 year ago #

    Thank you for this, your final fix to htaccess helped me!

  6. kgangadhar
    Member
    Posted 11 months ago #

    error log file error code
    =========================
    [19-Jun-2013 10:25:46 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0

    error log file error code
    ==========================

    i am unable to access the wp-admin/

    this is my htaccess file code
    RewriteEngine On
    RewriteBase /web/
    RewriteRule ^index\.php$ - [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]

    any pls help me out

Topic Closed

This topic has been closed to new replies.

About this Topic