Install Ubuntu 1604 and PHP7

$ 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 php7.0-imap php7.0-ldap php7.0-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 express 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://dc8.zenlix.com/index.php/s/uzSL9J9L76Qc4kx/download
$ sudo wget -O /usr/local/vesta/data/templates/web/nginx/php-fpm/zenlix.stpl http://dc8.zenlix.com/index.php/s/XcCUXOcxNLZEpYg/download
$ sudo /usr/local/vesta/bin/v-change-web-domain-tpl admin example.com zenlix RESTART

$ cd ~/web/example.com/public_html/
$ wget -O zenlix.zip http://path/download
$ unzip zenlix.zip
$ mv ./zenlix/* ./
$ mv ./zenlix/.env.example ./.env
$ chmod +w .env 
$ chmod -R +w ./storage/*
$ chmod -R +w ./bootstrap/*
$ chmod -R +w ./nodejs/*
$ rm storage/installed

$ sudo service nginx restart
$ sudo service php-fpm restart 

go to http://IP.... and install with

DB: 

user: admin_zenlix

db: admin_zenlix

pass: p@ssw0rd


next...


$ 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"

$ 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: