Jump to:

4938 Posts in 16827 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Problem with either Mod_rewrite or AllowOverride

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: 3032 Views
  • ITMonkey
    Avatar
    Community Member
    6 Posts

    Problem with either Mod_rewrite or AllowOverride Link to this post

    Hi, when I try to install ss from install.php the initial system check shows this:

    File permissionsDoes the webserver know where files are stored?   OK (/srv/www/)
    mysite/ folder exists   OK
    sapphire/ folder exists   OK
    cms/ folder exists   OK
    jsparty/ folder exists   OK
    Is the .htaccess file writeable?   OK
    Is the mysite/_config.php file writeable?   OK
    Is the assets/ folder writeable?   OK
    Is the temporary folder writeable?   OK

    Webserver ConfigurationServer software   OK (Apache/2.2.10 (Linux/SUSE) Server at localhost Port 80)
    mod_rewrite enabled   OK

    But when I install it shows this error:

    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

    As you can see from above, it's openSuse (11.1) and Apache 2.2.10

    In yast's http server configuration it has these two lines:
    Option - Include; Value /etc/apache2/conf.d/*.conf
    Option - Include; Value /etc/apache2/conf.d/apache2-manual?conf

    I've edited default-server.conf, which shows the Directory as /srv/www/htdocs (Which is, indeed, where SS is stored) and changed the AllowOverride None line to AllowOverride All, saved, restarted Apache and... it's the same.

    So, I've tried also editing /etc/apache2/conf.d/apache2-manual.conf, which now has:

    <Directory "/srv/www/htdocs">
    Options Indexes
    AllowOverride All
    Order allow,deny
    Allow from all

    (Previously Directory pointed to a manual directory)

    and I also edited /etc/apache2/httpd.conf

    # forbid access to the entire filesystem by default
    <Directory "/srv/www/htdocs">
    Options None
    AllowOverride All
    Order deny,allow
    Deny from all
    </Directory>

    In which it was previously <Directory />

    And in both of those files I have changed None to All

    I have restarted apache after the changes and it doesn't work so I am now well and truly stuck, what am I missing?

    Thanks

  • ITMonkey
    Avatar
    Community Member
    6 Posts

    Re: Problem with either Mod_rewrite or AllowOverride Link to this post

    By the way, SilverStripe HAS created some content in .htaccess

  • ITMonkey
    Avatar
    Community Member
    6 Posts

    Re: Problem with either Mod_rewrite or AllowOverride Link to this post

    It was user error, extracting files into the wrong directory - sorry!

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