From cda8bb35e2b356775c87a94e03c82a160c1ca135 Mon Sep 17 00:00:00 2001 From: Marcello Calisto Date: Sat, 9 Sep 2023 21:52:57 +0200 Subject: [PATCH] =?UTF-8?q?KN04=20Teilauftrag=20B)=20erg=C3=A4nzt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- KN04/KN04.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/KN04/KN04.md b/KN04/KN04.md index 5bbbffe..a341502 100644 --- a/KN04/KN04.md +++ b/KN04/KN04.md @@ -85,6 +85,57 @@ Das Skript wird eine Ubuntu-Instanz konfigurieren, den Apache Webserver installi #### Anleitung +Verwenden Sie den folgenden Inhalt für die Gestaltung Ihrer Webseite: + +```php +#cloud-config +users: + - name: ubuntu + sudo: ALL=(ALL) NOPASSWD:ALL + groups: users, admin + home: /home/ubuntu + shell: /bin/bash + ssh_authorized_keys: + - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7uUevS7iVPRPFAmdCAIAk7xg7szJUBhmRhLlNgGg3hQb8Zify0Mvm28yO/BW9XUdgW85pmcmbpyP7Y+pDkWHEFbWBjFdTgmYyoszn08fIsApcVJkauqDLmaz9Fd+FtyZGFJapdgR34nLiT1meklO8/Z/mynSYFuzAWClmRiyZXPok2qQJM/xqZRCudatskYJFobiS/+9pSvohIMT/WLhaBsJStctK1QWWQTuPsfO/6QKFkM378qUeJ74lGBfd7cU0Z3i0B3t9r/bhVu0vsyfQdbiWqL3Bhzl2n/KHaDi2t4mcJwEVIDyzr+6vkSLdu3X09vCcsJPGnLirTHVUGo07 calisto-1 +disable_root: false +package_update: true +packages: + - apache2 + - curl + - wget + - php + - libapache2-mod-php +write_files: + - content: | + + path: /var/www/html/info.php + permissions: '0644' +write_files: + - content: | + + + + + <?php echo $ihrname; ?> + + +

Mein Lieblingsverein

+
+ Bild aus S3-Bucket + + + path: /var/www/html/test.php + permissions: '0644' +runcmd: + - sudo systemctl restart apache2 +``` + + + + + ##### Schritte 1. Öffnen Sie die [AWS Management Console](https://aws.amazon.com/console/).