Skip to content

Instantly share code, notes, and snippets.

@descala
descala / webserver_setup_web.rb
Created Dec 27, 2018
Script to setup a shared web hosting instance on Debian Stretch
View webserver_setup_web.rb
#!/usr/bin/ruby
# Script to setup a shared web hosting instance on Debian Stretch
# with SFTP, Apache, MariaDB, LetsEncrypt
# * Run this to install required packages
#
# apt install pwgen ruby mariadb-client mariadb-server php7.0 php7.0-mysql \
# apache2 libapache2-mod-php7.0 phpmyadmin libapache2-mpm-itk
# a2enmod rewrite