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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

installed Silverstripe, worked, changed theme, now redirect hell

Go to End

4 Posts   2682 Views


Community Member, 3 Posts

8 December 2009 at 7:56am

worked fine, changed theme in _config.php and now I'm getting redirected to install.php (no longer exists since i trashed it) and getting this error: Too many redirects occurred trying to open “http://XX.XX.XXX.XX/”. This might occur if you open a page that is redirected to open another page which then is redirected to open the original page.

Tried loading http://XX.XX.XXX.XX/dev/build to force the db to rebuild, but no dice.. same redirect nonsense!



Forum Moderator, 5523 Posts

8 December 2009 at 8:35pm

Check the redirection isn't just cached - try another browser or by CTRL + F5. Another thing to check is does the $database variable exist in your _config file. If SS cannot *see* that its installed in a database it may think it hasn't been installed yet so double check your mysite/_config db details.


Community Member, 8 Posts

16 July 2010 at 6:14pm

Hi all,

I just ran into the same problem yesterday. I upgraded to 2.4.0 and it was running fine, then I built my own template and wanted to give it a test run. So, I uploaded the template and changed the _config in "mysite" and now the site's going through endless redirect loops.

I've dumped the cache, ran dev/build/?flush=all, tried opening the site on different browsers to make sure it wasn't a cache issue, and I've fiddled around with the _config file some more in hopes that I could get the site to stop redirecting. No luck so far. If it helps any, the following is the content of my _config file:


global $project;
$project = 'mysite';

global $database;
$database = '';



// enable nested URLs for this site (e.g. page/sub-page/)

// This line set's the current theme. More themes can be
// downloaded from

"cunardclassic" is the name of the theme I'm trying out and have uploaded into the templates folder, so I'm pretty sure it's in the right place. I've also thought that maybe it was a template issue and tried redirecting _config to the default Blackcandy, but I still run into the redirect loop.

Right now am I running SilverStripe as a future platform for my website (the conversion process is ongoing) and haven't been able to move over the content since the redirect loop. The temporary site is available for viewing here:

Any pointers would be much, much appreciated!


Forum Moderator, 922 Posts

17 July 2010 at 5:50pm

It looks like your _config.php file isn't filled out correctly. For example, $database = '' means it will always try to access the install.

Perhaps it would be a good idea to run the SilverStripe 2.4 installer, so that it will out this file for you with the correct database details, etc?