Skip to content

Commit f47b891

Browse files
committed
Update doc
2 parents aaedb53 + f6a76b3 commit f47b891

File tree

2 files changed

+28
-24
lines changed

2 files changed

+28
-24
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ Automated hosting plugin
22
=================
33

44
For more information see
5-
http://livehelperchat.com/automated-hosting-plugin-open-source-282a.html
5+
http://livehelperchat.com/automated-hosting-plugin-open-source-282a.html
6+
http://forum.livehelperchat.com/viewtopic.php?id=686
7+
8+
Installation instructions: instance\doc\doc.txt

instance/doc/doc.txt

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Install
1010
'seller_title' => 'Live Helper Chat', // Change to your company title
1111
'seller_secret_hash' => 'sdflkjsdfk_sjdf', // Change to any random string
1212
'instance_handler' => 'erLhcoreClassInstanceDBMysql', // erLhcoreClassInstanceDBMysql - mysql, erLhcoreClassInstanceDBDirectAdmin - direct admin
13-
'access_log_path' => '/var/log/nginx/access_chat_manager_client.log',
13+
'access_log_path' => '/var/log/nginx/access_chat_manager_client.log', //or '/var/log/apache2/access_chat_manager_client.log' use your site's log name
1414
'http_mode' => 'http://', // Set http:// or https://
1515

