Slow XAMPP on Windows 7 -- solution

Posted / Публикувана 2011-03-16 in category / в категория: PHP, Web development


You install brand new latest version of XAMPP on your Windows box, everything works, but PHP pages open very slow (>1 second).


Disable your antivirus software for few minutes, restart XAMPP and try again. If there is a significant improvement: the cause is your antivirus software (AV programs usually scan for viruses each accessed file which slows the apache).

If you are using Bitdefender here are the steps to configure it in a way suitable for usage of XAMPP:

  1. Simple solution -- just switch bitdefender to game mode when working with xampp
  2. "Advanced" solution -- go to Antivirus -> Shield -> Advanced Settings -> Exclusions Tab and there add exclusion for httpd.exe (located in your xampp installation/apache/bin/). Then go to Antivirus -> Exclusions and add exclusion for the directory where your php files reside.

Don't forget to restart apache after above steps.


Comments are closed.