You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Symfony version(s) affected: >=4.4
(IIS version: 10.0.19041.332 on Windows 10)
Description
Since 4.4 it seems not possible to run a symfony application with IIS (no issues with 4.3 except the problem described in #36413). I stumbled over it when trying to upgrade my application, but the problem also occurs with a very simple setup.
You would expect the output Lucky number: 40 but you will only get [info] Matched route "app_lucky_number".
# config/routes.yaml# the "app_lucky_number" route name is not important yetapp_lucky_number:
path: /lucky/numbercontroller: App\Controller\LuckyController::number
You will also need a web.config file for url rewrite (see Additional context).
If you start with composer create-project symfony/skeleton=4.3.99 test instead of 4.4.99 it will work without a problem. It will also work with APP_ENV=prod instead of APP_ENV=dev so it seems to have something to do with the environment.
Additional context
To run symfony on IIS I created a /public/web.config file:
Ok, that was stupid. The config works but be sure to use the right settings for application pool on IIS. They were wrong but caused no problem before 4.4. Now it works, sorry for this issue.
(There also were some deprecations so you should use monolog to see them.)
Symfony version(s) affected: >=4.4
(IIS version: 10.0.19041.332 on Windows 10)
Description
Since 4.4 it seems not possible to run a symfony application with IIS (no issues with 4.3 except the problem described in #36413). I stumbled over it when trying to upgrade my application, but the problem also occurs with a very simple setup.
You would expect the output
Lucky number: 40
but you will only get[info] Matched route "app_lucky_number".
How to reproduce
Execute
composer create-project symfony/skeleton=4.4.99 test
and then just add the controller and route as described here: https://symfony.com/doc/current/page_creation.htmlYou will also need a
web.config
file for url rewrite (see Additional context).If you start with
composer create-project symfony/skeleton=4.3.99 test
instead of4.4.99
it will work without a problem. It will also work withAPP_ENV=prod
instead ofAPP_ENV=dev
so it seems to have something to do with the environment.Additional context
To run symfony on IIS I created a
/public/web.config
file:Any idea what's causing this problem?
The text was updated successfully, but these errors were encountered: