WAMP/XAMPP is responding very slow over localhost

I don't know what the problem is. WAMP was very slow, so I reformatted my computer and installed WAMP. Still, accessing localhost is very, very slow, and sometimes it doesn't even load at all. I even removed it and replaced it with XAMPP, but I still got the same result. What might possibly be the problem? Here's my current hosts file:

127.0.0.1       localhost
127.0.0.1       localhost

It was perfectly working fine before, but I do not know what happened and why it has started acting strange lately, since even a reformat didn't fix it.


  1. This is caused by IPV6. Here is how you make MYSQL not use it. (so, without disabling IPV6)

    edit mysql file 'my.ini'
    under [wampmysqld] or [mysqld] add the following:
     

    bind-address = ::

    Save file and restart mysql service

    enjoy!

  2. Using Windows 10 (june of 2018), I managed to improve the loading that went from 2 seconds to less than 400 milliseconds doing a set of things I saw in this post and the internet

    Disabled xdebug in php.ini
     

    ; [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
  3. And disabling cgi module 
     

    The solution that worked for me was to disable the cgi_module. Use one of these 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 this line:
    
    LoadModule cgi_module modules/mod_cgi.so
    Commenting would be just adding a # in front, like this:
    
    #LoadModule cgi_module modules/mod_cgi.so
    Restart the Apache service and you should be good to go.

  4. I am using wamp64 on my windows 10 machine. I was having the same issue and turning off Xdebug of from my php.ini file resolves the issue 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
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值