Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

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

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

.htaccess + 'RewriteEngine On' => 403 Forbidden on osx leopard


6 Posts   5826 Views


15 October 2009 at 11:55pm Community Member, 202 Posts

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 ( 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?



16 October 2009 at 12:18am Community Member, 202 Posts

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. :-)


16 October 2009 at 1:15am Community Member, 202 Posts

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 :-(

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

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


13 November 2009 at 12:12am Community Member, 2 Posts

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


13 November 2009 at 7:51pm Community Member, 19 Posts

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.


13 November 2009 at 9:43pm (Last edited: 13 November 2009 9:47pm), Community Member, 202 Posts

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??