Installation - PageSpeedPlus/easyengine-2 GitHub Wiki

Installation/Setup


Non-root User erstellen

adduser ee
usermod -a -G sudo ee

Hostnamen setzen

nano /etc/hostname
nano /etc/hosts
reboot

Nach den Anpassungen ist ein reboot zwingend nötig

Hostname testen

hostname
hostname -f

Ergebnis sollte so aussehen:

ee
ee.example.com

Ubuntu 16.04 - Grundkonfiguration

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/ubuntu-16.04.sh)

UFW Firewall einrichten & Cloudflare IPs whitelisten

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/ufw.sh)

Cron Job erstellen

crontab -e

Einmal pro Woche die IPs von Cloudflare aktualisieren.

0 0 * * 1 /home/tools/cloudflare-ufw.sh > /dev/null 2>&1

Syntax Highlighten im nano Editor

git clone https://github.com/scopatz/nanorc.git /usr/share/nano-syntax-highlighting/
echo "include /usr/share/nano-syntax-highlighting/*.nanorc" >> /etc/nanorc

MariaDB 10.2 installieren

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/mariadb.sh)

EasyEngine installieren

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/easyengine.sh)

NGiNX kompilieren

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/VirtuBox/nginx-ee/master/nginx-build.sh)

NGiNX konfigurieren

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/nginx.sh)

Cron Job erstellen

crontab -e

Einmal pro Woche die GeoIP Datenbank aktualisieren.

0 0 * * 1 /home/tools/nginx-geoip-update.sh > /dev/null 2>&1

Fail2Ban

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/fail2ban.sh)

Monit

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/easyengine/master/bash/monit.sh)

Amplify

curl -L -O https://github.com/nginxinc/nginx-amplify-agent/raw/master/packages/install.sh
API_KEY='' sh ./install.sh

Linux Malware Detect

bash <(wget --no-check-certificate -O - https://raw.githubusercontent.com/PageSpeedPlus/kit/master/linux-malware-detect.sh)