Error during installation with localhost

Печать RSS
424

D
Автор
Пришелец
0
error in file_put_contents() section, please help

Господин ПЖ
0
DevPro, what engine or сms are you using
This error means that you do not have permissions (chmod) to the file or directory
to the directory 777
to the file 666
D
Автор
Пришелец
0
Вантуз-мен, Thank you sir, i will try on cms rotor v12.

Последний из могикан
0
Нужно тут на форуме автоматический переводчик внедрить. )

Господин ПЖ
0
DevPro, file_put_contents is only used in template editing (resourses/views)
If you need to edit site pages through the editor, then set the rights to all files inside resourses/views
D
Автор
Пришелец
0

Господин ПЖ
0
DevPro, check the permissions on these directories
/storage/app: 777
/storage/app/private: 777
/storage/app/public: 777
/storage/backups: 777
/storage/framework: 777
/storage/framework/cache: 777
/storage/framework/cache/data: 777
/storage/framework/sessions: 777
/storage/framework/testing: 777
/storage/framework/views: 777
/storage/logs: 777
/bootstrap/cache: 777

In config/cache.php:

'stores' => [
    'file' => [
        'driver' => 'file',
        'path' => storage_path('framework/cache/data'),
        'lock' => false, // ← add this line
    ],
],

If it doesn't help, try switching to another driver.
// .env
CACHE_DRIVER=redis
SESSION_DRIVER=redis
D
Автор
Пришелец
0
Вантуз-мен, not working, in php 8.4 apache

Господин ПЖ
0
I was wrong, you need to add some gloss in these places
config/filesystems.php
 'disks' => [
        'local' => [
            'driver' => 'local',
            'root'   => storage_path('app'),
            'lock'   => false, // ← add this line
        ],

        'private' => [
            'driver' => 'local',
            'root'   => storage_path('app/private'),
            'lock'   => false, // ← add this line
        ],

        'public' => [
            'driver'     => 'local',
            'root'       => storage_path('app/public'),
            'url'        => env('APP_URL') . '/storage',
            'visibility' => 'public',
            'lock'       => false, // ← add this line
        ],

After that, clear the cache
php artisan optimize:clear

Or manually delete all files inside these directories
storage/framework/cache/data/*
/storage/framework/views/*
/bootstrap/cache/*

Пришелец
-1
нихера не понял, но очень интересно
Стикеры / Теги / Правила