Jump to:

4938 Posts in 16602 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Apache problem: Forbidden. 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: 2679 Views
  • monnick
    Avatar
    Community Member
    6 Posts

    Apache problem: Forbidden. AllowOverride? Link to this post

    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 "dev.domain.com" so I created the file /etc/apache2/sites-available/dev.domain.com which contains the following lines:

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

    <VirtualHost *:80>
    ServerName dev.domain.com
    DocumentRoot /var/www/dev.domain.com
    </VirtualHost>

    <VirtualHost *:443>
    ServerName dev.domain.com
    DocumentRoot /var/www/dev.domain.com

    SSLEngine On
    SSLCertificateFile /etc/apache2/ssl/www.domain.com.crt
    SSLCertificateKeyFile /etc/apache2/ssl/www.domain.com.key
    SSLCertificateChainFile /etc/apache2/ssl/www.domain.com.ca-bundle
    </VirtualHost>

    Of course I have enabled the site by using:

    sudo a2ensite dev.domain.com

    And afterwards restarted Apache with

    sudo /etc/init.d/apache2 restart

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

    Forbidden

    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)

  • bartvanirsel
    Avatar
    Community Member
    94 Posts

    Re: Apache problem: Forbidden. AllowOverride? Link to this post

    Hi,

    What's in your .htaccess file?

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Apache problem: Forbidden. AllowOverride? Link to this post

    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?

    Sean

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