Jump to:

4571 Posts in 1384 Topics by 1376 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Installing SilverStripe 2.4.3 on home.pl (Polish ISP)

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

Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 953 Views
  • DzikiLis
    Avatar
    Community Member
    1 Post

    Installing SilverStripe 2.4.3 on home.pl (Polish ISP) Link to this post

    Hello,

    There is an easy way to install SilverStripe on home.pl. They use IdeaWebServer instead of Apache, so you have to make changes in .htaccess files before uploading them:

    1) .htaccess (located in main folder) - replace:

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

    with following lines:

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

    RewriteCond %{REQUEST_FILENAME} index..* [NC]
    RewriteRule .* sapphire/main.php?url=/ [L]

    2) cms/.htaccess - delete this file (IdeaWebServer's <FilesMatch> syntax is incompatibile with Apache).

    Hope this helps.

    s.

  • qlex
    Avatar
    Community Member
    67 Posts

    Re: Installing SilverStripe 2.4.3 on home.pl (Polish ISP) Link to this post

    Hey, just to confirm this is also valid for Silverstripe 3.0.5. Replacing sapphire with framework, so a working .htaccess is:

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

    <Files web.config>
       Order deny,allow
       Deny from all
    </Files>

    # This denies access to all yml files, since developers might include sensitive
    # information in them. See the docs for work-arounds to serve some yaml files
    <Files *.yml>
       Order allow,deny
       Deny from all
    </Files>

    ErrorDocument 404 /assets/error-404.html
    ErrorDocument 500 /assets/error-500.html

    <IfModule mod_alias.c>
       RedirectMatch 403 /silverstripe-cache(/|$)
       RedirectMatch 403 /vendor(/|$)
       RedirectMatch 403 /composer\.(json|lock)
    </IfModule>

    <IfModule mod_rewrite.c>
       SetEnv HTTP_MOD_REWRITE On
       RewriteEngine On

    RewriteCond %{REQUEST_URI} !(.gif)|(.jpg)|(.png)|(.css)|(.js)|(.php)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ framework/main.php?url=$1&%{QUERY_STRING} [L]

    RewriteCond %{REQUEST_FILENAME} index..* [NC]
    RewriteRule .* framework/main.php?url=/ [L]

    </IfModule>
    ### SILVERSTRIPE END ###

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