Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » mod_rewrite doesn't appear to be working ... and again

Our old forums are still available as a read-only archive.

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

Page: 1
Go to End
Author Topic: 2163 Views
  • smordi
    Avatar
    9 Posts

    mod_rewrite doesn't appear to be working ... and again Link to this post

    Hi!
    Thanks a lot for such a wonderful CMS!
    At home on my local apache everything works fine.
    But when I try to install the CMS on the provider's system, then I get even after trying lots of time the 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.

    Please check these options, then refresh this page.If you believe that your configuration is correct, click here to proceed anyway.

    I tried to change the .htaccess: nothing happened. Mod_rewrite is enabled, I already had a call to my provider (all-inkl.com) and they confirmed it.

    And if I am going on to proceed anyway, the "Install was successful", but there are some php-warnings at the top of the page:

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../_ss_environment.php) is not within the allowed path(s): (/www/htdocs/v155019/:/tmp:/usr/bin:/www/htdocs/v155019:/bin:/usr/local/bin:/usr/share/php) in /www/htdocs/v155019/sapphire/main.php on line 40

    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(../../../_ss_environment.php) is not within the allowed path(s):

    Any ideas?
    Maybe one solution could be a change in the php.ini, but I do not have access to it.

    Best

    smordi

  • smordi
    Avatar
    9 Posts

    Re: mod_rewrite doesn't appear to be working ... and again Link to this post

    ok, i fixed the problem by going on searching in the forums...

    First changing the .htaccess to:

    RewriteEngine On

    RewriteRule \.js$ - [L]
    RewriteRule \.css$ - [L]
    RewriteRule \.png$ - [L]
    RewriteRule \.jpg$ - [L]
    RewriteRule \.gif$ - [L]
    RewriteRule \.php$ - [L]

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

    and afterwards remobing the lines 38-44 of main.php - the stuff about envFiles... fixed the problem, see topic:
    http://www.silverstripe.com/general-discussion/flat/3009

    ok, cheers!

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