From 014844e5cc400b9793ef16127cc051a7987ebc18 Mon Sep 17 00:00:00 2001 From: Melo Date: Tue, 9 Feb 2021 15:57:38 +0100 Subject: [PATCH] =?UTF-8?q?pret=20=C3=A0=20l=20emploi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_wp.sh | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 install_wp.sh diff --git a/install_wp.sh b/install_wp.sh new file mode 100644 index 0000000..3a9425c --- /dev/null +++ b/install_wp.sh @@ -0,0 +1,61 @@ +#!/bin/bash + +sudo apt update +sudo apt upgrade -y +apt-get install unzip + +#apache2 + php +sudo apt install -y appache2 php +sudo apt install -y php-{curl,dom,exif,fileinfo,json,mbstring,mysqli,imagick,xml,zip,gd,iconv,mcrypt,simplexml,xmlreader,zlib} +sudo apt get install php-cli php-common php-mbstring php-gd php-int php-xml php-mysql php-zip php-curl php-xmlrpx +sudo a2enmod rewrite +sudo systemctl restart apache2 + +#mariadb +sudo apt install -y mariadb-{client,server} +read -p "mot de passe pour mysql root: " secret +sudo mysql_secure_installation <