Problem installing "Fatal error: Uncaught RuntimeException"

Hello all, I want to install grav + admin plugin. I am using NearlyFreeSpeech.NET as my host, and the server is Apache 2.4 I believe. All the requirements are met, to my knowledge, and yet when I upload the Grav files to my webhost and go to the installation page, I am getting this error:

Fatal error: Uncaught RuntimeException: Failed to save file /home/public/simsblog/user/config/security.yaml in /home/public/simsblog/vendor/rockettheme/toolbox/File/src/AbstractFile.php:374 Stack trace: #0 /home/public/simsblog/system/src/Grav/Common/File/CompiledFile.php(133): RocketTheme\Toolbox\File\AbstractFile->save(NULL) #1 /home/public/simsblog/system/src/Grav/Common/Config/Setup.php(416): Grav\Common\File\CompiledYamlFile->save() #2 /home/public/simsblog/system/src/Grav/Common/Config/Setup.php(294): Grav\Common\Config\Setup->check(Object(RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator)) #3 /home/public/simsblog/system/src/Grav/Common/Service/ConfigServiceProvider.php(40): Grav\Common\Config\Setup->init() #4 /home/public/simsblog/vendor/pimple/pimple/src/Pimple/Container.php(122): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #5 /home/public/simsblog/system/src/Grav/Common/Grav.php(217): Pimple\Container->offsetGet(ā€˜setupā€™) #6 /home/public/simsblog/system/src/Grav/Common/Grav.php(258): Grav\Common\Grav->setup() #7 /home/public/simsblog/index.php(47): Grav\Common\Grav->process() #8 {main} Next RuntimeException: Grav failed to initialize: Failed to save file /home/public/simsblog/user/config/security.yaml in /home/public/simsblog/system/src/Grav/Common/Config/Setup.php:420 Stack trace: #0 /home/public/simsblog/system/src/Grav/Common/Config/Setup.php(294): Grav\Common\Config\Setup->check(Object(RocketTheme\Toolbox\ResourceLocator\UniformResourceLocator)) #1 /home/public/simsblog/system/src/Grav/Common/Service/ConfigServiceProvider.php(40): Grav\Common\Config\Setup->init() #2 /home/public/simsblog/vendor/pimple/pimple/src/Pimple/Container.php(122): Grav\Common\Service\ConfigServiceProvider->Grav\Common\Service{closure}(Object(Grav\Common\Grav)) #3 /home/public/simsblog/system/src/Grav/Common/Grav.php(217): Pimple\Container->offsetGet(ā€˜setupā€™) #4 /home/public/simsblog/system/src/Grav/Common/Grav.php(258): Grav\Common\Grav->setup() #5 /home/public/simsblog/index.php(47): Grav\Common\Grav->process() #6 {main} thrown in /home/public/simsblog/system/src/Grav/Common/Config/Setup.php on line 420

ā€œsimsblogā€ is the directory I uploaded the files to.

I could not find any solution so far, so if anyone knows why this is happening Iā€™d appreciate the help!

@deimosphoibus, Itā€™s a good habit to search a forum before posting a question.

Try searching for NearlyFreeSpeech

1 Like

The solution was to change the ownership for the directory in which Grav is installed.
So I opened up a command line and typed in:
chgrp -R web [directory name]
And that changed the ownership to all the Grav files, and fixed the issue.

1 Like