Slow XAMPP on Windows 7 -- solution
Posted / Публикувана 2011-03-16 in category / в категория: PHP, Web development
|
Warning: count(): Parameter must be an array or an object that implements Countable in /home/bolyarco/www-ikratko/ogrelab/wp-content/plugins/microkids-related-posts/microkids-related-posts.php on line 645
Symptoms:
You install brand new latest version of XAMPP on your Windows box, everything works, but PHP pages open very slow (>1 second).
Solution:
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:
- Simple solution -- just switch bitdefender to
game mode
when working with xampp - "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 toAntivirus -> Exclusions
and add exclusion for the directory where your php files reside.
Don't forget to restart apache after above steps.
|