DEV Community

Discussion on: Containerization of PHP and Nginx [Updated 2025]

Collapse
 
dimdev profile image
Dzmitry Kazbiarovich

Why PHP 8.0.2 ?

It's not supported

Collapse
 
hamzasehouli profile image
Hamza Sehouli • Edited

I tested out this the code multiple times and it works seamlessly, just follow the instructions and steps meticulously.

Docker image PHP 8.0.2 standalone doesn't work with Nginx web server, because it does not include the FastCGI Process Manager (FPM), which is essential for handling HTTP requests in a web server setup in Nginx or Apache configured with FastCGI.

Collapse
 
dimdev profile image
Dzmitry Kazbiarovich

Nobody said the code doesn't work.

The question was about used PHP version.
PHP 8.0 is not supported any more php.net/supported-versions.php

Thread Thread
 
hamzasehouli profile image
Hamza Sehouli

Yes you are absolutely right, I overlooked the php version, thanks for pointing that out, I will update this content soon.