Closed TrickShotMLG02 closed 5 years ago
Please make sure that private/cache directory is writable
like this?
Please make sure that private/cache directory is writable
how can i do this?
Files and folders inside the cache directory need to be writable as well
like that?
Does this really makes sense? The test says, that the permissions are correct for the cache folder
What means this?
Warning: file_put_contents(cache/ccfe1cf91aa294c9bf205f86365d5354.cache.php): failed to open stream: Permission denied in /var/www/html/TeamSpeak/private/vendor/wruczek/php-file-cache/src/PhpFileCache.php on line 116
failed to open stream: Permission denied
what means that?
PHP does not have permission to write to that file
how can i fix all of these problems?
You need to fix your linux permissions, not sure whats exactly wrong with yours and Im not an expert with Linux perms, but try chmod
ding and chown
ing the entire cache directory. You can also try to empty it and let ts-website create all sub-directories
chmod 777? chown www-data?
It finally turns out that the parent directory of the cache is not granted with suitable permission (say, the whole project directory is in the possession of the root user) so PHP failed to create a file within the cache dir. Simply changing the owner of the project solves the problem:
chmod -R www-data:www-data ts-website (if you keep using the initial folder name, instead of solely changing the permission of cache dir)
Hopefully this will help someone in need.
It finally turns out that the parent directory of the cache is not granted with suitable permission (say, the whole project directory is in the possession of the root user) so PHP failed to create a file within the cache dir. Simply changing the owner of the project solves the problem:
chmod -R www-data:www-data ts-website (if you keep using the initial folder name, instead of solely changing the permission of cache dir)
Hopefully this will help someone in need.
That's correct, in recent TS-website versions the installer suggests running this command: sudo chown -R www-data:www-data "{ts-website directory path}"
How can i fix it? I am using this version: "ts-website-dev-2.0.3-fed9b56"