Unable to open CometChat admin panel or unable to login due to insufficient permissions to CometChat folder.
Are you having a Linux Environment or Windows Environment?
We have explained how to set permission for each of the environments below respectively
If using a Linux based environment, how to set permissions
Linux Environment
Kindly give the following permission to CometChat folder to resolve the above concerns
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.
Or
If you are an administrator and you know how to run scripts through SSH login, then run the following command to give permission in one go or set of commands using SSH and going inside CometChat folder
Run the following three commands using script editor
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
find writable -type d -exec chmod 777 {} \;
Note:
Also check if the user who is writing to the above folder like the owner of the folder must have permissions, for example if you have shared, FTP user as "cometchat_user" then this user must have permission to write in the above folder as per permission and owner permissions must be set properly.
If using a Windows based environment, how to set permissions
Windows Environment
If you are using an Windows environment, then you need to perform the following steps
Step 1
Kindly browse to the CometChat folder inside your "C:/" drive, where you have placed the CometChat folder
Step 2
Right click on the folder and click properties like shown in screenshot below and follow steps 1 to 5 for all users as shown below in the screen shot for all users and groups.
Note : Once the above permissions are set, then check the issue again by clearing your browser cache and retry.