php - WAMP/XAMPP is responding very slow over localhost -


i don't know problem is. wamp slow, reformatted computer , installed wamp. still, accessing localhost very, slow, , doesn't load @ all. removed , replaced xampp, still got same result. might possibly problem? here's current hosts file:

127.0.0.1       localhost  127.0.0.1       localhost 

it working fine before, not know happened , why has started acting strange lately, since reformat didn't fix it.

i had same problem running on windows 8 running on 64bit. apache slow when press f5 many times goes ok. in end after doing many things managed solve it. right works fast.

try following tasks increase performance:

change apache's listening port

change listening port 80 8080 avoid conflicts programs skype. open httpd.conf file , find line starts listen (it's around line 62). change following: listen 127.0.0.1:8080

enter image description here

change powerplan

change power plan balanced high performance. can in control panel\all control panel items\power options

enter image description here

disable ipv6

the credits of particular task go jef pointed out in blog post. windows 8 desktop, press windows key , r key @ same time

enter image description here

type regedit in run dialog box , click ok

enter image description here

use registry editor expand registry tree , browse to:

\hkey_local_machine\system\currentcontrolset\services\tcpip6\parameters 

enter image description here

right click on parameters, expand new, , select dword (32-bit) value

enter image description here

enter disabledcomponents name field

enter image description here

double click on new disabledcomponents value, enter ffffffff value data dialog box, , click ok button

enter image description here

confirm new registry value contains required data.

enter image description here

change etc/hosts

if use virtual hosts don't add each virtual host on new line. instead list them following. 127.0.0.1 site-a site-b site-c

i added 127.0.0.1 127.0.0.1 since heard somehow improves lookup well. (can't confirm can't hurt putting there)

enter image description here

your hosts file located @ c:\windows\system32\drivers\etc

check how many apache processes running

in case had 2 apache processes running. sure have 1 running. can check pressing ctrl+alt+del , press task manager

enter image description here

turn off base filtering engine (bfe)

what find working bit turning off base filtering engine. since stopping or disabling bfe service reduce security of system should when needed.

go control panel => administrative tools => services => base filtering engine

enter image description here

stop base filtering engine clicking on stop

enter image description here

increase apache's process priority

to task manager , change apache's process priority normal high right clicking -> set priority -> high enter image description here

keep apache's process busy

this bit of ugly method work. keeps apache busy , process own requests faster. insert local web-address in iframe location , save in html file, run , leave there until you're done.

<html>     <head>  <script> settimeout(function(){    window.location.reload(1); }, 2000);  </script>  </head> <body> <iframe name="iframe" id="iframe" src="http://mywebsite:8080"></iframe>    </body> </html> 

downgrade windows 7 pro

as windows 8 pro user entitled have downgrade rights windows 7. read here more this. me solution did job properly.

good luck!


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -