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 | |
#preparing mariadb client | |
sudo apt-get install software-properties-common | |
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 | |
sudo add-apt-repository 'deb [arch=amd64,arm64,i386,ppc64el] http://download.nus.edu.sg/mirror/mariadb/repo/10.3/ubuntu xenial main' | |
# install basic package, ensure basic function of php/apache/mysql is working properly | |
sudo apt install apache2 libapache2-mod-php7.2 php7.2 php7.2-cli php7.2-mysql git libmysqlclient20 libmysqlclient-dev php7.2-dev |
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 | |
# install basic package, ensure basic function of php/apache/mysql is working properly | |
sudo apt install apache2 libapache2-mod-php7.0 php7.0 php7.0-cli php7.0-mysql git libmysqlclient20 libmysqlclient-dev php7.0-dev | |
# to support PAM, we need to use percona server/client | |
wget https://repo.percona.com/apt/percona-release_0.1-4.$(lsb_release -sc)_all.deb | |
sudo dpkg -i percona-release_0.1-4.$(lsb_release -sc)_all.deb | |
sudo apt-get update |
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 | |
# this script assume enterprise manage ubuntu web server with following tools | |
# 1. authenticate credential via freeipa | |
# 2. monitor by zabbix | |
# 3. running apache2, with ssl enable | |
sudo apt update | |
sudo apt dist-upgrade | |
sudo apt install freeipa-client zabbix-agent apache2 |