Updated ubuntu scripts for PHP8.2 minimum
- Added unsupported warning to 18.04 script - Updated 22.04 script to install php8.4
This commit is contained in:
parent
4cb16efc1a
commit
487a7141c3
2 changed files with 10 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue