PHP on Windows with XAMPP running 100 times too slow

xampp localhost very slow windows 7
xampp download
localhost slow windows 10
windows php tuning
xampp taking too long to install
how to increase localhost speed wamp
xampp work very slow
xampp slow wordpress

PHP runs so slowly on my Windows desktop that phpMyAdmin takes minutes to open a database. Here’s a comparison of the time to run a simple PHP test program:

  • Windows 8.1 machine running XAMPP: 3597 ms
  • iPage shared hosting: 65 ms
  • A2Hosting shared hosting: 26 ms

Here’s the test program…

<?php
$rStartTime = microtime(true);
$countTo = 100000;
$a = 0;
//$countTo = $countTo * 100;
for ($x = 0; $x <= $countTo; $x++) {
    $a = sqrt(pow($x, 2));
}
$rMs = floor((microtime(true) - $rStartTime) * 1000);
echo 'timer done, countTo=' . $a . ' ms=' . $rMs;

The test program is run without debugging, by entering "http://localhost/timer.php" into Firefox.

The local machine is normally blazing fast. It’s running…

  • Windows 8.1
  • XAMPP 1.8.3 (control panel v3.2.1)
  • Apache 2.4.4 (latest is 2.4.20)
  • PHP 5.5.3
  • Antimalware = Windows Defender
  • IDE = PHPStorm 10.0.2

What's making PHP run so slowly?

I found the problem was Xdebug in xampp\php\php.ini. Here're the results of trying many solutions found around the web:

Run XAMPP as adminisrator and restart server: 3617 ms

In xampp/apache/conf/httpd.conf, replace localhost with 127.0.0.1 and restart server: 3639 ms

In Windows/System32/drivers/etc/hosts, add "127.0.0.1 127.0.0.1" & "127.0.0.1 localhost" and restart Windows: 3960 ms

In Windows/System32/drivers/etc/hosts, un-comment "127.0.0.1 localhost" and restart Windows: 3659 ms

In php.ini, uncomment zend_extension = "C:\xampp\php\ext\php_eaccelerator_ts.dll" and restart server: 3643 ms

In php.ini, set xdebug.remote_enable=0: 3598 ms

In php.ini, set remote_host="localhost": 3593 ms

In php.ini, set xdebug.profiler_enable=0: 249 ms

In php.ini, comment out all Xdebug statements: 27 ms - Success!

The sad part is, I make mistakes and need Xdebug :-(

XAMPP Slow on Windows 10 � Nutt.net, There are hundreds of pages with tips to speed XAMPP up. It makes it trivial to get Apache, MySQL, and PHP set up. So I bumped it up to 100% for the plugged in setting and left it at 5% for running off of battery. And now it's all running like it should be and I'm not wasting my time watching pages load. XAMPP was running slow, fixed this by following your instruction to ensure loopback was not commented out. thanks!! Edit file – C:\Windows\System32\drivers\etc\hosts. Comment out the line by adding a ‘#’ in front: # ::1 localhost (…that this line is not commented out): 127.0.0.1 localhost

I solve my problem with xdebug idekey setting (xdebug.idekey="xdebug1"), and chrome extension xdebug helper (https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc)

*Dont forget to disable remote_autostart (xdebug.remote_autostart=0)

Only activating debug (xdebug) by request, using idekey setting, so if debug not needed php processing can be faster/normal, tonggle by button with chrome extension

I'm using xampp 1.8.3 on windows 10 64bit, i use custom idekey, xdebug.idekey="xdebug1", same with xdebug helper setting

[XDebug]
zend_extension = "E:\xampp183\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "E:\xampp183\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart=0
xdebug.idekey="xdebug1"
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "E:\xampp183\tmp"
xdebug.remote_log="E:\xampp183\tmp\xdebug\xdebug.log"

Now breakpoint/debug activated only if session is requsted via xdebug helper

Resolved PHP on Windows with XAMPP running 100 times too slow , php, windows, xampp, xdebug, PHP runs so slowly on my Windows desktop that phpMyAdmin takes minutes to open a database. Here's a comparison of the� There are so many WAMP solutions for Windows 7 (e.g., WampServer, Bitnami stacks, and EasyPHP). While many of them will work on Windows 8 without issues, XAMPP is Windows 8-ready. Unfortunately, I encountered a widely reported issue. Apache PHP, MySQL are slow under Windows.. Terribly slow. Sometimes, even slower than deployed websites on the

I excluded my website folder and my xampp folder in Windows Defender and things were solved here.

How to improve XAMPP Performance, This tutorial will show you how to increase your XAMPP performance so that your PHP and Duration: 3:38 Posted: Feb 24, 2018 I've got my Windows PC (localhost) running XAMPP. It loads the pages sometimes really quick or sometimes really slow. So, I figured and searched and was recommended to get WAMP. I got that and installed it. Still, the pages load so damn slowly. No heavy CPU load or anything, all my ports are open too. Any ideas?

I Had the same problem with xampp, and the problem was WINDOWS DEFENDER, if you disable the windows defender protection, xampp is faster (normal speed), Also you can search the xampp folder as exlusion in windows defender. these is the solution.

PHP on Windows with XAMPP running 100 times too sl-第2页回答 , PHP runs so slowly on my Windows desktop that phpMyAdmin takes minutes to open a database. Here's a comparison of the time to run a simple PHP test� I have XAMPP 1.7.7 running on Windows 7 64 bit as a local development environment for sake of avoiding internet lag. Ironically it is extremely slow. So much so probably far worse than being on an external host. Webpages are taking 13 seconds to serve. It should be a split second. It's not the hard drive being busy so don't worry about that.

I figured out that Eclipse did not end a XDebug session properly. I solved the problem by restarting the debug session and ending it properly.

PHP & MySQL combo is running insanely slow on Windows Server , You could install sql express and see if the problem is mysql on windows (i know of no issues but maybe you have an outdated version?). Windows in and of� Solved php - WAMP/XAMPP is responding very slow over localhost / wordpress The easiest way is that go to c dirive > xamp > php folder > search php.ini > clink on top then find max_execution_time anset it to max_execution_time=300 > now restart xamp > all done :)

