Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Upgrading SilverStripe /

Ask questions about upgrading SilverStripe to the latest version.

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

500 error on upgrade and fresh install


2 Posts   1811 Views


Community Member, 34 Posts

30 December 2010 at 11:46am

Edited: 30/12/2010 11:49am

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_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



Community Member, 34 Posts

1 January 2011 at 3:02am

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