====== lamp auf Raspi4 installieren ====== Als Quelle dienen folgende Seiten:\\ \\ https://gndtovcc.home.blog/2020/04/16/raspberry-pi-install-apache-mysql-php-lamp-server/\\ \\ \\ \\ ==== Raspi updaten ==== sudo apt update && sudo apt upgrade -y \\ ==== Apache2 installieren ==== sudo apt install apache2 -y \\ ==== php installieren ==== cd /var/www/html sudo apt install php -y \\ Startseite sichern und neu erstellen: cd /var/www/html mv index.html indexorg.html echo "hallo welt">index.html \\ Apache2 testen: http://192.168.178.30 \\ ==== MySQL (MariaDB Server) installieren ==== cd /var/www/html sudo apt install mariadb-server php-mysql -y sudo service apache2 restart sudo service apache2 status sudo service mysql status \\ ==== Sicherheit anpassen ==== sudo mysql_secure_installation Immer mit Y bestätigen und root-Passwort setzen. \\ ==== phpmyadmin installieren ==== sudo apt install phpmyadmin -y \\ PHP MySQLi Erweiterung aktivieren und Apache2 neu starten: sudo phpenmod mysqli sudo service apache2 restart sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin \\ Benutzer anlegen: pi@raspberrypi4:/var/www/html $ sudo mysql --user=root --password > create user admin@localhost identified by 'your_password'; > grant all privileges on *.* to admin@localhost; > FLUSH PRIVILEGES; > exit; \\ Achtung:\\ Das Passwort für den Benutzer admin lautet nun your_password.\\ \\ \\ ==== adminer installieren ==== cd /var/www/html mkdir adminer cd adminer wget https://github.com/vrana/adminer/releases/download/v4.7.8/adminer-4.7.8-de.php mv adminer-4.7.8-de.php index.php Aufruf des Adminer:\\ http://192.168.178.30/adminer