My Xampp Performance Notes, The main cause for slow xampp on windows is the MySQL service Speed up page loading time on localhost | Drupal.org (USE THESE) XAMPP / WAMP / whatever it is: Apache is running super slow The query side of things is not 100 % needed because it will not effectively affect the base line speed. Ok fine, thanx for the info ! So i’m using Windows 10, and untill now i was using InstantWP, but i eachtime i tried to touch php.ini or wp-config to change wp_memry_max limit the server crashed, so i was almos trying to use xampp when i finally decided to use my client hosting (OVH.COM) and for now eveyrhting is good depsite woocomerce that is taking soooooo many time to improt products (i

slow - Apache Friends Support Forum • Search, no antivirus of other security software installed accept windows 10 Defender and its firewall. ans if I change port 80 to anyother port, like 8080 then Apache runs like ROCKET. Is it the PHP interpreter, is it MySQL Server, is it download speed of Apache or what? and reconnecting may take a longer time. (IMPORTANT) EDIT 3: Running the testajax2.php by itself and not Ajax. The duration is about the same, 1.02-1.03 seconds. So I guess that means the problem is in PHP-MySQL or XAMPP?? When I ran it through a phpMyAdmin query, here's the result: Showing rows 0 - 29 ( ~50 total. The query took 0.0015 seconds). It appears the problem lies not in

slow - Apache Friends Support Forum, The windows machine is significantly slower than the Linux machine is, the XAMPP setup is pretty much stock when it comes to the apache setup. If your PC is running slowly, the following suggestions might help speed things up. The tips are listed in order, so start with the first one, see if that helps, and then continue to the next one if it doesn’t.

Comments
  • Can you solve this problem with Xdebug activated? I have the same trouble.
  • Wish I could. Instead I wrote a Delphi program that switches between two php.ini files, one with debugging (called debugPhp.ini) and one without (called fastPhp.ini).
  • I don't seem to have any sort of Xdebug options in here. I'm guessing XAMPP doesn't come with Xdebug by default and my own bottleneck is somewhere else?
  • My XAMPP 3.2.1 came with a php.ini file that had an [XDebug] section at the bottom.
  • No such a thing on xampp.
  • Thanks Dzikri for this imaginative and nicely detailed solution! I tested it and it did indeed speed things up 2X! But even with your tip, php ran slow :-( Normal time = 3597ms. With Dzikri tip, time reduced to 1482ms with debugging off, 1478 with debugging on (strangely faster!?). But by commenting out the Xdebug section in php.ini, the time is reduced to 27ms.
  • glad to help, maybe different local settings, different pc specs, so the result are variative, in my case, it can speed up to 90% if compared to letting xdebug autostart=on
  • Thanks Carsten, that was a great idea I hadn't thought of! I tested it and it did indeed speed things up 2X! But even with your tip, it was slow :-( Normal time = 3597ms. With Carsten tip = 1509ms. Comment out Xdebug: 27ms.
  • Can you briefly explain how this is accomplished?
  • Open Defender and go to Preferences/Settings ("Einstellungen" I use a german version here) and then excluded Files/Folders and there use the button to get a file dialog where you can point to your Files/Folders
  • I have tried everything but only this one worked. Thank you, man! You are a life saver. I excluded the entire xampp folder and page loading time reduced to < 1 sec from 15-20 sec.
  • confirmed on Windows 10 Pro. Composer update on magento 2 went from 93 to 32s