Skip to content

Instantly share code, notes, and snippets.

View lluis's full-sized avatar

Lluís Gili lluis

  • Aidí, Catalunya
View GitHub Profile
@lluis
lluis / webserver_setup_web.rb
Created January 11, 2019 10:07 — forked from descala/webserver_setup_web.rb
Script to setup a shared web hosting instance on Debian Stretch
#!/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