Blank page after moving to a new server, error log attached, please help

Hello,
I moved my VPS to other server. On old server GRAV website was working, but not in the new one. Other PHP/MySQL CMS websites are working fine but the only GRAV website is not working, please help, following are the errors from log. Sorry but I am not an expert in these issues, thanks a lot.

[Mon Sep 02 07:04:55.861309 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: PHP Fatal error: Uncaught exception ‘RuntimeException’ with message ‘Opening file for writing failed on error ’ in /home/account/public_html/vendor/rockettheme/toolbox/File/src/File.php:198
[Mon Sep 02 07:04:55.861376 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: Stack trace:
[Mon Sep 02 07:04:55.861385 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: #0 /home/account/public_html/vendor/rockettheme/toolbox/File/src/File.php(319): RocketTheme\Toolbox\File\File->lock()
[Mon Sep 02 07:04:55.861392 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: #1 /home/account/public_html/vendor/rockettheme/toolbox/File/src/PhpFile.php(31): RocketTheme\Toolbox\File\File->save(Array)
[Mon Sep 02 07:04:55.861400 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: #2 /home/account/public_html/system/src/Grav/Common/Config/CompiledBase.php(253): RocketTheme\Toolbox\File\PhpFile->save(Array)
[Mon Sep 02 07:04:55.861408 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: #3 /home/account/public_html/system/src/Grav/Common/Config/CompiledBase.php(116): Grav\Common\Config\CompiledBase->saveCompiledFile(’/home/apartamen…')
[Mon Sep 02 07:04:55.861415 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: #4 /home/account/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.php(73): Grav\Common\Config\CompiledBase->load()
[Mon Sep 02 07:04:55.861423 2019] [fcgid:warn] [pid 10714] [client IP:60230] mod_fcgid: stderr: #5 /home/account/public_html/system/src/Grav/Common/Service/ConfigServiceProvider.ph in /home/account/public_html/vendor/rockettheme/toolbox/File/src/File.php on line 198

Hello, it is a permission issue, it is solved as the documentation points:

[root@vps public_html]# 
chgrp -R apache .
find . -type f | xargs chmod 664
find ./bin -type f | xargs chmod 775
find . -type d | xargs chmod 775
find . -type d | xargs chmod +s
umask 0002

Regards

1 Like