Fatal Error Unable to create the cache

Hey all, Ive been trying to install Gibbon on my server, but I continuously get the same error:

Oh no!
Something has gone wrong: the Gibbons have escaped!

An error has occurred. This could mean a number of different things, but generally indicates that you have a misspelt address, or are trying to access a page that you are not permitted to access. If you cannot solve this problem by retyping the address, or through other means, please contact your system administrator.

I checked the logs and they state:


Fatal error: Uncaught RuntimeException: Unable to create the cache directory (/home/BHIS/web/sis.bhischina.org/public_html/uploads/cache/1b). in /home/BHIS/web/sis.bhischina.org/public_html/vendor/twig/twig/src/Cache/FilesystemCache.php:53 Stack trace: #0 /home/BHIS/web/sis.bhischina.org/public_html/vendor/twig/twig/src/Environment.php(352): Twig\Cache\FilesystemCache->write() #1 /home/BHIS/web/sis.bhischina.org/public_html/vendor/twig/twig/src/Environment.php(312): Twig\Environment->loadTemplate() #2 /home/BHIS/web/sis.bhischina.org/public_html/vendor/twig/twig/src/Environment.php(280): Twig\Environment->load() #3 /home/BHIS/web/sis.bhischina.org/public_html/src/View/View.php(122): Twig\Environment->render() #4 /home/BHIS/web/sis.bhischina.org/public_html/src/View/Page.php(504): Gibbon\View\View->render() #5 /home/BHIS/web/sis.bhischina.org/public_html/installer/install.php(220): Gibbon\View\Page->render() #6 {main} thrown in /home/BHIS/web/sis.bhischina.org/public_html/vendor/twig/twig/src/Cache/FilesystemCache.php on line 53

After reading some posts it appears to be file permission issues, but after trying to fix that it appears nothing has changed. can anyone help?

Hi @Carisa welcome to the Gibbon community!

It does sound like this is file permission related. Be sure to check not only the permissions themselves (often 755 on linux systems) but also which user is the owner of the files, as generally this needs to be the user that the web server is running under (on Apache servers, this is often www-data). You can apply the file permission and ownership changes recursivly, such as:

sudo chown -R www-data /your/gibbon/path
sudo chmod -R 755 /your/gibbon/path

Hope this helps!

I’ve done this already, but not much seems to have changed, could there be anything else?

Hi @Carisa I wish I could offer more specific support, it can be tricky to guess the cause when there are so many different server configurations. Perhaps see if you can manually create the cache folder inside the uploads folder, and this may help you get through the installer. Once installed, there is a System Admin > System Check page that can help scan the file permissions of the directories, and look for other issues. Hope this helps!