Skip to content

PLEASE CREATE OR CHMOD /cache/mysite.de/Files - 0777 OR ANY WRITABLE PERMISSION! #441

@Pansa237

Description

@Pansa237

Configuration:

PhpFastCache version: Latest release, 6.0.0-rc2, 6bfaa5d, Verified, 6.0.0-rc2 Release
PHP version: 7.0.16
Operating system: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux

Issue description:

I get the following error, although cache /cache/mysite.de/Files has chmod 777 (also recursively);

Fatal error: Uncaught phpFastCache\Exceptions\phpFastCacheIOException: PLEASE CREATE OR CHMOD /cache/mysite.de/Files - 0777 OR ANY WRITABLE PERMISSION! in
/homepages/20/d570100808/htdocs/mysite/html/traffic-includes/3rdparty/phpfastcache-final/src/phpFastCache/Core/Pool/IO/IOHelperTrait.php:122 Stack trace: #0
/homepages/20/d570100808/htdocs/mysite/html/traffic-includes/3rdparty/phpfastcache-final/src/phpFastCache/Drivers/Files/Driver.php(58): phpFastCache\Drivers\Files\Driver->getPath() #1
/homepages/20/d570100808/htdocs/mysite/html/traffic-includes/3rdparty/phpfastcache-final/src/phpFastCache/Drivers/Files/Driver.php(48): phpFastCache\Drivers\Files\Driver->driverCheck() #2
/homepages/20/d570100808/htdocs/mysite/html/traffic-includes/3rdparty/phpfastcache-final/src/phpFastCache/CacheManager.php(195): phpFastCache\Drivers\Files\Driver->__construct(Array) #3
/homepages/20/d570100808/htdocs/mysite/html/traffic-includes/api_functions.php(31): phpFastCache\CacheManager::getInstance('Files') in
/homepages/20/d570100808/htdocs/mysite/html/traffic-includes/3rdparty/phpfastcache-final/src/phpFastCache/Core/Pool/IO/IOHelperTrait.php on line 122

I integrate phpfastcache like this:

require_once("3rdparty/phpfastcache-final/src/autoload.php");
use phpFastCache\CacheManager;
CacheManager::setDefaultConfig(array(
"path" => 'cache'
));

It works on my local dev system (XAMPP Version 7.0.8), but not on the live system hosted by 1and1.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions