I separated webroot and put it in the web server document serving directory tree. The rest of CakePHP is outside of the public web tree. I modified index.php paths and changed paths in config paths.php also. And it works! Is this the correct way to do this and are there any considerations?
(One reason is on some hosts I cannot change vhost pointing to webroot).
I am at the same points moving to online server (cakephp 4):
Could you please give me more info on how you did…
so as far as I understood, webroot content goes to public_html and index.php of the webroot should be modified and all app folders go above public_html, is this correct?
But what and how to modify in the webroot index.php and paths of the config?
I’m sorry for answering so late. Yes, you must move the webroot / index.php file to public_html and then edit it. You only need to change the paths in index.php