Debian: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
KKeine Bearbeitungszusammenfassung |
KKeine Bearbeitungszusammenfassung |
||
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
== HTTP Server == | == HTTP Server == | ||
=== Installation und Aktivierung === | |||
apt install apache2 -y | apt install apache2 -y | ||
systemctl enable apache2 | systemctl enable apache2 | ||
service apache2 start | service apache2 start | ||
=== Konfiguration === | |||
=== | |||
Der Name des Servers muss festgelegt werden. | Der Name des Servers muss festgelegt werden. | ||
# /etc/apache2/sites-available/000-default.conf | # /etc/apache2/sites-available/000-default.conf | ||
ServerName vserverDebian.mydomain | ServerName vserverDebian.mydomain | ||
== Mysql Server == | == Mysql Server == | ||
=== Installation und Aktivierung === | |||
apt install mariadb-server mariadb-client -y | apt install mariadb-server mariadb-client -y | ||
systemctl enable mariadb-server | systemctl enable mariadb-server | ||
service mariadb-server start | service mariadb-server start | ||
== IP Adresse | |||
== phpmyadmin == | |||
=== Installation === | |||
apt install php php-mbstring php-xml php-mysql php-json php-curl php-zip | |||
apt install phpmyadmin | |||
Die Dateien liegen unter <tt>/usr/share/phpmyadmin</tt> | |||
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 | /etc/network/interfaces | ||
# dynamisch | # dynamisch | ||
Aktuelle Version vom 7. November 2025, 17:36 Uhr
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