Workshop 06: Unterschied zwischen den Versionen
| Zeile 53: | Zeile 53: | ||
sudo nano /etc/proftpd/proftpd.conf | sudo nano /etc/proftpd/proftpd.conf | ||
</code> | </code> | ||
<gallery mode="packed" heights="300px"> | |||
File:ftpd_install.png|'''FTP wird installiert''' | |||
File:ftpd_server_configuriert.png|'''FTP wird hier konfiguriert''' | |||
File:rpimonitorweb.png|'''Online Monitoring''' | |||
</gallery> | |||
Konfigurationsinhalt: | Konfigurationsinhalt: | ||
| Zeile 71: | Zeile 77: | ||
sudo reboot | sudo reboot | ||
</code> | </code> | ||
<gallery mode="packed" heights="300px"> | |||
File:ftp_benutzer_angelekt.png|'''Benutzer wird hier angelegt''' | |||
</gallery> | |||
=== CMS Installation === | === CMS Installation === | ||
Version vom 14. April 2025, 10:17 Uhr
Webserver-Einrichtung auf Raspberry Pi
Installation
- Apache und PHP auf dem Raspberry installiert.
sudo apt-get install apache2 -y
sudo apt-get install php php-mysql
sudo systemctl start apache2
sudo systemctl enable apache2
-
Apache wird hier installiert
-
Erfolgreiche Installation
MySQL & PhpMyAdmin
- MySQL & PhpMyAdmin auf dem Raspberry installiert und konfiguriert.
sudo apt-get install mariadb-server
sudo systemctl start mariadb
sudo systemctl enable mariadb
sudo mariadb-secure-installation
sudo apt-get install phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf
sudo a2enconf phpmyadmin.conf
sudo service apache2 restart
sudo dpkg-reconfigure -plow phpmyadmin
-
Folgende Befehle haben wir eingegeben
-
Installation von PhP
-
Anmelden auf dem PhP Server
PhpMyAdmin Login
- Sich in PhpMyAdmin einloggen (im Browser)
http://<IP-Adresse-des-Raspberry>/phpmyadmin
-
Nach dem man angemeldet ist sieht das so aus
-
Erfolgreiche Installation von PhP
FTP Installation
- FTP auf dem Raspberry installiert.
sudo apt-get install proftpd
sudo nano /etc/proftpd/proftpd.conf
-
FTP wird installiert
-
FTP wird hier konfiguriert
-
Online Monitoring
Konfigurationsinhalt:
DefaultRoot ~ AuthOrder mod_auth_file.c mod_auth_unix.c AuthUserFile /etc/proftpd/ftpd.passwd AuthPAM off RequireValidShell off
Benutzer erstellen und Rechte setzen:
sudo ftpasswd --passwd --name ftpuser --uid 33 --gid 33 --home /var/www/ --shell /bin/false
sudo chmod g+s /var/www
sudo chmod 775 /var/www
sudo chown -R www-data:www-data /var/www
sudo reboot
-
Benutzer wird hier angelegt
CMS Installation
- Ein CMS installiert, z. B. WordPress oder Joomla, eine Defaultseite geladen und Gruppenmitglieder darauf erwähnt.
cd /var/www/html/
sudo rm index.*
sudo wget https://wordpress.org/latest.tar.gz
sudo tar xzf latest.tar.gz
sudo mv wordpress/* .
sudo rm -r latest.tar.gz wordpress
sudo chown -R www-data: .
Browserzugriff:
http://<IP-Adresse-des-Raspberry>/index.php