Environment Setup

Product:

Introduction

This guide will help you through the installation process and get CometChat running on your site.

Installation is very straight forward, only taking about 30 minutes from uploading the files to viewing the CometChat bar on your site.

Before you begin, you will need an FTP client, if you do not have one, you can download a free client like FileZilla.
You do not need programming knowledge to install CometChat, but a working knowledge of FTP functions is a plus.

This guide assumes that you have successfully downloaded the latest release of CometChat and have the zip file “unzipped” and ready to go. If not, you can download the package from the CometChat Client Area.
The instructions will term the zip file you downloaded as cometchat.zip.

Uploading

At this point, you should have the zip archive cometchat.zip and find a single folder- cometchat.

If you access your site via http://www.domain.com, then look for the webroot directory.

The webroot directory is usually public_html or www, but this varies from server to server so if you’re unsure, contact your hosting provider.

Using your FTP client, copy the /cometchat folder inside your root folder and give proper folder permission.
The permissions should be set as follows:
1) “cometchat” folder should have the permission of 755
2) All files inside “cometchat” directory should have 644 permission
3) All folders inside “cometchat” directory should be set to 755
4) The “writable” folder should be set to 777 permission recursively.

Now try to access cometchat folder as mention http://www.domain.com/cometchat.

Enable Developer Mode

Edit config.php and search for the tag:
/* ADVANCED */
Set DEV_MODE to 1, ERROR_LOGGING to 1 and CACHING to 0. After integration, you can set it to default.

define('DEV_MODE',setConfigValue('DEV_MODE','1'));
define('ERROR_LOGGING',setConfigValue('ERROR_LOGGING','1'));
define('MEMCACHE',setConfigValue('MEMCACHE','0')); 

Database configuration

Edit integration.php and update the database details.

/* DATABASE */
define('DB_SERVER','localhost');
define('DB_PORT','3306');
define('DB_USERNAME','root');
define('DB_PASSWORD','password');
define('DB_NAME','databasename');

The first 5 lines are used to access the database. You must access your existing site’s database and not create a separate database for CometChat.

After doing above setup you can install cometchat using below Url.
http://www.yourdomainname.com/cometchat/install.php

Note :
If you are not able to access ‘cometchat’ folder please first check its in proper place Ex.
‘website_folder/cometchat’ or modify your ‘.htaccess’ file or if you are using nginx then modify
your ‘nginx config’ file.

Once you completed installation you can access admin panel using below URL.
http://www.yourdomainname.com/cometchat/admin

If you have already set User Name and Password for admin panel login with that credentials else uses default credentials. Default credentials are as follows

Admin Panel Default User Name and Password
User Name : cometchat
Password : cometchat

Your environment is already setup. Head on to the next step!
  • Was this helpful?
  • Yes   No