Symfony on Xampp is developing very slowly, what can I do?

I installed Symfony, but it takes 40 seconds for each page to load.

If I have an empty controller, loading takes 8 seconds. If I start to make some complex queries in the database, this is worse. What can I do?

  • deactivate profiler? (will that change much?)
  • activate APC in dev mode? (but it will not be a problem to change the code)
  • enter a session inside APC?
  • Paste Doctrine into the trash?
  • ....?

I don’t know where to start.

(I am using Windows 7 with a Xampp server and 8 GB of RAM)

+12
performance php caching symfony
Nov 20 '13 at 14:48
source share
2 answers

A few quick suggestions:

  • install PHP 5.5.x (faster)
  • Use mod_fcgid instead of mod_php with Apache
  • Raise realpath_cache_size and realpath_cache_ttl to your php.ini
  • disable XDebug
  • ...

See this question , this question and this question .

+13
Nov 22 '13 at 13:26
source share

There is something wrong with your system. 40 seconds is too long. Even in dev mode, your pages should display for a second or two.

Someone else had similar problems: Windows 7 php + Symfony2 is terribly slow

+1
Nov 22 '13 at 14:05
source share



All Articles