Last active
October 19, 2018 11:10
-
-
Save pilinux/415c68af0bdc61150c141fcd53a78a10 to your computer and use it in GitHub Desktop.
Ubuntu - Apache2 - Php7.2 with mbstring + pear + libapache2-mod + curl + cgi
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
#### | |
# For Ubuntu 18.04 | |
# | |
# Add the following repos at /etc/apt/sources.list: | |
# deb http://archive.ubuntu.com/ubuntu bionic main multiverse restricted universe | |
# deb http://archive.ubuntu.com/ubuntu bionic-security main multiverse restricted universe | |
# deb http://archive.ubuntu.com/ubuntu bionic-updates main multiverse restricted universe | |
# and remove the default repos. | |
#### | |
#!/bin/bash | |
apt update | |
apt upgrade -y | |
apt install apache2 -y | |
if [ $? -eq 0 ]; then | |
apt install -y ssh php7.2 php7.2-mbstring php-pear php7.2-curl php7.2-cgi | |
if [ $? -eq 0 ]; then | |
echo "Everything is done!" | |
else | |
echo "Something was broken! Please try again." | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment