Open th69nd opened 5 months ago
This looks more like a network issue on your side.
I tried to change setup a little - php-fpm+caddy, it works fine
Compose.yaml
services:
php:
image: php:fpm
volumes:
- ./public_html:/var/www
caddy:
image: caddy
environment:
SERVER_NAME: mydomain.com:80
ports:
- 80:80
- 443:443
volumes:
- ./public_html:/var/www
- ./Caddyfile:/etc/caddy/Caddyfile
Caddyfile
{$SERVER_NAME:localhost} {
root * /var/www
php_fastcgi php:9000
file_server
}
The contents of public_html/index.php and public_html/test.php are the same as previously, result:
HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Server: Caddy X-Powered-By: PHP/8.3.8 Date: Sat, 15 Jun 2024 07:57:24 GMT Content-Length: 12 Connection: close Hello World!
I cannot reproduce it using the given php file. I see the output (setting the domain to example.com) that I expect.
What happened?
Dont know what to do and where to write else... I tried googling, but I don't understand what the problem is.
Is it because FrankenPHP doesn't use UNIX sockets? If so, why fsockopen doesn't cast any error...
My setup:
Dockerfile
Compose.yaml
Caddyfile
index.php
test.php
So, problem - when i try to open test.php i get:
P.S. Sorry for my not good english somewhere... xD
Build Type
Docker (Debian Bookworm)
Worker Mode
No
Operating System
GNU/Linux
CPU Architecture
x86_64
PHP configuration
Relevant log output
No response