Skip to content

Instantly share code, notes, and snippets.

Avatar

Lluís Gili lluis

  • Vilafranca del Penedès, Catalunya
View GitHub Profile
@lluis
lluis / webserver_setup_web.rb
Created Jan 11, 2019 — forked from descala/webserver_setup_web.rb
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