Skip to content

Instantly share code, notes, and snippets.

@AymanZahran
Last active November 5, 2021 18:20
Show Gist options
  • Select an option

  • Save AymanZahran/55ee2b14110e8a50138c57a85fb48e41 to your computer and use it in GitHub Desktop.

Select an option

Save AymanZahran/55ee2b14110e8a50138c57a85fb48e41 to your computer and use it in GitHub Desktop.

Revisions

  1. AymanZahran renamed this gist Nov 5, 2021. 1 changed file with 0 additions and 5 deletions.
    5 changes: 0 additions & 5 deletions Bootstrap Apache → httpd bootstrap.sh
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,5 @@
    rm -f ~/install_apache.sh
    cat << 'EOF' >> ~/install_apache.sh
    yum update -y
    yum install -y httpd
    echo '<h1>Hello World</h1>' > /var/www/html/index.html
    systemctl start httpd
    systemctl enable httpd
    EOF
    chmod +x ~/install_apache.sh
    sudo ./install_apache.sh
  2. AymanZahran created this gist Oct 14, 2021.
    10 changes: 10 additions & 0 deletions Bootstrap Apache
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    rm -f ~/install_apache.sh
    cat << 'EOF' >> ~/install_apache.sh
    yum update -y
    yum install -y httpd
    echo '<h1>Hello World</h1>' > /var/www/html/index.html
    systemctl start httpd
    systemctl enable httpd
    EOF
    chmod +x ~/install_apache.sh
    sudo ./install_apache.sh