WAMP / XAMPP reacts very slowly on the local host

I do not know what's the problem. WAMP was very slow, so I reformatted my computer and installed WAMP. However, access to localhost is very, very slow, and sometimes it does not even load. I even deleted it and replaced it with XAMPP, but I still got the same result. What could be the problem? Here is my current hosts file:

127.0.0.1 localhost 127.0.0.1 localhost 

It worked fine fine before, but I donโ€™t know what happened and why it has recently started acting weirdly, since it was not even possible to reformat it.

+83
php apache xampp wamp localhost
Dec 08 2018-11-12T00:
source share
20 answers

I had the same issue as on Windows 8 with 64-bit. Apache is very slow, but when you press F5 many times, everything goes fine. In the end, I did a lot of work to solve this problem. Now it is fast.

To improve performance, try the following tasks:

Change apache listening port

Change the listening port from 80 to 8080 to avoid conflicts with programs such as Skype. Open the httpd.conf file and find the line starting with Listen (this is line 62). Change it as follows: Listen 127.0.0.1:8080

enter image description here

Change your power plan

Change your energy plan from Balanced to High Performance. You can do this in Control Panel\All Control Panel Items\Power Options

enter image description here

Disable IPv6

Credits for this particular task go to Jef , where he pointed it out in a blog post . On the Windows 8 desktop, simultaneously press Windows Key and R key

enter image description here

Type regedit in the Run dialog box and click OK

enter image description here

Use the registry editor to expand the registry tree and view:

 \HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\TCPIP6\Parameters 

enter image description here

Right-click on Parameters , expand New and select DWORD (32-bit) Value

enter image description here

Enter DisabledComponents in the Name field

enter image description here

Double-click the new DisabledComponents value, enter ffffffff in the Value data dialog box and click OK

enter image description here

Confirm that the new registry value contains the required data.

enter image description here

Change your etc / hosts

If you use virtual hosts, do not add each virtual host to a new line. Instead, list them as follows. 127.0.0.1 site-a site-b site-c

I also added 127.0.0.1 127.0.0.1 since I heard that this somehow improves the search. (I canโ€™t confirm it, but it wonโ€™t stop putting it there)

enter image description here

Your hosts file is located in C:\Windows\System32\Drivers\etc

Check how many apache processes are running

In my case, I had two apache processes. Make sure that you have only one. You can verify this by pressing CTRL+ALT+DEL and press Task Manager

enter image description here

Disable Base Filter (BFE)

What I find works a bit is to disable the base filter. Since stopping or disabling the BFE service significantly reduces system security, you should only do this when necessary.

Go to Control Panel => Administrative Tools => Services => Basic Filtering Engine

<T411>

Stop the basic filtering mechanism by clicking Stop

enter image description here

Apache process priority increase

For your task manager and changing the Apache process priority from Normal to High by right-clicking โ†’ Set Priority โ†’ High enter image description here

Saving Apache Process

This is a bit ugly method, but it certainly works. It supports Apache and handles your requests faster. Paste your local web address into the iframe location and save it in an html file, run it and just leave it there until you finish.

 <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> 

Upgrade to Windows 7 Pro

As a user of Windows 8 Pro, you have the right to have the right to upgrade to Windows 7. Read more about this . For me, this was the only solution that really worked correctly.

Good luck

+83
Jun 18 '13 at 7:41
source share

look here:

http://forum.wampserver.com/read.php?2,91602,page=3

Basically use 127.0.0.1 instead of localhost when connecting to mysql via php on windows 8

if your phpmyadmin slow detection

in config.inc.php you can change localhost to 127.0.0.1 as well

+43
Nov 13 '12 at 12:26
source share

This is caused by IPV6. This is how you do MYSQL not to use it. (so without disabling IPV6)

edit mysql file 'my.ini'

under [wampmysqld] add the following:

 bind-address = :: 

Save file and restart mysql service

enjoy it!

+42
Jan 15 '14 at 13:22
source share

