]> BookStack Code Mirror - devops/commitdiff
Updated ubuntu scripts for PHP8.2 minimum
authorDan Brown <redacted>
Wed, 8 Jan 2025 17:47:05 +0000 (17:47 +0000)
committerDan Brown <redacted>
Wed, 8 Jan 2025 17:47:05 +0000 (17:47 +0000)
- Added unsupported warning to 18.04 script
- Updated 22.04 script to install php8.4

scripts/installation-ubuntu-18.04.sh
scripts/installation-ubuntu-22.04.sh

index 40f5e14180a216c0e82904e8cea58a848b3f960d..c4a70c139c164edf8458c02a61b0d67f9713d552 100644 (file)
@@ -2,6 +2,10 @@
 # This script will install a new BookStack instance on a fresh Ubuntu 18.04 server.
 # This script is experimental and does not ensure any security.
 
+echo "THIS SCRIPT IS NO LONGER SUPPORTED OR MAINTAINED"
+echo "IT MAY NOT WORK WITH CURRENT VERSIONS OF BOOKSTACK"
+echo ""
+
 # Fetch domain to use from first provided parameter,
 # Otherwise request the user to input their domain
 DOMAIN=$1
index 7234e38bc77993fbf3be75d06a7eda7962580c2c..0d9f3855381a7b16a6364fb26bc7ffd9008f3654 100644 (file)
@@ -79,9 +79,12 @@ function run_prompt_for_domain_if_required() {
 
 # Install core system packages
 function run_package_installs() {
+  export DEBIAN_FRONTEND="noninteractive"
   apt update
-  apt install -y git unzip apache2 php8.1 curl php8.1-curl php8.1-mbstring php8.1-ldap \
-  php8.1-xml php8.1-zip php8.1-gd php8.1-mysql mysql-server-8.0 libapache2-mod-php8.1
+  apt install -y software-properties-common
+  add-apt-repository -yu ppa:ondrej/php
+  apt install -y git unzip apache2 php8.4 curl php8.4-curl php8.4-mbstring php8.4-ldap \
+  php8.4-xml php8.4-zip php8.4-gd php8.4-mysql mysql-server-8.0 libapache2-mod-php8.4
 }
 
 # Set up database
@@ -161,7 +164,7 @@ function run_set_application_file_permissions() {
 function run_configure_apache() {
   # Enable required apache modules
   a2enmod rewrite
-  a2enmod php8.1
+  a2enmod php8.4
 
   # Set-up the required BookStack apache config
   cat >/etc/apache2/sites-available/bookstack.conf <<EOL