My FIRST CakePHP project is not complete and I would like to deploy it. I have a shared hosting from Ionos (Essential pack), offering SSH. But now I am quite lost on how to deploy my project. I do not find any tutorial/documentation on how to proceed. What should I do now ? Usually I upload all the files through FTP and that’s it… But here it seems that I will need SSH and composer to make a “composer install” and so on… Can you please guide me ? Thank you very much.
Thanks for your answer. “CakePHP applications should have the document root set to the application’s webroot”. But my hosting provider is telling me that they cannot change the document root and so they are not able to host my website properly. I see people hosting cakePHP website on many cheaper providers and however it seems to be so tricky for me… I see some of them upload the files through FTP and that’s it. I do not understand what’s the issue here…
The hosting provider doesn’t change the document root, you do. You point to webroot as as the document root. If you cannot via a virtual host, you can actually use two htaccess files. The following is a laravel example, so adapt it to cakephp.
In the root folder you can have an htaccess file similar to:
This htaccess points to webroot.