Getting cgi scripts to work in user directory
a2enmod cgi sudo apt-get install libmime-lite-perl sudo apt-get install libcgi-session-perl
userdir.conf
UserDir public_html UserDir disabled root # vim: syntax=apache ts=4 sw=4 sts=4 sr noetAllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require method GET POST OPTIONS AddHandler cgi-script .cgi .pl AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Require all granted