ZENLIX 3.5 (Ubuntu 18.04+VestaCP)

$ sudo apt-get update


$ curl -O http://vestacp.com/pub/vst-install.sh


$ sudo bash vst-install.sh --nginx yes --phpfpm yes --apache no --named no --remi yes --vsftpd no --proftpd no --iptables yes --fail2ban yes --quota no --exim no --dovecot no --spamassassin no --clamav no --mysql yes --postgresql no --hostname example.com --email your@example.com --password p@ssw0rd


$ sudo apt install -y build-essential 


$ wget http://download.redis.io/releases/redis-stable.tar.gz

$ tar xzf redis-stable.tar.gz

$ cd redis-stable

$ make

$ sudo make install

$ cd utils

$ sudo ./install_server.sh

$ sudo update-rc.d redis_6379 defaults


$ sudo apt install -y php-imap php-ldap php-zip nodejs npm

$ sudo ln -s /usr/bin/nodejs /usr/bin/node

$ sudo service nginx restart

$ sudo service php-fpm restart 


$ exit


$ ssh admin@ipaddress

$ cd web/example.com/public_html

$ sudo npm install dotenv --save -g

$ sudo npm install pm2 -g

$ sudo npm install socket.io ioredis dotenv

$ sudo /usr/local/vesta/bin/v-add-database admin zenlix zenlix p@ssw0rd

$ sudo apt-get install -y supervisor

$ sudo wget -O /usr/local/vesta/data/templates/web/nginx/php-fpm/zenlix.tpl http://dc.zenlix.com/f/150312b64135446f9216/?dl=1

$ sudo wget -O /usr/local/vesta/data/templates/web/nginx/php-fpm/zenlix.stpl http://dc.zenlix.com/f/59a56b36cba74074826a/?dl=1

$ sudo /usr/local/vesta/bin/v-change-web-domain-tpl admin example.com zenlix RESTART

$ cd ~/web/example.com/public_html/

$ git init .

$ git pull "http://<LOGIN>:<PASSWORD>@git.zenlix.com/snisar/zenlix35.git" master

$ chmod -R +w ./storage/*

$ chmod -R +w ./bootstrap/*

$ chmod -R +w ./nodejs/*

$ sudo service nginx restart

$ sudo service php-fpm restart 

$ php artisan zenlix:install


$ cd ~/web/example.com/public_html/nodejs/

$ sudo pm2 start server.js -n zenserver --watch

$ sudo pm2 startup

$ sudo pm2 save

$ sudo pm2 install pm2-logrotate


$ sudo /usr/local/vesta/bin/v-add-cron-job admin '*' '*' '*' '*' '*' "/usr/bin/php /home/admin/web/example.com/public_html/artisan schedule:run >> /dev/null 2>&1"

Или: $ (crontab -l ; echo "* * * * * /usr/bin/php /home/admin/web/example.com/public_html/artisan schedule:run >> /dev/null 2>&1")| crontab -


$ echo "
[program:zenlix-worker]
process_name=%(program_name)s_%(process_num)02d
command=/usr/bin/php /home/admin/web/example.com/public_html/artisan queue:work --sleep=3 --tries=3 --daemon
autostart=true
autorestart=true
user=admin
numprocs=8
" | sudo tee --append /etc/supervisor/conf.d/zenlix-worker.conf


$ sudo supervisorctl reread

$ sudo supervisorctl update

$ sudo supervisorctl start zenlix-worker:*