Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » mod_rewrite enabled

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: 3262 Views
  • amarbhanu
    Avatar
    Community Member
    57 Posts

    mod_rewrite enabled Link to this post

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

    this massage send wamp when installation silverstripe, please suggest me how can remove it.

  • banal
    Avatar
    Community Member
    901 Posts
  • amarbhanu
    Avatar
    Community Member
    57 Posts

    Re: mod_rewrite enabled Link to this post

    banal thanks...

  • jujudellago
    Avatar
    Community Member
    1 Post

    Re: mod_rewrite enabled Link to this post

    Hi,

    I have issues instaling silverstripe on my development machine (mac osx leopard)

    I am absolutely sure mod_rewrite is working fine, I can see it in the loaded modules with a <?php phpinfo(); ?> and it's working fine on other CMS installations (I.E. Wordpress)

    The documentations says silverstripe can be installed without mod_rewrite, in that case I don't know how that can be achieved, as the installer always hangs:

    ------------------------------------------------------------

    # Creating 'mysite/_config.php'...
    # Creating /Users/juju/Sites/silverstripe/mysite/_config.php
    # Creating '.htaccess' file...
    # Creating /Users/juju/Sites/silverstripe/.htaccess
    # Building database schema...
    # Checking that friendly URLs work...
    # Friendly URLs are not working. This is most likely because mod_rewrite isn't configuredcorrectly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you:

    * mod_rewrite is enabled
    * AllowOverride All is set for your directory
    ------------------------------------------------------------

    I thought "AllowOverride All" was defined in the .htaccess ?

    the .htacess is generated with the following content:

    ------------------------------------------------------------------

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

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

    ------------------------------------------------------------------

    I never had this kind of errors.... so I don't really knowwhere to look....

    any tips will be highly appreciated

    cheers

  • arthurdent
    Avatar
    Community Member
    163 Posts

    Re: mod_rewrite enabled Link to this post

    Hi jujudeellago, did you get to the bottom of this? I find myself in the same situation!!

  • Benwitz
    Avatar
    Community Member
    7 Posts

    Re: mod_rewrite enabled Link to this post

    The following may just be a warning, sometimes a warning in error as mod_rewrite is active. If you get this when installing try accessing your root page directly "www.mysite.com" and chances are your install was successful regardless of the warning.

    "Friendly URLs are not working. This is most likely because mod_rewrite isn't configured correctly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you: "

    * mod_rewrite is enabled
    * AllowOverride All is set for your directory

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