Skip to content

Instantly share code, notes, and snippets.

@daveRendon
Created October 20, 2021 00:53
Show Gist options
  • Save daveRendon/72986871085786d04d0cdc2b1065355b to your computer and use it in GitHub Desktop.
Save daveRendon/72986871085786d04d0cdc2b1065355b to your computer and use it in GitHub Desktop.
install_apache.sh
#!/bin/bash
dpkg --configure -a
apt-get -y update
# install Apache2
apt-get -y install apache2
apt-get -y install mysql-server
apt-get -y install php libapache2-mod-php php-mysql
# write some HTML
echo \<center\>\<h1\>My Demo App\</h1\>\<br/\>\</center\> > /var/www/html/demo.html
# restart Apache
apachectl restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment