How do local WordPress faster

source: https://stackoverflow.com/questions/10750964/wamp-is-running-very-slow

Картинки по запросу stackoverflow logo

Use the following guidelines to make local WordPress faster.

1 Replace DB connection in www\wp-config.php

define("DB_HOST", "localhost");

with

define("DB_HOST", "127.0.0.1");
2 The solution that worked for me was to disable the cgi_module. Use one of these methods:

(Method 1) Left 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.

 

3 disabled XDebug in php.ini
4 localhost name resolution is handled within DNS itself.

127.0.0.1       localhost
5 I’m running Windows 8, WAMP was very slow. I did all suggested before. With a difference, WAMP had httpd.conf by default:

AcceptFilter http none
AcceptFilter https none

So I did the contrary thinking maybe this is not needed anymore. It seems to work fine:

 #AcceptFilter http none
 #AcceptFilter https none
6 use IPv4 in MySql XAMPP>MySQL>Config> my.ini

row 43

bind-address="127.0.0.1"
#bind-address = ::1          # for ipv6

source: https://stackoverflow.com/questions/10750964/wamp-is-running-very-slow