XAMPP, WAMP, SIMILAR: Slow speed with xdebug
I found a partial solution, disable xdebug and enable it only when required:
- Open php.int from XAMPP > Apache > config > php.int
- Move these line to top: zend_extension =
"C:\xampp\php\ext\php_xdebug-2.2.6-5.5-vc11.dll" (or your path) - 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
Multiple Submit Buttons PHP Different Actions
Tcpdf Utf-8 Symbols Not Showing Up
How to Automatically Detect User's Timezone
PHP Access Network Path Under Windows
Notice: Undefined Offset: 0 In
Add Fee Based on Specific Payment Methods in Woocommerce
PHP Using Preg_Replace:"Delimiter Must Not Be Alphanumeric or Backslash" Error
Php.Exe' Is Not Recognized as an Internal or External Command, Operable Program or Batch File
Accessing Variables and Methods Outside of Class Definitions
Find Number Which Is Greater Than or Equal to N in an Array
Why Is It Whenever I Use Scandir() I Receive Periods at the Beginning of the Array
Utf-8 Character Encoding Battles JSON_Encode()
How to Get All Combinations from Multiple Arrays
How to Define an Empty Object in PHP
PHP Regular Expression to Match Lines Starting with a Special Character
How to Remove "Via" and Server Name When Sending Mails with PHP