PHP on Windows with Xampp Running 100 Times Too Slow

XAMPP, WAMP, SIMILAR: Slow speed with xdebug

I found a partial solution, disable xdebug and enable it only when required:

  1. Open php.int from XAMPP > Apache > config > php.int
  2. Move these line to top: zend_extension =
    "C:\xampp\php\ext\php_xdebug-2.2.6-5.5-vc11.dll" (or your path)
  3. Disable it most of time with char ; and when I need the debug I
    uncomment it and restart apache

PHP with database(mysql) load too slow in localhost

Add this line to the hosts which is located at ”C:\Windows\System32\drivers\etc” make sure that you have admin privilege to edit the file.

127.0.0.1 localhost

Refer to this PHP with MySQL is Slow

Windows 7 php + Symfony2 terribly slow

I had a similar problem with symfony 1 for a time on XP and Server 2003. The solution was to install a PHP accelerator (eAccelerator for us, APC might be a better bet these days) plus FastCGI/fcgid.

Addendum: it's been ages since I've used Apache on Windows. I have generally been of the view that its performance has been getting steadily better, rather than worse; however as with most unusual set-ups, good results are not guaranteed. As per my earlier comment, I recommend asking your question at Apache Lounge, where I previously have received some great expert advice.

If memory serves correctly, they can offer you a free Apache binary compiled with better tools than the standard one offered on the Apache website.



Related Topics



Leave a reply



Submit