Open
Description
Hi!
Running FrankenPHP binary from Symfony project root does not work correctly, as opposed to running it from the public
folder.
E.g., using a clean Symfony install (via Symfony CLI):
symfony new symfony
cd symfony
composer require debug
and the following Caddyfile
:
:8001 {
php_server {
root /var/www/html/symfony/public
}
}
and running FrankenPHP with frankenphp run
in the project root gives 404 for the homepage. The only thing I can access is index.php
file directly where debug toolbar does not work since Symfony Routing is somehow broken.
However, if I copy the Caddyfile
to public
folder and run FrankenPHP from there without changes to the Caddyfile
, everything works as expected:
cp Caddyfile public/
cd public
frankenphp run
I'm using FrankenPHP v1.7.0 PHP 8.4.8 Caddy v2.10.0 h1:fonubSaQKF1YANl8TXqGcn4IbIRUDdfAkpcsfI/vX5U=
Metadata
Metadata
Assignees
Labels
No labels