“This is my 28th day of participating in the First Challenge 2022. For details: First Challenge 2022.”

WookTeam is a lightweight open source online team collaboration tool that provides document collaboration tools, online mind mapping, online flow charts, project management, task distribution, instant IM, knowledge base management, and more.

Project Address: Lightweight team Collaboration online (wookteam.com)

Gitee address: wookteam(gitee.com)

1. Installation environment and dependencies

Tencent Cloud lightweight application server + pagoda panel was selected for this construction

Install the following environment in the pagoda panel

Nginx-1.7+, MySQL-5.7+, PHP-8.0+

After the installation, open PHP, set up the installation of fileInfo, Swoole4 extension and remove the disabled functions PCNTL, putenv, proc_open, popen

2. Create a configuration website

Create the website and create the corresponding database in utF8MB4 format

Upload the wookteam project file to this site directory, rename the file. Env. example to. Env and change the following parameters

Website configuration:

map $http_upgrade $connection_upgrade { default upgrade; '' close; } upstream swoole {# Connect IP:Port server 127.0.0.1:5200 weight=5 max_fails=3 fail_timeout=30s; keepalive 16; }Copy the code

Add pseudo static

location / { try_files $uri @laravels; } location =/ws {proxy_http_version 1.1; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header Server-Protocol $server_protocol; proxy_set_header Server-Name $server_name; proxy_set_header Server-Addr $server_addr; proxy_set_header Server-Port $server_port; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection $connection_upgrade; # "swoole" is the upstream proxy_pass http://swoole; } location@laravels {proxy_http_version 1.1; proxy_set_header Connection ""; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Real-PORT $remote_port; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_set_header Scheme $scheme; proxy_set_header Server-Protocol $server_protocol; proxy_set_header Server-Name $server_name; proxy_set_header Server-Addr $server_addr; proxy_set_header Server-Port $server_port; # "swoole" is the upstream proxy_pass http://swoole; }Copy the code

3. Compile the project

Enter the server and run the following commands in sequence:

cd /www/wwwroot/wookteam.com
composer install
php artisan key:generate
php artisan migrate --seed
Copy the code

4. Install and configure Supervisor

Enter the server and run the following commands in sequence:

yum install -y supervisor

systemctl enable supervisord

systemctl start supervisord

New file/etc/supervisord. D/wookteam. Ini

[program:wookteam]
directory=/www/wwwroot/wookteam.com
command=php bin/laravels start -inumprocs=1
autostart=true
autorestart=true
startretries=3
user=root
redirect_stderr=true
stdout_logfile=/www/wwwroot/wookteam.com/%(program_name)s.log
Copy the code

Run the following command:

systemctl restart supervisord

The installation is complete

The default user name is admin/123456 or system/123456