This is a problem that I have been facing for a long time. I want to run PHP applications on my Windows computer, and it has an awful boot time, about 10-25 seconds. I have tried many things:
- At first I tried a simple installation of XAMPP.
- I read that WAMP can be faster, so I also tried WAMP. It gave me the same results.
- Then I installed a nginx server with PHP, but that didn't help
- Finally, I installed Ubuntu 11.10 in VirtualBox, and I shared the Windows files containing my project, but the result was even worse: more than 22 seconds of boot each time.
UPDATE : I even tried APC - it improved a bit, but still 6-8 seconds / page
I uploaded my files to the linux server (shared hosting), on which it runs for about 300-500 ms. On the XAMPP installation, I also tried to run other (that is, not Symfony2) applications (for example, phpmyadmin), which were also slower than shared hosting, but not very slow, with a load of 2-3 seconds. Until I switch to Linux as the main OS, how could I improve performance? I have a laptop with an i7 processor, 4 GB of RAM, 5400RPM HDD, Win7 x64.
Thank you for your help!
UPDATE2: For some mysterious reason, my Symfony routing did not work with fcgid (this gave me a 404 error for everything), so I returned to use PHP as a module. Now it has become the worst ever (worse than before): the application mode is 20-25 seconds, and in dev mode - more than 30 seconds each time, so I get a timeout error, and this is the same with without using APC.
You can see this error here. This is reproduced: every time it reaches another point of execution within 30 seconds:

performance php windows-7 apache2 page-load-time
David Frank Mar 24 '12 at 19:34 2012-03-24 19:34
source share