Debian
HTTP Server
Installation und Aktivierung
apt install apache2 -y systemctl enable apache2 service apache2 start
Konfiguration
Der Name des Servers muss festgelegt werden.
# /etc/apache2/sites-available/000-default.conf ServerName vserverDebian.mydomain
Mysql Server
Installation und Aktivierung
apt install mariadb-server mariadb-client -y systemctl enable mariadb-server service mariadb-server start
phpmyadmin
Installation
apt install php php-mbstring php-xml php-mysql php-json php-curl php-zip apt install phpmyadmin
Die Dateien liegen unter /usr/share/phpmyadmin Falls man die automatische Konfiguration überspringt, weil man schon eine Datenbank für phpmyadmin vorbereitet hat, muss man die Konfiguration selbst erstellen
# /etc/apache2/conf-available/phpmyadmin.conf
Inhalt der Datei
Alias /phpmyadmin /usr/share/phpmyadmin <Directory /usr/share/phpmyadmin> Options SymLinksIfOwnerMatch DirectoryIndex index.php AllowOverride All Require all granted </Directory> <Directory /usr/share/phpmyadmin/setup> Require local </Directory>
Konfiguration aktivieren
a2enconf phpmyadmin sudo systemctl reload apache2
Netzwerk
IP Adresse
/etc/network/interfaces # dynamisch iface eth0 inet dhcp
Beispiel 1:
# statisch iface eth0 inet static address 192.168.100.1 netmask 255.255.255.0 network 192.168.100.0 broadcast 192.168.100.255 gateway 192.168.100.254
Beispiel 2:
# statisch iface eth0 inet static address 10.0.0.111 netmask 255.255.255.0 network 10.0.0.0 broadcast 10.0.0.255 gateway 10.0.0.138
dann
ifdown eth0 ifup eth0
Hinweis: Unter Suse Linux ist die Konfiguration für eth0 in
/etc/sysconfig/network/ifcfg-eth0