<commit_before>#!/bin/bash
#
# author: <NAME>
# website: www.maximelafarie.com / www.arcadmedia.com
# date: 15/10/2015
#
# This bash script setup an nginx server with MariaDB and APC Cache
# It is supposed you are logged as root and your server runs Debian 7 Wheezy or Debian 8 Jessie
#

# Variables definition
GREEN='\033[0;32m'
NC='\033[0m' # No Color

printf "${GREEN}Update kernel and packets${NC}"
apt-get update && apt-get upgrade -y

printf "${GREEN}Install htop, zip unzip${NC}"
apt-get install htop zip unzip -y

printf "${GREEN}Install NGINX Server${NC}"
apt-get install nginx -y

printf "${GREEN}Install PHP5 FPM and CLI${NC}"
apt-get install php5-cli -y
apt-get install php5-fpm -y
apt-get install php5-mysql curl php5-curl php5-intl php5-tidy php5-xsl php5-mcrypt php5-imap -y

php5enmod mcrypt
php5enmod imap

printf "${GREEN}Restarting NGINX...${NC}"
service nginx restart

printf "${GREEN}Restarting PHP5 FPM...${NC}"
service php5-fpm restart

printf "${GREEN}Install MariaDB${NC}"
apt-get install python-software-properties -y
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository 'deb http://mirror6.layerjet.com/mariadb/repo/10.1/debian wheezy main'
apt-get update
apt-get install mariadb-server -y

printf "${GREEN}Install APC Cache${NC}"
apt-get install php-apc -y
<commit_msg>Update mariadb sources for Debian 8 Jessie<commit_after>#!/bin/bash
#
# author: <NAME>
# website: www.maximelafarie.com / www.arcadmedia.com
# date: 15/10/2015
#
# This bash script setup an nginx server with MariaDB and APC Cache
# It is supposed you are logged as root and your server runs Debian 7 Wheezy or Debian 8 Jessie
#

# Variables definition
GREEN='\033[0;32m'
NC='\033[0m' # No Color

printf "${GREEN}Update kernel and packets${NC}"
apt-get update && apt-get upgrade -y

printf "${GREEN}Install htop, zip unzip${NC}"
apt-get install htop zip unzip -y

printf "${GREEN}Install NGINX Server${NC}"
apt-get install nginx -y

printf "${GREEN}Install PHP5 FPM and CLI${NC}"
apt-get install php5-cli -y
apt-get install php5-fpm -y
apt-get install php5-mysql curl php5-curl php5-intl php5-tidy php5-xsl php5-mcrypt php5-imap -y

php5enmod mcrypt
php5enmod imap

printf "${GREEN}Restarting NGINX...${NC}"
service nginx restart

printf "${GREEN}Restarting PHP5 FPM...${NC}"
service php5-fpm restart

printf "${GREEN}Install MariaDB${NC}"
apt-get install software-properties-common -y
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://fr.mirror.babylon.network/mariadb/repo/10.1/debian jessie main'
apt-get update
apt-get install mariadb-server -y

printf "${GREEN}Install APC Cache${NC}"
apt-get install php-apc -y

{'fraction_non_alphanumeric': 0.1256391526661797, 'fraction_numerical': 0.03615777940102265, 'mean_word_length': 4.601226993865031, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2918270', 'n_tokens_mistral': 1089, 'n_tokens_neox': 985, 'n_words': 303}