IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> PHP知识库 -> WAMP/XAMPP is responding very slow over localhost -> 正文阅读

[PHP知识库]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

  PHP知识库 最新文章
Laravel 下实现 Google 2fa 验证
UUCTF WP
DASCTF10月 web
XAMPP任意命令执行提升权限漏洞(CVE-2020-
[GYCTF2020]Easyphp
iwebsec靶场 代码执行关卡通关笔记
多个线程同步执行,多个线程依次执行,多个
php 没事记录下常用方法 (TP5.1)
php之jwt
2021-09-18
上一篇文章      下一篇文章      查看所有文章
加:2021-12-14 15:43:57  更:2021-12-14 15:44:09 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年12日历 -2024/12/27 21:03:57-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码
数据统计