Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Dockerfile.fpm
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FROM php:8.3-cli-alpine AS final
LABEL maintainer="[email protected]"

ENV DEBIAN_FRONTEND=noninteractive \
PHP_VERSION=82
PHP_VERSION=83
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🌐 Web query:

Alpine Linux php83 php83-fpm packages availability repositories

💡 Result:

php83 and php83-fpm are available in Alpine’s community repository (edge and recent stable branches — v3.21/v3.22/v3.23) for common architectures (x86/x86_64, aarch64, etc.). See Alpine’s package pages for php83 and php83-fpm. (pkgs.alpinelinux.org)

There are also third‑party/prebuilt php83 packages (Zend’s APK repository) providing php83zend-* and php83zend-fpm builds. (repos.zend.com)

If you want exact apk repository lines to enable on an Alpine release (e.g., v3.22 or v3.23) or the command to install (apk add php83 php83-fpm), tell me your Alpine version and CPU architecture and I’ll give the exact repo line and install command.

Citations:


🏁 Script executed:

# Check if we can find any Alpine PHP documentation or path references in the codebase
git ls-files | grep -i "alpine\|docker" | head -20

Repository: utopia-php/http

Length of output: 280


🏁 Script executed:

# Look for any existing references to PHP paths or versions in the repository
rg "php.*fpm\|/etc/php" -i --type dockerfile | head -20

Repository: utopia-php/http

Length of output: 93


🏁 Script executed:

# Read the Dockerfile.fpm to see the full context
cat -n Dockerfile.fpm | head -40

Repository: utopia-php/http

Length of output: 1339


🌐 Web query:

Alpine Linux PHP 8.3 FPM configuration path /etc/php/83/fpm

💡 Result:

On Alpine the PHP‑8.3 FPM config lives under /etc/php8.3/ (files: /etc/php8.3/php-fpm.conf, /etc/php8.3/php-fpm.d/*.conf, /etc/php8.3/php.ini). The service/binary is typically named php-fpm83 (or php-fpm8.3). [1][2][3]

Sources:
[1] Alpine Wiki — Apache with php‑fpm (shows php‑fpm83 service and /etc/php8/... usage).
[2] CloudSpinx — How to install Nginx with PHP‑FPM on Alpine (example listing /etc/php8.3/).
[3] Example Alpine PHP‑8.3 setup scripts / Docker images using php83 packages and php-fpm83.


🏁 Script executed:

# Check if there are any other Dockerfiles or documentation that might reference PHP paths
rg "php.*fpm\|/etc/php" -i --type-add "dockerfile:*.Dockerfile:*.dockerfile" | head -20

Repository: utopia-php/http

Length of output: 118


Critical: Alpine PHP 8.3 path structure is incorrect — change will fail at runtime.

The php83, php83-fpm, and php83-mbstring packages are available in Alpine's community repository ✓, but the path on line 32 is incorrect. Alpine PHP 8.3 uses /etc/php8.3/ (not /etc/php/83/), so the Dockerfile will fail when attempting to copy www.conf to a non-existent directory.

Change line 32 from:

COPY ./tests/docker/www.conf /etc/php/$PHP_VERSION/fpm/pool.d/www.conf

to:

COPY ./tests/docker/www.conf /etc/php8.3/php-fpm.d/www.conf

Alternatively, if maintaining the PHP_VERSION variable, redefine it to PHP_VERSION=8.3 and adjust the path reference to /etc/php${PHP_VERSION}/php-fpm.d/ or hardcode the correct Alpine path structure.

🤖 Prompt for AI Agents
In Dockerfile.fpm around line 20 (PHP_VERSION=83) the COPY target path is wrong
for Alpine PHP 8.3 and will fail at runtime; update the target to Alpine's path
structure. Either set PHP_VERSION=8.3 and change the COPY destination to
/etc/php${PHP_VERSION}/php-fpm.d/www.conf, or leave PHP_VERSION as-is and
hardcode the correct path /etc/php8.3/php-fpm.d/www.conf so the file copies into
the existing php-fpm.d directory.


RUN \
apk add --no-cache --virtual .deps \
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"utopia-php/servers": "0.2.*",
"utopia-php/validators": "0.0.*",
"utopia-php/compression": "0.1.*",
"utopia-php/telemetry": "0.1.*"
"utopia-php/telemetry": "0.2.*"
},
"require-dev": {
"ext-xdebug": "*",
Expand Down
Loading