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

Apache problem: Forbidden. AllowOverride?


3 Posts   2712 Views


29 November 2010 at 2:34am Community Member, 6 Posts

Hi all,

I am trying to install Silverstripe 2.4.3 but I get this "Forbidden: You don't have permission to access / on this server." (403) error all the time. I think it is a problem with the Apache configuration on the server. Silverstripe should be installed on a subdomain "" so I created the file /etc/apache2/sites-available/ which contains the following lines:

<Directory /var/www/>
AllowOverride All
Options +Indexes
Order allow,deny
Allow from all

<VirtualHost *:80>
DocumentRoot /var/www/

<VirtualHost *:443>
DocumentRoot /var/www/

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/
SSLCertificateKeyFile /etc/apache2/ssl/
SSLCertificateChainFile /etc/apache2/ssl/

Of course I have enabled the site by using:

sudo a2ensite

And afterwards restarted Apache with

sudo /etc/init.d/apache2 restart

Now when I surf to the subdomain I get the following 403 error:


You don't have permission to access / on this server.

I have tried all kinds of things but I can't get it to work. One of the things I have tried is to edit httpd.conf and apache2.conf and set AllowOverride to All...doesn't make difference...

Does anyone know how to solve this problem? I am kind of desperate right now...

(The whole subdomain directory is chmodded to 755 and is owned by the user/group www-data)


29 November 2010 at 6:13am Community Member, 94 Posts


What's in your .htaccess file?


29 November 2010 at 12:57pm Forum Moderator, 921 Posts

Still sounds like a file owner issue. Are you sure some of the files are owned by the webserver user?

Also does the .htaccess file have a RewriteBase line?