Created
October 20, 2021 00:53
-
-
Save daveRendon/72986871085786d04d0cdc2b1065355b to your computer and use it in GitHub Desktop.
install_apache.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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