Jump to:

4907 Posts in 6996 Topics by 1474 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard

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: 5417 Views
  • yurigoul
    Avatar
    Community Member
    202 Posts

    .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard Link to this post

    Trying to install SilverStripe-v2.3.3 from this site under osx leopard (10.5.8 client, intel 2.2 ghz, 4gb ram) with enthropy 5.3.0-3 to get GD.

    I enabled mod_rewrite for my home folder by changing 'AllowOverride None' in users/myusername.conf to 'AllowOverride All AuthConfig'. This works because my local Drupal install now has clean urls enabled (mod_rewrite also shows up with phpinfo() and httpd -M)

    The result: I get a 403 error for my silverstripe directory and the directory has also disappeared from my indexes in the browser at http://127.0.0.1 ( I also changed my documentroot to my /Users/myusername/Sites - changing this back does not help)

    If I remove 'RewriteEngine On' from .htaccess the directory returns.

    Installing it without mod_rewrite does not seem to be possible, even after changing the timestamp issue

    Is there some other way I have to access my silvestripe directory? some other lead?

    TIA

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard Link to this post

    Not just the 'RewriteEngine On' seems to be the problem. Dunno what made me think that, it seems I have to delete the whole .htaccess to get access to the folder from my browser... Must be the notorious 'I have lost count how many things I tried'-error.

    Anyway, any pointers are appreciated.

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard Link to this post

    Added 'Options +FollowSymLinks' above ### SILVERSTRIPE START ### in the .htaccess file, that made the installer run its course

    However now I get a 'The requested page couldn't be found.' at http://127.0.0.1/_silverstripe/home/successfullyinstalled?flush=1

    Maybe this is the error: [Thu Oct 15 13:53:45 2009] [error] [client 127.0.0.1] PHP Warning: unlink(mysite/_config.php): Permission denied in /Users/myusername/Sites/_silverstripe/install.php on line 701, referer: http://127.0.0.1/_silverstripe/install.php

    Is one related to the other? I do not know anymore...

  • mgl
    Avatar
    Community Member
    2 Posts

    Re: .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard Link to this post

    Hi -
    I'm getting exactly the same using snow leopard on MacBook Pro - did you find any solution to this one?
    Thanks

  • youngmug
    Avatar
    Community Member
    19 Posts

    Re: .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard Link to this post

    mgl, what do the Apache logs show? Most of the time, you'll get a very informative message that can help point you to the problem.

  • yurigoul
    Avatar
    Community Member
    202 Posts

    Re: .htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard Link to this post

    This is one for the FAQ's since I have already answered this countless times:

    When a new install stops because of error messages and you have to start over, you have to remove all the tables from the Silverstripe database or drop the table altogether (ONLY with new installs, otherwise your data will get erased).

    Then try again by going directly to install.php, do not go into the silverstripe dir, otherwise Silverstripe will recreate the tables for you.

    EDIT: hmm, unless you are referring to the 403 forbidden -> question: what error are you referring to??

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