Python templates for HestiaCP.
This project was originally based on the work done by anton-bozhina and refsigregory. However, a new approach has been taken.
README.md
for more details about this and the license to which this software is bounded. I presume it can be adapted to VestaCP after small modifications.
If you have tested it with a different version or different distro, feel free to contact me to provide feedback.
Make sure you have an updated backup of your system and that it can go into maintenance if necessary.
Install NodeJS and NPM
sudo apt update
sudo apt upgrade
cd ~
sudo sudo apt install curl dirmngr apt-transport-https lsb-release ca-certificates
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt install nodejs
sudo apt install gcc g++ make
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update
sudo apt install yarn
sudo npm install ghost-cli@latest -g
Install Docker and Docker-compose
sudo apt update
sudo curl -sL https://get.docker.com | sh
# This next line is a security risk in a multi-users environment. Skip it if your server is used by several users.
sudo usermod -aG docker admin
sudo curl -L https://github.com/docker/compose/releases/download/1.25.4/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
Download the templates to the correct location:
/usr/local/hestia/data/templates/web/apache2/php-fpm/
.sh
files using the command chmod +x *.sh
in the /usr/local/hestia/data/templates/web/apache2/php-fpm/
folder./usr/local/hestia/data/templates/web/nginx/
Activate the template NGINX proxy template
Activate the desired Apache2 template. It is recommended to set the backend template to no-php
.
Complete the setup process of the terminal. This includes setting up the database, adding the users, disabling the debug/setting environment to production, modifying the allowed hosts, and so on.