Symfony 4 extremely slow on windows

前端 未结 5 2231
甜味超标
甜味超标 2021-02-07 20:17

I\'ve used Symfony on Windows 10 for my projects for a few years (SF2, SF3), and I recently moved to Symfony 4 to build a new project but perfo

5条回答
  •  不要未来只要你来
    2021-02-07 21:08

    Same here, I have windows 10 Professional, using XAMPP ( Tryed php 5 and php 7, doesnt matter wich one).

    I've also tryed using the built server with php bin/console server:run

    I'm working json response controllers, it takes about 30 to 45 secs tu run, sometimes even more than a minute to process. My Api request even return timeout error.

    Also, every operatioin I do with php bin/console are terrible slow.. so I think isnt just Apache in XAMMP but the PHP bundle distributed with it.

    I've just installed php-7-2 package from http://windows.php.net and now It works so much better. Responses are up to 3-4 seconds.

    So dont waste your time using XAMPP... just go for original PHP and Apache and thats it.

提交回复
热议问题