Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/tests-backward-compat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,19 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

# Workaround for PHP 8.3 (and potentially other versions): the GitHub
# Actions ubuntu-latest runner ships with a pre-installed PHP that leaves
# an empty regular file at /run/php/php<version>-fpm.sock. setup-php
# installs a different patch version on top, but PHP-FPM never replaces
# the stale file with a real Unix socket, so nginx returns 502.
# Removing the stale file and restarting PHP-FPM forces a clean socket.
- name: Restart PHP-FPM
run: |
sudo rm -f /run/php/php${{ matrix.php-versions }}-fpm.sock
sudo systemctl restart php${{ matrix.php-versions }}-fpm
sleep 1
ls -la /run/php/

# Configure nginx to use the PHP version and WOrdPress installation at /var/www/html
- name: Configure nginx site
run: |
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,19 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: xdebug

# Workaround for PHP 8.3 (and potentially other versions): the GitHub
# Actions ubuntu-latest runner ships with a pre-installed PHP that leaves
# an empty regular file at /run/php/php<version>-fpm.sock. setup-php
# installs a different patch version on top, but PHP-FPM never replaces
# the stale file with a real Unix socket, so nginx returns 502.
# Removing the stale file and restarting PHP-FPM forces a clean socket.
- name: Restart PHP-FPM
run: |
sudo rm -f /run/php/php${{ matrix.php-versions }}-fpm.sock
sudo systemctl restart php${{ matrix.php-versions }}-fpm
sleep 1
ls -la /run/php/

# Configure nginx to use the PHP version and WOrdPress installation at /var/www/html
- name: Configure nginx site
run: |
Expand Down
Loading