Jump to:

4937 Posts in 16240 Topics by 1489 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Getting it to run...

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

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

Page: 1
Go to End
Author Topic: 1447 Views
  • eviking
    Avatar
    Community Member
    4 Posts

    Getting it to run... Link to this post

    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.

  • MonkeyBen
    Avatar
    Community Member
    25 Posts

    Re: Getting it to run... Link to this post

    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

  • eviking
    Avatar
    Community Member
    4 Posts

    Re: Getting it to run... Link to this post

    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

  • Hamish
    Avatar
    Community Member
    712 Posts

    Re: Getting it to run... Link to this post

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

  • eviking
    Avatar
    Community Member
    4 Posts

    Re: Getting it to run... Link to this post

    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

  • eviking
    Avatar
    Community Member
    4 Posts

    Re: Getting it to run... Link to this post

    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.

    1447 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.