Skip to content

Commit a0684e9

Browse files
authored
Merge pull request #50 from LiveHelperChat/master-aider
Updates
2 parents ded3438 + cd5d6a8 commit a0684e9

2 files changed

Lines changed: 71 additions & 65 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ deploy.sh
1919
npm-debug.log*
2020
yarn-debug.log*
2121
yarn-error.log*
22+
.aider*
23+
.env

docs/install.md

Lines changed: 69 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ title: Install Guide
44
sidebar_label: Install Guide
55
---
66

7-
## Alternative ways
7+
## Alternative Ways
88

9-
* Use [Docker](https://github.com/LiveHelperChat/docker-standalone)
10-
* Use [softaculous](https://softaculous.com/apps/customersupport/live_helper_chat)
9+
* Use [Docker](https://github.com/LiveHelperChat/docker-standalone)
10+
* Use [Softaculous](https://softaculous.com/apps/customersupport/live_helper_chat)
1111

1212
## Requirements
1313

14-
If you are running a WordPress site, there is a 99.9% chance that Live Helper Chat will work just fine.
14+
If you are running a WordPress site, there is a very high likelihood that Live Helper Chat will work seamlessly.
1515

16-
* Download [zip](https://github.com/LiveHelperChat/livehelperchat/archive/refs/heads/master.zip), [tgz](https://github.com/LiveHelperChat/livehelperchat/tarball/master)
17-
* You can download version with dependencies included https://github.com/LiveHelperChat/livehelperchat/releases look for newest file name `*.**v-with-dependencies.tgz`
18-
* Minimum PHP 8.2. If you will want older php version support you will have to install composer dependencies yourself.
19-
* Mysql 5.7 >= OR MariaDB 10.2.3 >= with `json_` functions support.
20-
* Apache/Nginx
21-
* For the Laravel version, please visit https://github.com/LiveHelperChat/livehelperchat_laravel
16+
* Download [zip](https://github.com/LiveHelperChat/livehelperchat/archive/refs/heads/master.zip) or [tgz](https://github.com/LiveHelperChat/livehelperchat/tarball/master).
17+
* You can download a version with dependencies included from https://github.com/LiveHelperChat/livehelperchat/releases. Look for the newest file named `*.**v-with-dependencies.tgz`.
18+
* Minimum PHP version 8.2 is required. If you need support for an older PHP version, you will have to install composer dependencies yourself.
19+
* MySQL 5.7 or MariaDB 10.2.3 or higher with `json_` functions support.
20+
* Apache or Nginx.
21+
* For the Laravel version, please visit https://github.com/LiveHelperChat/livehelperchat_laravel.
2222

2323
```
24-
# Optional but recommended
24+
# Optional but Recommended
2525
php-phpiredis
2626
php-imap
2727
php-pecl-redis4
@@ -44,32 +44,32 @@ php
4444
php-bcmath
4545
```
4646

47-
## Composer dependencies
47+
## Composer Dependencies
4848

4949
It's not required if you have downloaded a version with dependencies included.
5050

51-
If you are using a new Version with Mails support or any newer version from 3.30v. You have to run from `lhc_web` folder.
51+
If you are using a new version with mail support or any newer version from 3.30v, you have to run from the `lhc_web` folder.
5252

5353
```
5454
composer.phar install
5555
```
5656

57-
If you are getting some like an incompatible php version. You can try to remove composer.lock file and then install
57+
If you encounter an issue like an incompatible PHP version, try removing the `composer.lock` file and then install again.
5858

5959
```
6060
rm composer.lock
6161
composer.phar install
6262
```
6363

64-
`composer.phar` you can download from https://getcomposer.org/download/
64+
You can download `composer.phar` from https://getcomposer.org/download/.
6565

66-
## Folders permissions
66+
## Folder Permissions
6767

68-
* After granting permission to write to the cache folder, you should see the following window. If you encounter a strange error instead of the installation page, please ensure that:
69-
* Your browser is pointing to the correct URL: index.php/site_admin/install/install.
68+
* After granting permission to write to the cache folder, you should see the following window. If you encounter an unexpected error instead of the installation page, please ensure that:
69+
* Your browser is pointing to the correct URL: `index.php/site_admin/install/install`.
7070
* You have given recursive write permission to the cache folder.
7171

72-
Try changing the owner to the Apache user or the user under which your HTTP server is running.
72+
Try changing the owner to the Apache user or the user under which your HTTP server operates.
7373

7474
```shell script
7575
chown apache:apache -R cache/
@@ -100,48 +100,48 @@ chmod -R 755 var/tmpfiles
100100

101101
After that, all items should be green.
102102

103-
## Database settings
103+
## Database Settings
104104

105-
On the next screen, you should see a similar window. The database has to be precreated.
105+
On the next screen, you should see a similar window. The database must be pre-created.
106106

107107
![](/img/install/database-settings.png)
108108

109-
## Application initial settings
109+
## Application Initial Settings
110110

111-
You can fill up these settings according to your needs.
111+
You can fill in these settings according to your needs.
112112

113113
![](/img/install/initial-app-settings.png)
114114

115-
## Install completed
115+
## Installation Completed
116116

117117
![](/img/install/install-completed.png)
118118

119-
## Installing composer dependencies for third party extensions, AWS translations
119+
## Installing Composer Dependencies for Third-Party Extensions and AWS Translations
120120

121-
From `lhc_web` folder run.
121+
From the `lhc_web` folder, run:
122122

123123
> `composer install`
124124
125-
Uncomment those two lines by removing dashes `lhc_web/index.php` and `lhc_web/cron.php`.
125+
Uncomment these two lines by removing the dashes in `lhc_web/index.php` and `lhc_web/cron.php`.
126126

127127
* https://github.com/LiveHelperChat/livehelperchat/blob/ee3aea143c3f57751206ca4b3cfeee95f4ba51d5/lhc_web/index.php#L31
128128
* https://github.com/LiveHelperChat/livehelperchat/blob/ee3aea143c3f57751206ca4b3cfeee95f4ba51d5/lhc_web/cron.php#L25
129129

130-
## Logging into the application
130+
## Logging into the Application
131131

132-
After clicking `Login here` you should be presented with a login window.
132+
After clicking `Login here`, you should be presented with a login window.
133133

134134
![](/img/install/login-window.png)
135135

136-
Install url is always `index.php/site_admin/user/login`
136+
The install URL is always `index.php/site_admin/user/login`.
137137

138-
## Dashboard page
138+
## Dashboard Page
139139

140140
This is the main application window.
141141

142142
![](/img/install/dashboard-installed.png)
143143

144-
## Generating embed code
144+
## Generating Embed Code
145145

146146
Now, click on the settings icon ​![](/img/install/settings.png) on the top menu. You should see this window.
147147

@@ -172,18 +172,18 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po
172172

173173
For more information and troubleshooting, please see the [integration article](integrating.md).
174174

175-
## Proactive invitation setup
175+
## Proactive Invitation Setup
176176

177177
Navigate to:
178178

179-
> System configuration -> Live help configuration -> Pro active chat invitations
179+
> System configuration -> Live help configuration -> Proactive chat invitations
180180
181181
Here is a demo configuration that we have on demo.livehelperchat.com. It includes the following settings:
182182

183183
* A message is sent to the user after they spend 20 seconds on the page or have more than 2 pageviews.
184184
* A random profile from online operators is shown.
185185
* There are also delayed messages available. Delayed messages can be configured in the autoresponder section.
186-
* Additionally, there is a long auto delayed message set for 40 seconds. If no one accepts the chat during that period, a message is displayed indicating that all operators are busy.
186+
* Additionally, there is a long auto-delayed message set for 40 seconds. If no one accepts the chat during that period, a message is displayed indicating that all operators are busy.
187187

188188
You can see the proactive invitation setup on our demo installation.
189189

@@ -196,11 +196,11 @@ Here is the automatic auto-response message.
196196

197197
![](/img/install/autoresponder-busy.png)
198198

199-
## Desktop client
199+
## Desktop Client
200200

201-
Desktop application can be found at https://github.com/LiveHelperChat/electron It is based on electron framework and acts as a standalone browser and is much faster than chrome.
201+
The desktop application can be found at https://github.com/LiveHelperChat/electron. It is based on the Electron framework, acts as a standalone browser, and is much faster than Chrome.
202202

203-
## Further reading
203+
## Further Reading
204204

205205
* [How to remove index.php from URL?](development/remove-index-php.md)
206206
* [Wondering how to set up automatic online/work hours?](online-hours.md)
@@ -210,29 +210,29 @@ Desktop application can be found at https://github.com/LiveHelperChat/electron I
210210
* Try the [Windows app](https://livehelperchat.com/demo-12c.html) or the [Chrome extension](https://livehelperchat.com/how-to-use-chrome-extension-245a.html)
211211
* [My users lose chat sessions when they navigate through the site, resulting in duplicate online user records](online-visitors.md#my-users-loose-chat-session-then-they-navigate-through-the-site-duplicate-online-users-records)
212212

213-
## On windows IIS I get 404 error?
213+
## On Windows IIS I Get 404 Error?
214214

215-
Please refer to this comment. It might happen because of to many URL segments.
215+
Please refer to this comment. It might occur due to too many URL segments.
216216

217217
https://github.com/orgs/LiveHelperChat/discussions/1900#discussioncomment-9767891
218218

219-
## Chat does not start?
219+
## Chat Does Not Start?
220220

221-
If you are running behind CloudFlare or any other proxy that influences the IP seen by Live Helper Chat, please enable it in the settings file.
221+
If you are running behind CloudFlare or any other proxy that affects the IP seen by Live Helper Chat, please enable it in the settings file.
222222

223223
> https://github.com/LiveHelperChat/livehelperchat/blob/a60a3b485ed08650b9e081ed827998e050717e37/lhc_web/settings/settings.ini.default.php#L18
224224
225-
## Widget content looks very small on my website?
225+
## Widget Content Looks Very Small on My Website?
226226

227-
Make sure your website has `viewport` tag
227+
Make sure your website has a `viewport` tag.
228228

229229
```
230230
<meta name="viewport" content="width=device-width, initial-scale=1">
231231
```
232232

233-
## My widget does not load?
233+
## My Widget Does Not Load?
234234

235-
Try adding this to your `.htaccess` ile in the root folder `lhc_web`. If this folder does not exist, just place the `.htaccess` file in the same folder where the `index.php` file exists. It has to be placed in the Live Helper Chat folder, not the website.
235+
Try adding this to your `.htaccess` file in the root folder `lhc_web`. If this folder does not exist, place the `.htaccess` file in the same folder where the `index.php` file exists. It must be placed in the Live Helper Chat folder, not the website.
236236

237237
```apacheconfig
238238
AddType application/wasm .wasm
@@ -256,45 +256,48 @@ AddType application/wasm .wasm
256256
</Files>
257257
```
258258

259-
Other possible reasons:
259+
Other possible causes:
260260

261261
* You have changed `Chat configuration -> Misc -> Domains where script can be embedded. E.g example.com, google.com`, but the embedded script is not listed in the domain.
262262
* You have enabled `System configuration -> GEO Adjustment`, but you have provided invalid data.
263-
* You have blocked yourself via `System configuration -> Live help configuration -> Blocking -> Blocked users`
263+
* You have blocked yourself via `System configuration -> Live help configuration -> Blocking -> Blocked users`.
264+
265+
## What If You Have to Limit the Widget to a Few Domains and Subdomains?
264266

265-
## What if you have to limitate the widget to few domain and subdomain?
266267
Embedded on multiple domains.
267-
[More information](docs/integrating.md#what-if-you-have-to-limitate-the-widget-to-few-domain-and-subdomain)
268+
[More information](docs/integrating.md#what-if-you-have-to-limitate-the-widget-to-few-domain-and-subdomain).
268269

269-
## Chat was closed by an operator/visitor, but when the visitor starts a new chat, an old chat opens?
270+
## Chat Was Closed by an Operator/Visitor, but When the Visitor Starts a New Chat, an Old Chat Opens?
270271

271-
Most likely, you have enabled `Chat configuration -> Misc -> Reopen chat functionality enabled`
272+
Most likely, you have enabled `Chat configuration -> Misc -> Reopen chat functionality enabled`.
272273

273-
[More information](chat/configuration.md#reopen-chat-functionality-enabled)
274+
[More information](chat/configuration.md#reopen-chat-functionality-enabled).
274275

275-
## Install from the command line
276+
## Install from the Command Line
276277

277278
It is also possible to install from the command line.
278279

279-
Copy the `install-cli.php` script to the root folder (`lhc_web` if you pulled from github)
280+
Copy the `install-cli.php` script to the root folder (`lhc_web` if you pulled from GitHub).
280281

281282
```shell script
282283
cp cli/install-cli.php install-cli.php
283284
```
284285

285286
Copy the default `example.settings.ini` to `settings.ini`. Don't forget to modify them.
287+
286288
```shell script
287289
cp cli/example.settings.ini cli/settings.ini
288290
```
289291

290-
Install Live Helper Chat
292+
Install Live Helper Chat.
293+
291294
```shell script
292295
php install-cli.php cli/settings.ini
293296
```
294297

295-
## Installation under a subfolder
298+
## Installation Under a Subfolder
296299

297-
If you are running a WordPress site and have nice URLs, you might need to allow access to the Live Helper Chat subfolder. Your `.htacess` file could look like this:
300+
If you are running a WordPress site and have nice URLs, you might need to allow access to the Live Helper Chat subfolder. Your `.htaccess` file could look like this:
298301

299302
```apacheconfig
300303
RewriteEngine On
@@ -303,26 +306,27 @@ RewriteRule ^lhc_web/.*$ - [L]
303306
# Afterward rules
304307
```
305308

306-
If you experience logouts after some time being inactive. It can be that your main website uses same php session cookie name. You can change it in the settings file. Change in main settings [file](https://github.com/LiveHelperChat/livehelperchat/blob/da2815e5e5715594ef819a21da211d086061b58a/lhc_web/settings/settings.ini.default.php#L23) `php_session_cookie_name` to something like `lhc_session_id`
309+
If you experience logouts after being inactive for some time, it might be because your main website uses the same PHP session cookie name. You can change it in the settings file. Change `php_session_cookie_name` in the main settings [file](https://github.com/LiveHelperChat/livehelperchat/blob/da2815e5e5715594ef819a21da211d086061b58a/lhc_web/settings/settings.ini.default.php#L23) to something like `lhc_session_id`.
310+
311+
## How to Log In?
307312

308-
## How to log in?
309313
To log in, point your browser to the directory where the application is installed. The URL address should look like: http://<your_domain>/index.php/site_admin/
310314

311-
If for some reason, you forgot password and password reminder does not work for you. You can execute this query. It will set `admin` (user_id 1) password to `demo`
315+
If for some reason, you forgot your password and the password reminder does not work for you, you can execute this query. It will set the password for `admin` (user_id 1) to `demo`.
312316

313317
```sql
314318
UPDATE `lh_users` SET password = '$2y$10$IwnZfDcPm7nqvp/BLNmJietHT/TSHCRPXWHKFqheQfojwk4c4znVG' WHERE `id` = 1;
315319
```
316320

317321
If you modified roles/groups/functions and you can't access the application, you can execute this query. It will set `admin` (user_id 1) to have all functions.
318322

319-
Error you might be getting is
323+
Error you might be getting is:
320324

321325
```
322-
You do not have permission to access the module "front" and use "use" function
326+
You do not have permission to access the module "front" and use "use" function.
323327
```
324328

325-
Execute those queries. They will restore admin group/role and permissions for very first user in users list.
329+
Execute these queries. They will restore the admin group/role and permissions for the very first user in the users list.
326330

327331
```sql
328332
DELETE FROM `lh_group` WHERE `id` = 1;
@@ -334,4 +338,4 @@ INSERT INTO `lh_group` (`id`, `name`, `disabled`, `required`) VALUES (1,'Admin',
334338
INSERT INTO `lh_role` (`id`, `name`) VALUES (1,'Admin');
335339
INSERT INTO `lh_grouprole` (`id`, `group_id`, `role_id`) VALUES (1,1,1);
336340
INSERT INTO `lh_groupuser` (`id`, `group_id`, `user_id`) (SELECT 1,1,`lh_users`.`id` FROM `lh_users` ORDER BY `lh_users`.`id` ASC LIMIT 1);
337-
```
341+
```

0 commit comments

Comments
 (0)