This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
minVersion="$(python3 -V 2>&1 | grep -Po '(?<=Python 3\.)([0-9]+)')" | |
if (( "$minVersion" <= 5 )); then | |
echo "You're python version is too old. You need at least Python 3.6.x" >&2 | |
echo "Try the following: " | |
echo " sudo add-apt-repository ppa:deadsnakes/ppa" | |
echo " sudo apt update" | |
echo " sudo apt upgrade" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example: | |
# Use PHPHandler php-fpm-matomo.sock | |
# | |
<Macro PHPHandler $socket> | |
<IfModule setenvif_module> | |
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 | |
</IfModule> | |
<FilesMatch ".+\.ph(p[3457]?|t|tml)$"> | |
<If "-f %{SCRIPT_FILENAME}"> |