Warning: ftp_chdir(): /fs7b/joga/public/: No such file or directory in /home/public/sitecake/2.4.7/vendor/league/flysystem/src/Adapter/Ftp.php on line 152
Fatal error: Uncaught exception 'LogicException' with message 'Could not ensure that the directory /sitecake/logs is present and writable.' in /home/public/sitecake/2.4.7/src/Sitecake/Log/Engine/FileLog.php:93 Stack trace: #0 /home/public/sitecake/2.4.7/config/bootstrap.php(104): Sitecake\Log\Engine\FileLog->__construct(Object(League\Flysystem\Filesystem), Object(Silex\Application)) #1 /home/public/sitecake/2.4.7/vendor/pimple/pimple/src/Pimple/Container.php(118): {closure}(Object(Silex\Application)) #2 /home/public/sitecake/2.4.7/config/bootstrap.php(106): Pimple\Container->offsetGet('logger') #3 /home/public/sitecake/2.4.7/src/app.php(6): require('/home/public/si...') #4 /home/public/creva.php(1): require('/home/public/si...') #5 {main} thrown in /home/public/sitecake/2.4.7/src/Sitecake/Log/Engine/FileLog.php on line 93
So I first tried creating the logs directory in /home//public/sitecake/, and made it writable by the web group (for php scripts) with chgrp -R web /home/public/sitecake/logs
But no change. Then I read the ftp.php file in sitecake/2.4.7/vendor/league/flysystem/src/Adapter/Ftp.php and it seems I may have messedup with the root var in the config file. By root, is it meant root of website? Because the root of the website is /home/public/.
On the hosting site, I have two options: Apache Site root which is /fs7b/joga/, and Apache Document root which is /fs7b/joga/public/. When I log in via ssh on WinSCP, the website directory is /home/public/
I tried all 3 options in the Sitecake config, and I get the same error message each time.