16-
If you are using direct admin, you will have to append these also
16+
If you are using DirectAdmin (http://www.directadmin.com/), you will have to append these also
1717
'direct_admin_user' => '<direct_admin_user>',
1818
'direct_admin_pass' => 'direct_admin_password>',
1919
'direct_admin_ip' => '<IP>',
@@ -36,11 +36,11 @@ If you are using direct admin, you will have to append these also
3636

3737

3838
3. In db section add
39-
'database_user_prefix' => 'lhc_manage_client_', // Each new customer database will be created with the following pattern 'lhc_manage_client_'.customer->id
39+
'database_user_prefix' => 'lhc_manage_client_', // Each new customer database will be created with the following pattern 'lhc_manage_client_'.customer->id. Example: "lhc_manage_customer_23"
4040

4141
4. Extract "instance" extension to extension folder
4242

43-
5. Execute in fresh installed database query from extension/instance/doc/install.sql
43+
5. Execute in fresh installed database query from extension/instance/doc/install.sql. You can use the command line or a tool like phpmyadmin if installed.
4444

4545
6. Active extension in fresh installed LHC
4646
'extensions' =>
@@ -50,47 +50,47 @@ If you are using direct admin, you will have to append these also
5050
And make it look like
5151
return array(
5252
'erLhcoreClassModelInstance' => 'extension/instance/classes/erlhcoreclassmodelinstance.php',
53-
'erLhcoreClassInstance' => 'extension/instance/classes/erlhcoreclassinstance.php',
53+
'erLhcoreClassInstance' => 'extension/instance/classes/erlhcoreclassinstance.php',
5454
'erLhcoreClassInstanceDBMysql' => 'extension/instance/classes/dbhandlers/mysql.php',
55-
'erLhcoreClassInstanceDBDirectAdmin'=> 'extension/instance/classes/dbhandlers/directadmin.php',
56-
'HTTPSocket' => 'extension/instance/classes/dbhandlers/httpsocket.php',
57-
'erLhcoreClassModelInstanceInvoice' => 'extension/instance/classes/erlhcoreclassmodelinstanceinvoice.php',
55+
'erLhcoreClassInstanceDBDirectAdmin' => 'extension/instance/classes/dbhandlers/directadmin.php',
56+
'HTTPSocket' => 'extension/instance/classes/dbhandlers/httpsocket.php',
57+
'erLhcoreClassModelInstanceInvoice' => 'extension/instance/classes/erlhcoreclassmodelinstanceinvoice.php',
5858
);
5959
Now you will see instance from top menu. There you can create manually new instances.
6060

61-
8. Setup cronjon to run every minit. I have prepared also sh version of cronjob witch avoid runing script more than once at the same time.
61+
8. Setup cronjon to run every minute. I have also prepared an sh version of cronjob which avoids running script more than once at the same time.
6262

63-
// Plain php version
63+
// Plain php version. cron.php is located in the installation folder.
6464
php cron.php -s site_admin -e instance -c cron/maintain
6565

66-
// You main need to adjust paths here and in cron_lhc.sh script itself. sh script is located at
67-
extension/instance/doc/cron_lhcs.sh
66+
// You main need to adjust paths here and in cron_lhc.sh script itself. sh script is located at extension/instance/doc/cron_lhcs.sh
6867
* * * * * cd /home/www/cronjobs && ./cron_lhc.sh > cron_lhc.log /dev/null 2>&1
6968

7069

7170
9. This plugins limits functionality purely by time and purchased request number.
72-
Setu this cronjob every 30 minits or so.
71+
Setup this cronjob every 30 minutes or so.
7372
php cron.php -s site_admin -e instance -c cron/update_counter
7473

75-
Nginx log format for update view counter to work correctly.
76-
log_format main '$remote_addr $http_host - [$time_local] "$request" '
74+
If using Nginx change the log format for update view counter to work correctly.
75+
log_format main '$remote_addr $http_host - [$time_local] "$request" '
7776
'$status $body_bytes_sent "$http_referer" '
7877
'"$http_user_agent" "$http_x_forwarded_for"';
7978

80-
Make sure you have provided correct path to access log in settings.ini.php
79+
Make sure you have provided correct path to access log in settings.ini.php in step 2
8180

8281
10. Now make copy of installed lhc to another directory where all request for <lhc_name>.example.com will go.
8382

8483
11. Delete from copied folder extension/instance
8584

86-
12. All subdomains should be pointed to 10 directory.
85+
12. All subdomains should be pointed to new copied directory. Update Apache virtual hosts or nginx as needed. See nginx configuration below.
8786

88-
13. Edit var/autolaods/lhextension_autoload.php in copied directory and make it look like
87+
13. Edit var/autoloads/lhextension_autoload.php in copied directory and make it look like
88+
8989
return array(
90-
'erLhcoreClassModelInstance' => 'extension/instancecustomer/classes/erlhcoreclassmodelinstance.php',
91-
'erLhcoreClassInstance' => 'extension/instancecustomer/classes/erlhcoreclassinstance.php',
92-
'erLhcoreClassLazyDatabaseConfiguration' => 'extension/instancecustomer/classes/lhdb.php',,
93-
'erLhcoreClassModelInstanceInvoice' => 'extension/instancecustomer/classes/erlhcoreclassmodelinstanceinvoice.php',
90+
'erLhcoreClassModelInstance' => 'extension/instancecustomer/classes/erlhcoreclassmodelinstance.php',
91+
'erLhcoreClassInstance' => 'extension/instancecustomer/classes/erlhcoreclassinstance.php',
92+
'erLhcoreClassLazyDatabaseConfiguration' => 'extension/instancecustomer/classes/lhdb.php',
93+
'erLhcoreClassModelInstanceInvoice' => 'extension/instancecustomer/classes/erlhcoreclassmodelinstanceinvoice.php'
9494
);
9595

9696
14. Put instancecustomer extension to extension folder
@@ -127,6 +127,7 @@ return array(
127127
That's it.
128128

129129
18. Now if you are using paypal edit your paypal button template. I recommend just create extension and override it also.
130+
130131
instancecustomer/design/instancecustomertheme/tpl/lhinstance/billing_paypal.tpl.php
131132
You should also set in your paypal button that it should send data in UTF8
132133
And notify url provide
@@ -339,4 +340,4 @@ $secretHash = $cfg->getSetting('site','seller_secret_hash');;
339340
$validateHash = sha1((string)$Params['user_parameters']['address'].(string)$Params['user_parameters']['status'].$secretHash);
340341

341342
http://manager.livehelperchat.com/index.php/instance/suspendinstance/remdex/1/138d07f5c478cbd4d1fcbfcc6ccd49d5961273bd
342-
http://manager.livehelperchat.com/index.php/instance/suspendinstance/<address>/<status>/<hash>
343+
http://manager.livehelperchat.com/index.php/instance/suspendinstance/<address>/<status>/<hash>

0 commit comments

Comments
 (0)