Jump to:

1169 Posts in 2694 Topics by 411 members

Upgrading SilverStripe

SilverStripe Forums » Upgrading SilverStripe » 500 error on upgrade and fresh install

Ask questions about upgrading SilverStripe to the latest version.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1740 Views
  • oldwrinkly
    Community Member
    34 Posts

    500 error on upgrade and fresh install Link to this post

    upgrading to the latest version on local xampp all ok except some overwriting of buttons with code in image gallery.

    uploaded saphire, cms, and updated modules to the live site, changed to `dev` mode but will not run /dev/build/.

    I get...
    The server encountered an internal error or misconfiguration and was unable to complete your request.
    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

    I exported the local database then imported to the live site ok, but still cannot run either /dev/build or ?flush=all.

    I installed a `phpinfo file and it shows , at least I think it does, a problem with the database config.

    MySQL Support   enabled
    Active Persistent Links    0
    Active Links    0
    Client API version    5.0.90
    MYSQL_MODULE_TYPE    external
    MYSQL_SOCKET    /var/lib/mysql/mysql.sock
    MYSQL_INCLUDE    -I/usr/include/mysql
    MYSQL_LIBS    -L/usr/lib64/mysql -lmysqlclient

    Directive   Local Value   Master Value
    mysql.allow_persistent   On   On
    mysql.connect_timeout   60   60
    mysql.default_host   no value   no value
    mysql.default_password   no value   no value
    mysql.default_port   no value   no value
    mysql.default_socket   no value   no value
    mysql.default_user   no value   no value
    mysql.max_links   Unlimited   Unlimited
    mysql.max_persistent   Unlimited   Unlimited
    mysql.trace_mode   Off   Off

    apache error log has pages of this error

    [Wed Dec 29 22:29:38 2010] [error] [client] 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.

    What has altered and can anyone help to put it right please


  • oldwrinkly
    Community Member
    34 Posts

    Re: 500 error on upgrade and fresh install Link to this post

    The server engineer says that `your site is hitting what appears to be a constant redirect loop.`

    and the probable cause is the .htaccess code

    The .htaccess code in the root says....

    <Files *.ss>
       Order deny,allow
       Deny from all
       Allow from

    <Files web.config>
       Order deny,allow
       Deny from all

    ErrorDocument 404 /assets/error-404.html
    ErrorDocument 500 /assets/error-500.html

    <IfModule mod_alias.c>
       RedirectMatch 403 /silverstripe-cache(/|$)

    <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /silverstripe

       RewriteCond %{REQUEST_URI} ^(.*)$
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    the .htaccess code in saphire says....

    <FilesMatch "\.(php|php3|php4|php5|phtml|inc)$">
       Deny from all
    <FilesMatch "(main|static-main|rpc)\.php$">
       Allow from all

    Can anyone please tell me what needs altering as I haven`t got a clue


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.