```
apt-get update
apt-get upgrade
apt-get install htop bwm-ng strace lsof iotop git build-essential screen
adduser --disabled-login stat
```
```
git clone https://github.com/poiuty/statbate.git
mkdir /home/stat/go
mkdir /home/stat/php
mkdir /home/stat/python
mkdir /var/www/statbate
cp -r /statbate/app /home/stat/go
cp -r /statbate/cli/*.php /home/stat/php
cp -r /statbate/cli/*.py /home/stat/python
cp -r /statbate/html/* /var/www/statbate
chown -R stat:stat /home/stat
chown -R www-data:www-data /var/www/statbate
```
1. Mariadb
2. ClickHouse
3. Nginx
4. PHP
5. Python
6. Redis
7. App
8. Add cron
```
# nano /etc/cron.d/php
*/10 * * * * stat php /home/stat/php/start2.php > /home/stat/php/log.txt 2>&1
* * * * * www-data php /var/www/statbate/root/index.php >/dev/null 2>&1
# systemctl restart cron
# systemctl status cron
```