Skip to content

Commit 01c971c

Browse files
committed
Updated 18.04 install script to use php7.4
As per BookStackApp/BookStack/issues/2648
1 parent 5787a15 commit 01c971c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/installation-ubuntu-18.04.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ CURRENT_IP=$(ip addr | grep 'state UP' -A2 | tail -n1 | awk '{print $2}' | cut -
1818
# Install core system packages
1919
export DEBIAN_FRONTEND=noninteractive
2020
add-apt-repository universe
21-
apt update
22-
apt install -y git apache2 php7.2 curl php7.2-fpm php7.2-curl php7.2-mbstring php7.2-ldap \
23-
php7.2-tidy php7.2-xml php7.2-zip php7.2-gd php7.2-mysql mysql-server-5.7 libapache2-mod-php7.2
21+
add-apt-repository -yu ppa:ondrej/php
22+
apt install -y git apache2 php7.4 curl php7.4-fpm php7.4-curl php7.4-mbstring php7.4-ldap \
23+
php7.4-xml php7.4-zip php7.4-gd php7.4-mysql mysql-server-5.7 libapache2-mod-php7.4
2424

2525
# Set up database
2626
DB_PASS="$(head /dev/urandom | tr -dc A-Za-z0-9 | head -c 13)"
@@ -71,7 +71,7 @@ chown www-data:www-data -R bootstrap/cache public/uploads storage && chmod -R 75
7171

7272
# Set up apache
7373
a2enmod rewrite
74-
a2enmod php7.2
74+
a2enmod php7.4
7575

7676
cat >/etc/apache2/sites-available/bookstack.conf <<EOL
7777
<VirtualHost *:80>

0 commit comments

Comments
 (0)