Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Log directory problem with 1and1

Started by Muut Archive 10 years ago · 5 replies · 476 views
10 years ago

Hi, when i make de instalation return this error:

/homepages/1/d629131943/htdocs/logs exists but is not writeable

Because this directory it's used by 1and1 and it's impossible change de name.

Can anyone help me? thanks.

10 years ago

it's impossible make any change in this directory, it's possible change logs directory for another one like grav_logs?

10 years ago

No you cannot change the name of the folder. Why can't you change the ownership of the folder? Have you tried putting the whole Grav install in a subfolder? The web user needs write access to the Grav folders---period. So however you can accomplish that is what you need to do.

10 years ago

Actually... you can change the log directory. Just create a new directory at the root of your Grav install such as grav-logs/ and then also create a file called setup.php:

PHP
<?php
use Grav\Common\Utils;

return [
    'streams' => [
        'schemes' => [
            'log' => [
               'type' => 'ReadOnlyStream',
               'prefixes' => [
                   '' => ["grav-logs"],
               ]
            ]
        ]
    ]
];

This will set the log stream up with this new folder you created.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1349 9 years ago
Archive · by Muut Archive, 9 years ago
2 934 9 years ago
Archive · by Muut Archive, 9 years ago
2 4060 9 years ago
Archive · by Muut Archive, 9 years ago
1 2946 9 years ago
Archive · by Muut Archive, 9 years ago
3 1118 9 years ago