diff --git a/install_v2.sh b/install_v2.sh new file mode 100644 index 0000000..e259350 --- /dev/null +++ b/install_v2.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +apt update && apt upgrade -y +apt install -y apache2 ghostscript libapache2-mod-php mysql-server php php-bcmath php-curl php-imagick php-intl php-json php-mbstring php-mysql php-xml php-zip + +mkdir -p /srv/www +chown www-data: /srv/www +curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -C /srv/www + +echo " + DocumentRoot /srv/www/wordpress + + Options FollowSymLinks + AllowOverride Limit Options FileInfo + DirectoryIndex index.php + Require all granted + + + Options FollowSymLinks + Require all granted + +" >> /etc/apache2/sites-available/wordpress.conf + + +a2ensite wordpress +a2enmod rewrite +a2dissite 000-default +service apache2 reload +