Skip to content

Commit 9093806

Browse files
authored
Merge pull request #342 from matbcvo/workflow
Install Apache without PPA on ubuntu-24.04
2 parents 30ab108 + 26b84c1 commit 9093806

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -61,17 +61,9 @@ jobs:
6161
# We need the sed command at the bottom to set the PHP session save path to a directory that's writable for PHP
6262
# NOTE: update the PHP version below as well if you're updating PHP!
6363
run: |
64-
# Required for managing PPAs
65-
sudo apt-get install software-properties-common -y
66-
67-
# Add PPA with UTF-8 locale to prevent locale issues
68-
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/apache2 -y
69-
70-
# Update and install packages
71-
sudo apt-get update
72-
sudo apt-get install apache2 libapache2-mod-php8.3 -y
73-
74-
# Configure Apache and PHP
64+
sudo apt-get update -o Acquire::Retries=3
65+
sudo apt-get install -y --no-install-recommends apache2 libapache2-mod-php8.3
66+
7567
sudo a2enmod rewrite
7668
sudo sed -i 's,^session.save_handler =.*$,session.save_handler = redis,' /etc/php/8.3/apache2/php.ini
7769
sudo sed -i 's,^;session.save_path =.*$,session.save_path = "tcp://127.0.0.1:6379",' /etc/php/8.3/apache2/php.ini

0 commit comments

Comments
 (0)