Friday, August 11, 2017

Deploy cakephp

Look at "webroot" folder. webroot folder should be at the top directory of CakePHP.


This is the only folder users need to access. Users don't need to access other folders because other folders are used indirectly to make the web app work. We have created template files and these template files are indirectly accessed through the index.php in this webroot folder.
webroot folder -> Should be accessible by users.
other folders -> Should not be accessible by users.
So, to deploy the cakephp webapp, upload all of the files of cakephp to the server. Set permission accordingly and maybe change DorumentRoot of apache (in httpd.conf) to

DocumentRoot "/var/www/html/cake/webroot"

so that the webroot folder is used as index of the server.