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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Staticpublisher is looping pages to install.php


4 Posts   568 Views


5 August 2010 at 7:35am Community Member, 125 Posts

Hi all,
I have a successful install of SS working on my site (and it has been for a while). But recently I wanted to check out the staticpublisher so I followed the instructions on and did all steps.
But now the site redirects to install.php page in an infinite loop.

Any ideas on what is going on?


8 August 2010 at 3:13am (Last edited: 8 August 2010 3:54am), Community Member, 125 Posts

any ideas??

Also, thought I should mention:
Site is on SS 2.4.0
and CMS and Sapphire folders are Symbolic Links.

Another clue is that it works with 2.3 .htaccess instead of the RewriteRule .* sapphire/static-main.php?url=%1&%{QUERY_STRING} [L]


8 August 2010 at 4:08am Community Member, 125 Posts


Ok I found out what the problem. Since I was setup for multisite using Symbolic Links to the CMS and Sapphire folder, I needed to change
line 38ish in static-main.php from
define('BASE_PATH', rtrim(dirname(dirname(__FILE__))), DIRECTORY_SEPARATOR);
define('BASE_PATH', rtrim(dirname(dirname($_SERVER['SCRIPT_FILENAME'])), DIRECTORY_SEPARATOR));


8 August 2010 at 11:14am Community Member, 901 Posts

Read here for a solution that will allow symlinked folders without the need of hacking core files:

I guess that should work with static-publisher as well?