In my case, load time is 5 times faster when it is disabled in php.ini:

 ;zend_extension = "\xampp\php\ext\php_xdebug-2.1.0-5.3-vc6.dll" 
+28
Feb 20 '14 at 19:53
source share

The solution that worked for me was to disable cgi_module . Use one of the following methods:

(method 1) Right-click on WAMP> Apache> Apache Modules> uncheck "cgi_module"

(method 2) Edit httpd.conf and disable the loading of the CGI module by commenting on this line:

 LoadModule cgi_module modules/mod_cgi.so 

Commenting will just add # in front, for example:

 #LoadModule cgi_module modules/mod_cgi.so 

Restart the Apache service and you will be well off.

+23
Sep 13 '13 at 12:50
source share

For me using xDebug, this line in php.ini was a performance killer:

xdebug.remote_autostart=true

When I deleted it, the page was fast again.

+14
Mar 29 '14 at 22:37
source share

if you use mysql use 127.0.0.1 instead of localhost in mysql_connect function, it helped me

+12
Mar 14 '13 at 9:26
source share

I canโ€™t comment on @Honesta's answers yet, so I will write here how I will succeed.

My environment (I don't know if this is suitable for an answer)

  • XAMPP (version 5.6.3)
  • Windows 8.1 Pro (64 bit)

how

I just opened my.ini file and uncommented the line where it says

 bind-address="127.0.0.1" 

This file is located for XAMPP users in C:\xampp\mysql\bin\my.ini .

Loans

This article helped me solve the problem, although I did not need all this because some configuration in XAMPP was not requested.

+8
Apr 17 '15 at 11:27
source share

As pointed out in most of the answers, using the IP address 127.0.0.1 on top of "localhost" sometimes helps to solve the problem of slowness - but this is not quite a solution because it does not fix the underscore.

What makes this problem difficult (both hit and skip) can be caused by about a dozen different things between the OS, the WAMP setup, and your browser.

  • Remove ::1 localhost from the Windows hosts file and make sure that 127.0.0.1 localhost present. You want your request to go directly to the listening IPv4 socket.

  • Disable IPv6 on your system. You most likely do not use it, and it is known to cause all kinds of problems .

  • Exclude Apache and MySQL binary paths and the database folder from your firewall and antivirus software. They will interfere and slow down.

  • Reset your TCP / IP subsystem and reboot: netsh int ip reset c:\resetlog.txt

  • Make sure your system does not use legacy DNS servers: ipconfig /all

  • Clear DNS DNS Cache: ipconfig /flushdns

  • Clear your browser cache.

A more detailed description of this guide: WAMP is very slow

+3
Dec 11 '13 at 0:24
source share

I just fixed this problem on my laptop running Windows 10. Suddenly, wamp became super slow - it took 2 minutes to request a page to load.

After many attempts, it turned out that the problem was disabling Windows Defender. After that, everything worked like a charm.

ps I would suggest you add the apache root directory to the list of exceptions and generally not completely disable the defender.

+3
Oct. 13 '15 at 6:41
source share

I had the same problem. Response times were extremely slow, and in most cases the updates worked quickly, most of the time. All the suggestions made by the bike did not help. What seems to help best (without a slow response time in the last 30 minutes) was reset winsock, as described here: http://www.devside.net/wamp-server/wamp-is-running-very-slow

 netsh winsock reset netsh int ip reset C:\resetlog.txt 

After that you need to restart.

+2
Jan 08 '15 at 9:02
source share

For me it was xdebug. I am disconnected and it worked as it should be!

 [XDebug] zend_extension = C:\xampp\php\ext\php_xdebug-2.3.2-5.6-vc11.dll 
+2
May 27 '15 at 17:59
source share

I also had this problem.

I added the entries suggested above, but it did not work.

This happened due to the fact that Spybot Search and Destroy added 15,000 lines of the immunized site (i.e. does not allow you to visit them) in the file of my hosts.

My hosts file was 433k - I deleted these lines and the page loading speed improved significantly.

+1
Jan 19 '14 at 8:57
source share

Try to do every entry on this post, it works for me when I add:

 Avira >> Real-Time Protection >> Configuration >> Exception >> 

Add process:

  • XAMPP \ Apache \ Bin \ httpd.exe
  • XAMPP \ MySQL \ Bin \ mysqld.exe
  • XAMPP \ XAMPP-control.exe

enter image description here

+1
May 13 '16 at 12:58
source share

I had the same problem in Chrome , and after applying all the known tools, it did not disappear. For me, the permission was to remove "Enable phishing and malware protection" in Chrome settings (Settings โ†’ Show advanced settings โ†’ Privacy). After that, localhost will be lightning fast.

0
Dec 06 '13 at 10:25
source share

Having tried EVERY ONE answer and comment here, and nothing helped me, I finally found a solution! In This Article A Correct Way to Configure PHP I find a new way to configure PHP as a module in Apache. For the author of this article, the official way to configure PHP is not the best. A common and unacceptable way to configure PHP is to:

 # For PHP 5: LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "C:/php" 

I always did it this way, but in this article he suggested setting up the PHP module as follows:

 #For PHP5 LoadFile "C:/www/php5/php5ts.dll" LoadModule php5_module "C:/www/php5/php5apache2.dll" <IfModule php5_module> #PHPIniDir "C:/Windows" #PHPIniDir "C:/Winnt" <Location /> AddType text/html .php .phps AddHandler application/x-httpd-php .php AddHandler application/x-httpd-php-source .phps </Location> </IfModule> 

I even have IPV6 enabled, and my boot time drops from 45 seconds or 1 minute or more, just 2 or 4 seconds! Thanks to the other answers mentioned here, I also left included in my general configuration the following

HOST FILE:

 127.0.0.1 localhost 127.0.0.1 127.0.0.1 # ::1 localhost 

httpd.conf

 EnableMMAP on EnableSendfile on AcceptFilter http none AcceptFilter https none HostnameLookups Off 

Other than that, I rolled back all the other solutions I tried, so I'm sure that these are the only ones that I used. I would like it to be useful for someone =)

0
Feb 24 '15 at 17:13
source share

I have the same problem, but I am solving the problem from the database. I renamed the table name and created a new table with an index through which all indexes were executed, and I had a huge amount of data in the table. I will rename the original table again, fixed for me.

0
Jun 10 '15 at 14:12
source share

Just try Incognito on Chrome.

Finally, it helped me solve my problem.

Please keep your mind in mind, this is not a permanent solution.

0
Aug 14 '17 at 6:29
source share

I use wamp64 on my Windows 10 computer. I had the same problem, and turning off Xdebug from the php.ini file resolves the problem for me.

 ; [xdebug] ; zend_extension ="C:/wamp64/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11-x86_64.dll" ; xdebug.remote_enable = off ; xdebug.profiler_enable = off ; xdebug.profiler_enable_trigger = off ; xdebug.profiler_output_name = cachegrind.out.%t.%p ; xdebug.profiler_output_dir ="C:/wamp64/tmp" ; xdebug.show_local_vars=0 
0
Nov 04 '17 at 8:05
source share

I work on wamp and one day I had this problem. It can be many factors, although there are five main ones that come to my mind.

the first. A program can cause this (even antivirus software just depends on what you have.)

second. Whether your computer is full or uses a lot of space, this happens to my partner site.

third. Check your regerstry files, there may be errors or other things. (Ultimately, this is my problem.)

fourth. After deletion, you manually deleted the files remaining on your computer. (Yes, even after you delete using wamp, it has a tendency to leave a folder or 2 with some important data on it. When you install this, you will not be reconfigured and will remain unchanged.)

fifth. Download the latest version or latest stable version.

Hope one of these things helps.

-6
Dec 08 '11 at 19:09
source share



All Articles