This source code was purchased by the store owner and used for secondary development. The code is fully open source and can be used with confidence for the entire site and secondary development.
Our store provides free installation and configuration services.
The system of this website is completely open source and non-authorized.
The system requires php version 5.6+, including 5.6, mysql>=5.6
1. Unzip the package, copy all the files in the nickbai-whisper_tp5-master/whisper_tp5 folder except the whisper.sql database file, and upload it to a directory on your server, such as /www/wwwroot/whisper
2. Create a site and point the directory to whisper/public
3. Create a new whisper database, import whisper.sql, and set the encoding to: utf8
4. Modify database.php under application and replace it with your actual one.
//server address
'hostname'=>'127.0.0.1',
//database name
'database'=>'whisper',
//Customer name
'username'=>'root',
//password
'password'=>'root',
//port
'hostport'=>'3306',
5. Open port 80 of the firewall. Note that Huawei Cloud or Alibaba Cloud servers also have a security group. Don’t forget to open port 80 as well.
6. Visit xxx.xxx.com/admin with your browser to enter the management system.
The default customer name and password are adminadmin
7. After debugging the running environment, you need to modify the database parameters in Events.php.
The Events.php file is located under /whisper/GatewayWorker/Applications/whisper. Please check the previous path according to your actual situation. Just know that it's under GatewayWorker/whisper on your system.
self::$db=newWorkermanMySQLConnection('192.168.1.102','3306','root','root','whisper');
The meaning of database configuration parameters is host, port, user, password, and dbname. Configure correctly and save.
8. Start the socket service:
Enter /whisper/vendor/GatewayWorker/, edit start_for_win.bat, and change the path inside to the actual one. You can test it in cmd first. After it is ready, double-click start_for_win.bat. All reminders will be OK, which means it is normal.
9.socket port modification
The default websocket listening port is 8282. You need to open this port in the server's fire protection. If you want to change this port, you can go to
Modify in whisper/GatewayWorker/Applications/whisper/start_gateway.php. The vast majority of clients cannot connect to the server because of this reason.
After changing the port, application/config.php needs to be configured
'socket'=>'192.168.1.104:8282'
10. The customer service work platform entrance is youdomain.com/service and the two default customer services
The account number is: Customer Service Xiaobai Customer Service Xiaomei Password: 123456
The following is the website integrated customer service. If you don’t understand, you can go to http://yourdomain.com/ to view the homepage code:
Each website has a different style, and I will not provide a floating style for customer service consultation here. I believe you must also have a style designed by yourself on your website.
Demo site: http://zx.nx345.cn/