* Step 1 - Now run install.php file through your web browser. URL should be ‘http://www.yourdomain.com/webroot/cometchat/install.php’.
Once the installation is completed, after that two code snippets will be displayed on your monitor. The first line will be of code for docked themes like Glass, Hangout, Facebook etc. And second line of code will be for embedded theme i.e. Synergy. Now copy the displayed code depending on whether you wish to use docked themes or embedded theme. Also, the page may display a list of files and folders which may require additional permissions. CHMOD those files/folders will come with 777 permissions.
* step 2 - Now edit your template header file. Your template file should be ‘/src/Template/Layout/default.ctp’. In template header file after opening head tag, paste the copied code: