Jump to:

4952 Posts in 14312 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Error permission

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: 839 Views
  • Steph47
    Avatar
    Community Member
    2 Posts

    Error permission Link to this post

    Hello to the community. I hope you can help me or give me solutions.

    Today I modify the .htaccess to manage the browser cache and improve performance of the site but it crashed the site. I put the backup of .htaccess but the error persists.
    Here is the error displayed :

    Warning: scandir(/var/www/clients/client9/web40/web) [function.scandir]: failed to open dir: Permission denied in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 196

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 196

    Warning: Invalid argument supplied for foreach() in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 197

    Warning: scandir(/var/www/clients/client9/web40/web) [function.scandir]: failed to open dir: Permission denied in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 225

    Warning: scandir() [function.scandir]: (errno 13): Permission denied in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 225

    Warning: Invalid argument supplied for foreach() in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 226

    Notice: Undefined index: file in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 265

    Warning: $project isn't set in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 269

    Notice: Undefined index: require_once in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 137

    Warning: Invalid argument supplied for foreach() in /var/www/clients/client9/web40/web/sapphire/core/ManifestBuilder.php on line 137

    Fatal error: Class 'SS_Log' not found in /var/www/clients/client9/web40/web/sapphire/dev/Debug.php on line 245

    someone has an idea?

    Thank you in advance

  • Juanitou
    Avatar
    Community Member
    323 Posts

    Re: Error permission Link to this post

    Hi!

    Have you tried flushing the cache (/dev/build?flush=all) or removing the silverstripe-cache folder?

    Hope it helps,
    Juan

  • Steph47
    Avatar
    Community Member
    2 Posts

    Re: Error permission Link to this post

    I tried, without success.

    As the problem is triggered after handling.htaccess, I wonder if my file is correct. Here it is:

    ### SILVERSTRIPE START ###
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    <Files web.config>
    Order deny,allow
    Deny from all
    </Files>

    ErrorDocument 404 /assets/error-404.html
    ErrorDocument 500 /assets/error-500.html

    <IfModule mod_alias.c>
    RedirectMatch 403 /silverstripe-cache(/|$)
    </IfModule>

    <IfModule mod_rewrite.c>
    SetEnv APPLICATION_ENV development
    Options -MultiViews
    RewriteEngine ON
    RewriteBase /

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

    RewriteCond %{THE_REQUEST} ^(GET|POST|HEAD)\ (/.*)?/sapphire/main.php?url=%1&%
    RewriteRule ^(.*)sapphire/main.php?url=%1&%$ /$1 [R=301,L]
    </IfModule>
    ### SILVERSTRIPE END ###

    RewriteCond %{HTTP_HOST} !^www.mysite.com$
    RewriteRule ^(.*) http://www.mysite.com/$1 [QSA,L,R=301]

  • Juanitou
    Avatar
    Community Member
    323 Posts

    Re: Error permission Link to this post

    Sorry, I’m not good at .htaccess debugging… Nevertheless, that’s not the standard SilverStripe .htaccess. Have you checked the Apache logs?

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