From 6938555286a708b3671bcaecd61dc2e5ba471a10 Mon Sep 17 00:00:00 2001 From: RomanNum3ral Date: Mon, 3 Nov 2025 20:19:02 +0000 Subject: [PATCH] Add install_v2.sh --- install_v2.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 install_v2.sh 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 +