|
|
| Zeile 1: |
Zeile 1: |
| == nginx auf Ubuntu installieren == | | ==PHP Installieren== |
| | | <pre> |
| === Voraussetzungen ===
| | sudo apt install php-fpm php-sqlite3 php-xml php-curl php-gd php-mbstring php-xmlrpc php-zip php-intl php-json php-cli php-common php-apcu php-bcmath php-soap php-ldap php-imagick php-zip php-gmp -y |
| * Ubuntu Server (18.04 LTS oder neuer)
| | </pre> |
| * Root- oder sudo-Berechtigungen
| |
| | |
| === Installation ===
| |
| | |
| ==== Paketlisten aktualisieren ====
| |
| <source lang="bash">
| |
| sudo apt update
| |
| </source>
| |
| | |
| ==== nginx installieren ====
| |
| <source lang="bash"> | |
| sudo apt install nginx | |
| </source>
| |
| | |
| ==== Status prüfen ====
| |
| <source lang="bash">
| |
| sudo systemctl status nginx
| |
| </source>
| |
| | |
| === Firewall konfigurieren ===
| |
| <source lang="bash">
| |
| sudo ufw allow 'Nginx Full'
| |
| sudo ufw status
| |
| </source>
| |
| | |
| === Grundlegende Befehle ===
| |
| <source lang="bash">
| |
| # nginx starten
| |
| sudo systemctl start nginx
| |
| | |
| # nginx stoppen
| |
| sudo systemctl stop nginx
| |
| | |
| # nginx neustarten
| |
| sudo systemctl restart nginx
| |
| | |
| # Konfiguration neu laden
| |
| sudo systemctl reload nginx
| |
| | |
| # Autostart aktivieren
| |
| sudo systemctl enable nginx
| |
| </source>
| |
| | |
| === Wichtige Verzeichnisse ===
| |
| * Konfiguration: <code>/etc/nginx/</code>
| |
| * Webroot: <code>/var/www/html/</code>
| |
| * Logs: <code>/var/log/nginx/</code>
| |
| | |
| == Drupal mit PostgreSQL ==
| |
| | |
| === Datenbank anlegen ===
| |
| <source lang="bash">
| |
| sudo -u postgres -i
| |
| createdb -E UTF8 -O thorsten drupal
| |
| exit # Ausloggen
| |
| </source> | |
PHP Installieren
sudo apt install php-fpm php-sqlite3 php-xml php-curl php-gd php-mbstring php-xmlrpc php-zip php-intl php-json php-cli php-common php-apcu php-bcmath php-soap php-ldap php-imagick php-zip php-gmp -y