Skip to content

Commit d0f6603

Browse files
authored
Merge pull request #339 from matbcvo/fix-ci-apache
Fix conflicting GPG key and PPA installation errors in the Install Apache step in CI
2 parents 6890130 + f680449 commit d0f6603

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,17 @@ 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-
sudo add-apt-repository ppa:ondrej/php -y
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
6571
sudo apt-get update
66-
sudo apt-get install apache2 libapache2-mod-php8.3
72+
sudo apt-get install apache2 libapache2-mod-php8.3 -y
73+
74+
# Configure Apache and PHP
6775
sudo a2enmod rewrite
6876
sudo sed -i 's,^session.save_handler =.*$,session.save_handler = redis,' /etc/php/8.3/apache2/php.ini
6977
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)