通过使用 Windows 10(2018年6月) ,我设法将加载时间从2秒提高到不到400毫秒,这是我在这篇文章和互联网上看到的
在 php.ini 中禁用 xdebug
; [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
在安装中使用了127.0.0.1,在我的 Wordpress 中
使用@honesta 方法
edit mysql file 'my.ini'
under the [wampmysqld] add the following:
bind-address = ::
并且像@Iulian Dita 说的那样禁用 cgi 模块
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.