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

Getting it to run...

Go to End

6 Posts   1662 Views


Community Member, 4 Posts

18 December 2008 at 1:56am

SilverStripe looks very interesting but I have struggled for some hours to getting it to run.

During installation it says that it can not determine if mod_rewrite is running. I found a post in this forum on how to write a PHP snippet to determine if it is running. I tried the snippet and it seems to be running.

This is as far as I get:

Trying any of the links, e.g. Home results in a 404 error.

Any suggestions to get me going would be greatly appreciated.


Community Member, 25 Posts

18 December 2008 at 4:27am

mod_rewrite will try to redirect the links on your website to: -

All but the home page work directly so it looks like you have a rewrite issue. Have a look at what your websites ".htaccess" file contains. It should be in your root directory, though to see it you will have to make sure you can view hidden files.




Community Member, 4 Posts

18 December 2008 at 6:44am

Thanks a lot for answering, MonkeyBen!

This is the content of my .htaccess file ( in my www directory ) :

ErrorDocument 404
<IfModule mod_rewrite.c>

The last three lines were added to find out that mod_rewrite was active.

This is a shared host.

There is no .htaccess file in my root dir, the file above is in /www


Community Member, 712 Posts

18 December 2008 at 11:01am

.htaccess should be in /www, so that's fine.

modify it to:

<IfModule mod_dir.c>
DirectorySlash Off

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

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ 

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



Community Member, 4 Posts

18 December 2008 at 2:00pm

I'm really sorry, but it still wont work...

Putting that .htaccess in /www still did not help (although my other online apps in other direcories stopped working)

Putting it in /www/silver (replacing the ss version) also did not work ( i then used RewriteBaseith them /silver )

The host is a well known provider, I have 25+ domains with them and run Joomla, ecommerce and even CRM with no problems.

Oh, well. I'm not ready to give up yet, if you guys till have the patience with me :)


Community Member, 4 Posts

21 December 2008 at 8:01am

I'll try a bump on this thread :)

I still have not found a solution to getting SS to work.

If you see MonkeyBens post above (#2 in the thread) all direct links seem to work, except home.

I've tried the suggestions with .htaccess.

If I use the direct link to log in, I can edit the pages, but not save them.

I'd really appreciate any further suggestions, as I am completely stuck at the moment.