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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   2489 Views

Avatar
eviking

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:

http://www.rosetta.no/silver

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

Any suggestions to get me going would be greatly appreciated.

Avatar
monkeyben

Community Member, 25 Posts

18 December 2008 at 4:27am

mod_rewrite will try to redirect the links on your website to: -
http://www.rosetta.no/silver/sapphire/main.php?url=home
http://www.rosetta.no/silver/sapphire/main.php?url=about-us
http://www.rosetta.no/silver/sapphire/main.php?url=contact-us
http://www.rosetta.no/silver/sapphire/main.php?url=admin

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.

hth,

Ben

Avatar
eviking

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 http://www.rosetta.no/feil/index.html
<IfModule mod_rewrite.c>
   SetEnv MOD_REWRITE_ENABLED 1
</IfModule> 

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

Avatar
Hamish

Community Member, 712 Posts

18 December 2008 at 11:01am

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

modify it to:

### SILVERSTRIPE START ###
<IfModule mod_dir.c>
DirectorySlash Off
</IfModule>

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

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]

### SILVERSTRIPE END ###

Avatar
eviking

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 :)

Avatar
eviking

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.