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


Reply


2 Posts   1776 Views

Avatar
oldwrinkly

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.
and
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
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 66.249.66.235] 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

Regards
Mike

Avatar
oldwrinkly

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

### SILVERSTRIPE START ###
<Files *.ss>
   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
</Files>

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

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

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

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteBase /silverstripe

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

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

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

Regards
Mike