Jump to:

4938 Posts in 16484 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Installation errors

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

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

Page: 1 2
Go to End
Author Topic: 2669 Views
  • JSD1985
    Avatar
    Community Member
    12 Posts

    Installation errors Link to this post

    Hello,

    When I want to install silverstripe i get this message:

    mod_rewrite doesn't appear to be working. Make sure:

    * mod_rewrite is enabled in your httpd.conf
    * AllowOverride is enabled for the current path.

    What can I do about this? I also can't find the httpd.conf file.

    Greetz,
    Jeroen

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: Installation errors Link to this post

    What type of server are you trying to setup - like on your computer or a webserver?. If you are on the linux host the httpd.conf file is usually in /etc/apache2/. You will need to make sure AllowOverride is on in that (if you can't access or edit that file you will need to talk to your host)

  • JSD1985
    Avatar
    Community Member
    12 Posts

    Re: Installation errors Link to this post

    I use a webhosting service by a extern company so it's on a webserver. I have no idea if they use Linux or Windows servers. I think the use Linux.

    So I need to contact my webhoster? I find it kinda strange because I did more SilverStripe installations before and everything worked fine. Maybe it has to do with a SS update or something.

    Greetz,
    Jeroen

  • d-virus
    Avatar
    Community Member
    21 Posts

    Re: Installation errors Link to this post

    in your htacces file, add this lines

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

  • pace obed
    Avatar
    Community Member
    6 Posts

    Re: Installation errors Link to this post

    I have same problem with JSD1985. I want install SS on my computer, I get this message :

    mod_rewrite enabled   You need mod_rewrite to run SilverStripe CMS, but it is not enabled.

    what is the solution for my problem?

    regadrs,
    obed

  • d-virus
    Avatar
    Community Member
    21 Posts

    Re: Installation errors Link to this post

    Hey pace obed, open your htacces and put the lines:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php

    save your htacces, and try again.

  • pace obed
    Avatar
    Community Member
    6 Posts

    Re: Installation errors Link to this post

    @d-virus, I have add your script like this :
    ### SILVERSTRIPE START ###
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    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]
    </IfModule>
    ### SILVERSTRIPE END ###

    but still error. any idea?

  • d-virus
    Avatar
    Community Member
    21 Posts

    Re: Installation errors Link to this post

    Please put the lines before silverstripe start:

    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    ### SILVERSTRIPE START ###
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    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]
    </IfModule>
    ### SILVERSTRIPE END ###

    2669 Views
Page: 1 2
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.